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

View file

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

View file

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