You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
744 B

{ pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{
imports = [
];
users.users =
let
server_user =
name: passwd: {
isNormalUser = true;
home = "/server/current/${name}";
extraGroups = [ "current" ];
shell = pkgs.bash;
password = passwd;
};
server_manager =
name: passwd: {
isNormalUser = true;
home = "/server/current/${name}";
extraGroups = [ "current" "docker" "wheel" ];
shell = pkgs.bash;
password = passwd;
};
in
{
owner = server_manager "junikim" "1234";
a = server_user "a" "1234";
b = server_user "b" "1234";
};
}