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" = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -105,10 +105,11 @@
|
|||
c:/home/${config.home.username}/.config
|
||||
l:/home/${config.home.username}/.local
|
||||
d:/mnt
|
||||
p:/persist
|
||||
n:/etc/nixos
|
||||
|
||||
# Remote files
|
||||
H:/home/${config.home.username}/Midas
|
||||
H:/home/${config.home.username}/Midas/storage
|
||||
K:/home/${config.home.username}/Midas/storage/Files
|
||||
V:/home/${config.home.username}/Midas/storage/Media
|
||||
M:/home/${config.home.username}/Midas/storage/Music
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
"Games"
|
||||
"VMs"
|
||||
|
||||
".snapshots"
|
||||
".mozilla"
|
||||
".thunderbird"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./main
|
||||
./home
|
||||
./root
|
||||
];
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
services.snapper.configs.${config.sysusers.main} = lib.mkIf config.environment.persistence."/persist".enable {
|
||||
SUBVOLUME = "/persist/home/${config.sysusers.main}";
|
||||
services.snapper.configs.home = lib.mkIf config.environment.persistence."/persist".enable {
|
||||
SUBVOLUME = "/persist/home";
|
||||
TIMELINE_CREATE = true;
|
||||
TIMELINE_CLEANUP = true;
|
||||
TIMELINE_LIMIT_DAILY = 1;
|
Binary file not shown.
|
@ -10,7 +10,7 @@
|
|||
users.users."${config.sysusers.main}" = {
|
||||
isNormalUser = true;
|
||||
createHome = true;
|
||||
hashedPassword = config.secrets.mainAccPass;
|
||||
hashedPassword = config.secrets.accPass.main;
|
||||
openssh.authorizedKeys.keyFiles = [
|
||||
../../../../hosts/tower/id_ed25519.pub
|
||||
../../../../hosts/kitty/id_ed25519.pub
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue