From 388c587fdfb29854ef38ac65029a89c8e2a92112 Mon Sep 17 00:00:00 2001 From: Aleksandr Lebedev Date: Tue, 17 Dec 2024 19:19:20 +0100 Subject: [PATCH] update --- nixos/configuration.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 40d221d..b4467ed 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -14,7 +14,7 @@ kylekrein.services.autoUpgrade = { enable = true; pushUpdates = if hwconfig.hostname == "${username}-homepc" then true else false; - configDir = "/home/${username}/nixos-config"; + configDir = "${if hwconfig.useImpermanence then "/persist/nixos-config" else "/home/${username}/nixos-config"}"; user = username; }; @@ -247,7 +247,7 @@ enable = true; clean.enable = true; clean.extraArgs = "--keep-since 4d --keep 3"; - flake = "/home/${username}/nixos-config"; + flake = "${if hwconfig.useImpermanence then "/persist/nixos-config" else "/home/${username}/nixos-config"}"; }; #https://discourse.nixos.org/t/dolphin-does-not-have-mime-associations/48985/3 # This fixes the unpopulated MIME menus