Move snapshot dir, add corn to Kitty
This commit is contained in:
parent
90a0363d89
commit
044b240b66
9 changed files with 27 additions and 9 deletions
15
hosts/kitty/users/corn/default.nix
Normal file
15
hosts/kitty/users/corn/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ ... }:
|
||||
{
|
||||
users.users."corn" = {
|
||||
isNormalUser = true;
|
||||
createHome = true;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"AAAAC3NzaC1lZDI1NTE5AAAAIKaZsnlyUJDNx2oK4iHsUDb+Ok4vg1jNYEAnoHsjjM2c Chinook"
|
||||
"AAAAC3NzaC1lZDI1NTE5AAAAICtoHVAmq8Ps7EguBsV3VY4snagzkhH6aXqwbKzuGs2H Radiant"
|
||||
];
|
||||
uid = 1001;
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
environment.persistence."/persist".directories = [ "/home/corn" ];
|
||||
}
|
|
@ -1,4 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./main ];
|
||||
imports = [
|
||||
./main
|
||||
./corn
|
||||
];
|
||||
}
|
||||
|
|
|
@ -68,8 +68,8 @@
|
|||
mountOptions = [ "compress=zstd" "noatime" "ssd" ];
|
||||
};
|
||||
"/persist/.snapshots" = { };
|
||||
"/persist/home/${config.sysusers.main}" = { };
|
||||
"/persist/home/${config.sysusers.main}/.snapshots" = { };
|
||||
"/persist/home" = { };
|
||||
"/persist/home/.snapshots" = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue