recreate lock file
This commit is contained in:
@@ -32,5 +32,9 @@
|
||||
./impermanent.nix
|
||||
];
|
||||
})
|
||||
|
||||
(lib.mkIf (!config.disko.enable) {
|
||||
disko.impermanent = lib.mkForce false;
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
module = { config, lib, pkgs, devices, ... }: {
|
||||
imports = [
|
||||
(./default.nix { inherit devices; })
|
||||
(import ./default.nix { inherit config lib pkgs devices; })
|
||||
inputs.disko.nixosModules.default
|
||||
];
|
||||
};
|
||||
|
||||
@@ -2,28 +2,34 @@
|
||||
|
||||
options = {};
|
||||
|
||||
config = lib.mkIf config.disko.impermanent {
|
||||
imports = [
|
||||
self.inputs.impermanence.nixosModules.impermanence
|
||||
];
|
||||
config = lib.mkMerge [
|
||||
|
||||
fileSystems."/persist".neededForBoot = true;
|
||||
environment.persistence."/persist/system" = {
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
"/etc/nixos"
|
||||
"/etc/shadow"
|
||||
"/var/log"
|
||||
"/var/lib/bluetooth"
|
||||
"/var/lib/nixos"
|
||||
"/var/lib/systemd/coredump"
|
||||
"/etc/NetworkManager/system-connections"
|
||||
];
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
];
|
||||
};
|
||||
{
|
||||
imports = [
|
||||
self.inputs.impermanence.nixosModules.impermanence
|
||||
];
|
||||
}
|
||||
|
||||
programs.fuse.userAllowOther = true;
|
||||
};
|
||||
(lib.mkIf config.disko.impermanent {
|
||||
|
||||
fileSystems."/persist".neededForBoot = true;
|
||||
environment.persistence."/persist/system" = {
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
"/etc/nixos"
|
||||
"/etc/shadow"
|
||||
"/var/log"
|
||||
"/var/lib/bluetooth"
|
||||
"/var/lib/nixos"
|
||||
"/var/lib/systemd/coredump"
|
||||
"/etc/NetworkManager/system-connections"
|
||||
];
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
];
|
||||
};
|
||||
|
||||
programs.fuse.userAllowOther = true;
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
|
||||
outputs = { self, ... }: {
|
||||
|
||||
module = import ./. { inherit self; };
|
||||
module = { config, lib, ... }: import ./. { inherit config lib self; };
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user