From c3a491a8d902fc3080905e8c44a20156a847ff22 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Wed, 14 Aug 2024 15:12:29 +0200 Subject: [PATCH] state: remove `/home` from default state folders Home should not always be set by default. In the UI we can suggest it, but it catches a lot of state you might not want to back up. The default has been moved to be automatically set by vm's in `vm.nix`. --- nixosModules/clanCore/state.nix | 2 -- nixosModules/clanCore/vm.nix | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nixosModules/clanCore/state.nix b/nixosModules/clanCore/state.nix index 17757fed7..5e0425092 100644 --- a/nixosModules/clanCore/state.nix +++ b/nixosModules/clanCore/state.nix @@ -106,8 +106,6 @@ ); }; - # defaults - config.clan.core.state.HOME.folders = [ "/home" ]; config.environment.systemPackages = lib.optional (config.clan.core.state != { }) ( pkgs.runCommand "state-commands" { } '' ${builtins.concatStringsSep "\n" ( diff --git a/nixosModules/clanCore/vm.nix b/nixosModules/clanCore/vm.nix index a015f1591..88cea4524 100644 --- a/nixosModules/clanCore/vm.nix +++ b/nixosModules/clanCore/vm.nix @@ -20,6 +20,8 @@ let ./waypipe.nix ]; + clan.core.state.HOME.folders = [ "/home" ]; + clan.services.waypipe = { inherit (config.clan.core.vm.inspect.waypipe) enable command; };