impermanence/module.nix: working
This commit is contained in:
parent
e1250a554f
commit
5313bae8ac
1 changed files with 21 additions and 22 deletions
|
@ -14,16 +14,16 @@ in {
|
||||||
];
|
];
|
||||||
users = {
|
users = {
|
||||||
mutableUsers = true;
|
mutableUsers = true;
|
||||||
# users = {
|
users = {
|
||||||
# cr = {
|
cr = {
|
||||||
# initialHashedPassword = "";
|
hashedPasswordFile = "/persist/passwords/cr";
|
||||||
# hashedPasswordFile = "/persist/passwords/cr";
|
};
|
||||||
# };
|
root.hashedPasswordFile = "/persist/passwords/root";
|
||||||
# root.hashedPasswordFile = "/persist/passwords/root";
|
};
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.persistence."/persist" = {
|
environment.persistence."/persist" = {
|
||||||
|
hideMounts = true;
|
||||||
directories = [
|
directories = [
|
||||||
"/etc/nixos"
|
"/etc/nixos"
|
||||||
"/etc/nix"
|
"/etc/nix"
|
||||||
|
@ -44,17 +44,16 @@ in {
|
||||||
[
|
[
|
||||||
"cloud"
|
"cloud"
|
||||||
"repos"
|
"repos"
|
||||||
".config/nicotine"
|
|
||||||
]
|
]
|
||||||
++ map (
|
++ map (
|
||||||
dir: ".config/${dir}"
|
dir: ".config/${dir}"
|
||||||
) ["nicotine" "Signal"]
|
) ["nicotine" "Signal" "Nextcloud"]
|
||||||
++ map (
|
++ map (
|
||||||
dir: ".cache/${dir}"
|
dir: ".cache/${dir}"
|
||||||
) ["tealdeer" "keepassxc" "nix" "starship" "nix-index" "mozilla" "zsh" "nvim"]
|
) ["tealdeer" "keepassxc" "nix" "starship" "nix-index" "mozilla" "zsh" "nvim"]
|
||||||
++ map (
|
++ map (
|
||||||
dir: ".local/share/${dir}"
|
dir: ".local/share/${dir}"
|
||||||
) ["direnv" "TelegramDesktop" "PrismLauncher" "nicotine" "zoxide"];
|
) ["direnv" "Steam" "TelegramDesktop" "PrismLauncher" "nicotine" "zoxide" ".ssh" ".keepass"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -65,16 +64,16 @@ in {
|
||||||
"L /var/lib/NetworkManager/timestamps - - - - /persist/var/lib/NetworkManager/timestamps"
|
"L /var/lib/NetworkManager/timestamps - - - - /persist/var/lib/NetworkManager/timestamps"
|
||||||
];
|
];
|
||||||
|
|
||||||
# services.openssh.hostKeys = mkForce [
|
services.openssh.hostKeys = mkForce [
|
||||||
# {
|
{
|
||||||
# bits = 4096;
|
bits = 4096;
|
||||||
# path = "/persist/etc/ssh/ssh_host_rsa_key";
|
path = "/persist/etc/ssh/ssh_host_rsa_key";
|
||||||
# type = "rsa";
|
type = "rsa";
|
||||||
# }
|
}
|
||||||
# {
|
{
|
||||||
# bits = 4096;
|
bits = 4096;
|
||||||
# path = "/persist/etc/ssh/ssh_host_ed25519_key";
|
path = "/persist/etc/ssh/ssh_host_ed25519_key";
|
||||||
# type = "ed25519";
|
type = "ed25519";
|
||||||
# }
|
}
|
||||||
# ];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue