feat(servers): make crony user also adapt home manager config.
This commit is contained in:
parent
08d5d08061
commit
c1d5a21378
5 changed files with 20 additions and 5 deletions
|
@ -3,5 +3,9 @@
|
|||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
users.extraUsers.crony = {
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
programs.zsh.enable = true;
|
||||
}
|
||||
|
|
5
modules/servers/home-manager/crony.nix
Normal file
5
modules/servers/home-manager/crony.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [./home.nix];
|
||||
home.username = "crony";
|
||||
home.homeDirectory = "/home/crony";
|
||||
}
|
|
@ -4,7 +4,12 @@
|
|||
home-manager.backupFileExtension = "backup";
|
||||
home-manager.users.root = {
|
||||
imports = [
|
||||
./home.nix
|
||||
./root.nix
|
||||
];
|
||||
};
|
||||
home-manager.users.crony = {
|
||||
imports = [
|
||||
./crony.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,10 +3,6 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# basic info
|
||||
home.username = "root";
|
||||
home.homeDirectory = "/root";
|
||||
|
||||
# Setup zsh
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
|
|
5
modules/servers/home-manager/root.nix
Normal file
5
modules/servers/home-manager/root.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [./home.nix];
|
||||
home.username = "root";
|
||||
home.homeDirectory = "/root";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue