From 66ecfc8f9f5a9ec21482d86e19e01d225be30c0d Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sun, 21 Aug 2022 00:23:09 +0200 Subject: Set non persistance as the default --- hosts/configuration.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'hosts/configuration.nix') diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 9862007..84cb8f8 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -1,6 +1,8 @@ { secrets, lib, pkgs, config, hostname, inputs, user, timezone, ... }: { imports = [ + "${inputs.impermanence}/nixos.nix" + ../modules/doas ../modules/pipewire ../modules/xorg @@ -140,6 +142,17 @@ }; }; + environment.persistence."/persist" = { + directories = [ + "/var/log" + "/var/lib" + ]; + files = [ + "/etc/machine-id" + "/etc/nix/id_rsa" + ]; + }; + nix = { settings.auto-optimise-store = true; gc = { -- cgit 1.4.1