This commit is contained in:
Spectre 2024-06-07 01:52:13 +02:00
parent 0578d5acec
commit 2aa265b82a
3 changed files with 4 additions and 10 deletions

View file

@ -25,6 +25,7 @@
outputs = { outputs = {
self, self,
nixpkgs, nixpkgs,
impermanence,
... ...
} @ inputs: let } @ inputs: let
inherit (self) outputs; inherit (self) outputs;
@ -48,6 +49,7 @@
modules = [ modules = [
./hosts/${host}/configuration.nix ./hosts/${host}/configuration.nix
./hosts/${host}/hardware-configuration.nix ./hosts/${host}/hardware-configuration.nix
impermanence.nixosModule
]; ];
}; };
in { in {

View file

@ -3,7 +3,7 @@
enable = true; enable = true;
interval = "Fri 07:00"; interval = "Fri 07:00";
fileSystems = [ fileSystems = [
"/persistent" "/persist"
"/nix" "/nix"
]; ];
}; };

View file

@ -1,17 +1,9 @@
{ {conf, ...}: {
conf,
impermanence,
...
}: {
imports = [impermanence.nixosModule];
environment.persistence."/persist/data" = { environment.persistence."/persist/data" = {
hideMounts = true; hideMounts = true;
directories = [ directories = [
"/etc/NetworkManager/system-connections" "/etc/NetworkManager/system-connections"
"/var/log"
"/var/lib/bluetooth" "/var/lib/bluetooth"
"/var/lib/nixos"
"/var/lib/systemd/coredump" "/var/lib/systemd/coredump"
"/var/lib/bluetooth" "/var/lib/bluetooth"
]; ];