Skip to content

Commit

Permalink
add gc-root for home-files
Browse files Browse the repository at this point in the history
  • Loading branch information
pogobanane committed Aug 5, 2024
1 parent 1aad627 commit 0287d46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions homeManager/peter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ let
runtimeInputs = [ pkgs.nmap ];
text = "${pkgs.nmap}/bin/nmap -sP \"$@\"";
};

gc-roots = pkgs.writeScriptBin "dont-collect-these-nix-store-paths" ''
This script is a root node for the nix garbage collector. Hence the following store paths are prevented from being cleaned up.
echo "${config.home-files}" # home-files get collected otherwise. Maybe its NFS?
'';
in
{
imports = [
Expand Down Expand Up @@ -178,6 +184,7 @@ in
sopspw
age
nscan
gc-roots
nixos-generations
nix-output-monitor # nom
# rustup
Expand Down

0 comments on commit 0287d46

Please sign in to comment.