1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 18:59:47 +01:00

htop: write-protect entire configuration directory

Fixes #4947
This commit is contained in:
novenary 2024-06-19 17:05:27 +03:00
parent 7a6655e89a
commit 28aa682cbf

View file

@ -171,7 +171,7 @@ in {
home.packages = [ cfg.package ];
xdg.configFile."htop/htoprc" = let
xdg.configFile."htop" = let
defaults = {
fields = if isDarwin then
remove fields.M_SHARE defaultFields
@ -188,9 +188,9 @@ in {
formatOptions = mapAttrsToList formatOption;
in mkIf (cfg.settings != { }) {
text =
concatStringsSep "\n" (formatOptions before ++ formatOptions settings)
+ "\n";
source = pkgs.writeTextDir "htoprc"
(concatStringsSep "\n" (formatOptions before ++ formatOptions settings)
+ "\n");
};
};
}