Move snapshot dir, add corn to Kitty

This commit is contained in:
Bun 2025-03-21 17:30:50 -04:00
parent 90a0363d89
commit 044b240b66
9 changed files with 27 additions and 9 deletions

View 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" ];
}

View file

@ -1,4 +1,7 @@
{ ... }: { ... }:
{ {
imports = [ ./main ]; imports = [
./main
./corn
];
} }

View file

@ -68,8 +68,8 @@
mountOptions = [ "compress=zstd" "noatime" "ssd" ]; mountOptions = [ "compress=zstd" "noatime" "ssd" ];
}; };
"/persist/.snapshots" = { }; "/persist/.snapshots" = { };
"/persist/home/${config.sysusers.main}" = { }; "/persist/home" = { };
"/persist/home/${config.sysusers.main}/.snapshots" = { }; "/persist/home/.snapshots" = { };
}; };
}; };
}; };

View file

@ -105,10 +105,11 @@
c:/home/${config.home.username}/.config c:/home/${config.home.username}/.config
l:/home/${config.home.username}/.local l:/home/${config.home.username}/.local
d:/mnt d:/mnt
p:/persist
n:/etc/nixos n:/etc/nixos
# Remote files # Remote files
H:/home/${config.home.username}/Midas H:/home/${config.home.username}/Midas/storage
K:/home/${config.home.username}/Midas/storage/Files K:/home/${config.home.username}/Midas/storage/Files
V:/home/${config.home.username}/Midas/storage/Media V:/home/${config.home.username}/Midas/storage/Media
M:/home/${config.home.username}/Midas/storage/Music M:/home/${config.home.username}/Midas/storage/Music

View file

@ -11,7 +11,6 @@
"Games" "Games"
"VMs" "VMs"
".snapshots"
".mozilla" ".mozilla"
".thunderbird" ".thunderbird"

View file

@ -1,7 +1,7 @@
{ ... }: { ... }:
{ {
imports = [ imports = [
./main ./home
./root ./root
]; ];

View file

@ -1,7 +1,7 @@
{ config, lib, ... }: { config, lib, ... }:
{ {
services.snapper.configs.${config.sysusers.main} = lib.mkIf config.environment.persistence."/persist".enable { services.snapper.configs.home = lib.mkIf config.environment.persistence."/persist".enable {
SUBVOLUME = "/persist/home/${config.sysusers.main}"; SUBVOLUME = "/persist/home";
TIMELINE_CREATE = true; TIMELINE_CREATE = true;
TIMELINE_CLEANUP = true; TIMELINE_CLEANUP = true;
TIMELINE_LIMIT_DAILY = 1; TIMELINE_LIMIT_DAILY = 1;

Binary file not shown.

View file

@ -10,7 +10,7 @@
users.users."${config.sysusers.main}" = { users.users."${config.sysusers.main}" = {
isNormalUser = true; isNormalUser = true;
createHome = true; createHome = true;
hashedPassword = config.secrets.mainAccPass; hashedPassword = config.secrets.accPass.main;
openssh.authorizedKeys.keyFiles = [ openssh.authorizedKeys.keyFiles = [
../../../../hosts/tower/id_ed25519.pub ../../../../hosts/tower/id_ed25519.pub
../../../../hosts/kitty/id_ed25519.pub ../../../../hosts/kitty/id_ed25519.pub