Set up impermanence for home manager.
This commit is contained in:
@@ -2,15 +2,17 @@
|
||||
{
|
||||
imports = [ inputs.impermanence.nixosModules.impermanence ];
|
||||
|
||||
environment.persistence."/persist" = {
|
||||
directories = [ "/var/lib/nixos" ];
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
"/etc/ssh/ssh_host_ed25519_key"
|
||||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
||||
"/etc/ssh/ssh_host_rsa_key"
|
||||
"/etc/ssh/ssh_host_rsa_key.pub"
|
||||
];
|
||||
environment.persistence = {
|
||||
"/persist" = {
|
||||
directories = [ "/var/lib/nixos" ];
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
"/etc/ssh/ssh_host_ed25519_key"
|
||||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
||||
"/etc/ssh/ssh_host_rsa_key"
|
||||
"/etc/ssh/ssh_host_rsa_key.pub"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems."/".options = [
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
useUserPackages = true;
|
||||
users.ppetru = {
|
||||
imports = [
|
||||
(inputs.impermanence + "/home-manager.nix")
|
||||
inputs.nixvim.homeManagerModules.nixvim
|
||||
./home
|
||||
];
|
||||
|
||||
@@ -17,6 +17,16 @@ in
|
||||
shellAliases = {
|
||||
reload-home-manager-config = "home-manager switch --flake ${builtins.toString ./.}";
|
||||
};
|
||||
|
||||
persistence."/persist/home/ppetru" = {
|
||||
directories = [
|
||||
".ssh"
|
||||
"projects"
|
||||
];
|
||||
files = [
|
||||
];
|
||||
allowOther = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs = import ./programs.nix;
|
||||
|
||||
Reference in New Issue
Block a user