Skip to content

Commit

Permalink
shang: integrate file server
Browse files Browse the repository at this point in the history
  • Loading branch information
eikek committed Jul 17, 2015
1 parent 16a96ad commit 0048eb8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions systems/shang/configuration.nix
Expand Up @@ -35,6 +35,24 @@
# };
};

# needed for the `user` option below
security.setuidPrograms = [ "mount.cifs" ];

fileSystems = let
serverpass = if (builtins.tryEval <serverpass>).success then
builtins.readFile <serverpass>
else builtins.throw ''Please specify a file that contains the
password to mount the fileserver and add it to the NIX_PATH
variable with key "serverpass".
'' ;
in {
"/home/fileserver" = {
device = "//fileserver/daten";
fsType = "cifs";
options = "user=ekettner,password=${serverpass},uid=eike,user";
};
};

# Enable the X11 windowing system.
services.xserver = {
videoDrivers = [ "nouveau" ];
Expand Down

0 comments on commit 0048eb8

Please sign in to comment.