summaryrefslogtreecommitdiff
path: root/vali.nix
diff options
context:
space:
mode:
Diffstat (limited to 'vali.nix')
-rw-r--r--vali.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/vali.nix b/vali.nix
index 958faf2f..d6e6df4c 100644
--- a/vali.nix
+++ b/vali.nix
@@ -55,6 +55,7 @@ rec {
55 tmux 55 tmux
56 mosh 56 mosh
57 ntfs3g 57 ntfs3g
58 sshfsFuse
58 ]; 59 ];
59 60
60 # List services that you want to enable: 61 # List services that you want to enable:
@@ -74,6 +75,8 @@ rec {
74 # services.xserver.displayManager.kdm.enable = true; 75 # services.xserver.displayManager.kdm.enable = true;
75 # services.xserver.desktopManager.kde4.enable = true; 76 # services.xserver.desktopManager.kde4.enable = true;
76 77
78 users.mutableUsers = false;
79
77 users.extraUsers.root = let 80 users.extraUsers.root = let
78 template = (import users/gkleen.nix); 81 template = (import users/gkleen.nix);
79 in { 82 in {
@@ -81,6 +84,11 @@ rec {
81 openssh.authorizedKeys.keyFiles = template.openssh.authorizedKeys.keyFiles; 84 openssh.authorizedKeys.keyFiles = template.openssh.authorizedKeys.keyFiles;
82 }; 85 };
83 86
87 users.extraGroups.media = {
88 gid = 498;
89 members = [ "gkleen" ];
90 };
91
84 system.activationScripts = let 92 system.activationScripts = let
85 setupUsers = pkgs.callPackage custom/dotfiles.nix {}; 93 setupUsers = pkgs.callPackage custom/dotfiles.nix {};
86 toRec = name : { 94 toRec = name : {
@@ -168,16 +176,18 @@ rec {
168 # automountConfig = { 176 # automountConfig = {
169 # DirectoryMode = "555"; 177 # DirectoryMode = "555";
170 # }; 178 # };
179 # wantedBy = [ "remote-fs.target" ];
171 # } 180 # }
172 # ]; 181 # ];
173 182
174 # systemd.mounts = [ 183 # systemd.mounts = [
175 # { enable = true; 184 # { enable = true;
176 # where = "/var/media"; 185 # where = "/var/media";
177 # what = "gkleen@hel.asgard.yggdrasil:/var/media"; 186 # what = "media@hel.asgard.yggdrasil:/var/media";
178 # type = "fuse.sshfs"; 187 # type = "fuse.sshfs";
179 # options = "users,idmap=gkleen,IdentityFile=/home/user/.ssh/id_ed25519,allow_other,reconnect,_netdev"; 188 # options = "idmap=user,IdentityFile=/home/gkleen/.ssh/media@hel,allow_other,reconnect,_netdev";
180 # mountConfig = { 189 # mountConfig = {
190 # Environment = "PATH=/run/current-system/sw/bin:/run/current/system/sw/sbin";
181 # DirectoryMode = "555"; 191 # DirectoryMode = "555";
182 # }; 192 # };
183 # } 193 # }