summaryrefslogtreecommitdiff
path: root/custom/uucp-mediaclient.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/uucp-mediaclient.nix')
-rw-r--r--custom/uucp-mediaclient.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/custom/uucp-mediaclient.nix b/custom/uucp-mediaclient.nix
index 1b79d4a5..f01e2a54 100644
--- a/custom/uucp-mediaclient.nix
+++ b/custom/uucp-mediaclient.nix
@@ -96,11 +96,13 @@ in {
96 members = [ "uucp" ]; 96 members = [ "uucp" ];
97 }; 97 };
98 98
99 system.activationScripts = '' 99 system.activationScripts = {
100 mkdir -m 0755 -pv ${cfg.mediaDir} 100 media-directory = ''
101 chown :${cfg.mediaGroup} ${cfg.mediaDir} 101 mkdir -m 0755 -pv ${cfg.mediaDir}
102 chmod -c "g+rwx" ${cfg.mediaDir} 102 chown :${cfg.mediaGroup} ${cfg.mediaDir}
103 ''; 103 chmod -c "g+rwx" ${cfg.mediaDir}
104 '';
105 };
104 }; 106 };
105} 107}
106 108