1
0
mirror of https://github.com/kmein/niveum synced 2026-03-22 04:41:07 +01:00

feat: tmpfiles.d helper function

This commit is contained in:
2021-03-23 21:00:21 +01:00
parent e3f3e4045a
commit b8967c8e5c
3 changed files with 18 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ let
indexFilename = "index";
flixUser = "flix";
flixGroup = "users";
inherit (import <niveum/lib>) tmpfilesConfig;
in {
fileSystems.${flixLocation} = {
device = "prism.r:/export";
@@ -24,7 +25,13 @@ in {
};
systemd.tmpfiles.rules = [
"d '${cacheLocation}' 0750 ${flixUser} ${flixGroup} - -"
(tmpfilesConfig {
type = "d";
path = cacheLocation;
mode = "0750";
user = flixUser;
group = flixGroup;
})
];
systemd.services.flix-index = {