Browse Source

permissions updated

master
Juni Kim 2 years ago
parent
commit
51f1c2d95b
  1. 5
      users.nix

5
users.nix

@ -1,7 +1,7 @@
{ pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
prefix = "/server/current";
prefix = "/server/project";
in
{
imports = [
@ -10,6 +10,7 @@ in
systemd.tmpfiles.rules = [
"d /server 0777 root root"
"d /server/project 0770 root project"
];
users.users =
@ -19,7 +20,7 @@ in
isNormalUser = true;
home = "${prefix}/${name}";
createHome = true;
extraGroups = [ "current" ] ++
extraGroups = [ "project" ] ++
(if manager then ["docker" "wheel"] else []);
shell = (if zsh then pkgs.zsh else pkgs.bash);
password = passwd;

Loading…
Cancel
Save