1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-06 08:46:54 +00:00

htop: write-protect entire configuration directory

Fixes #4947
This commit is contained in:
novenary 2024-06-19 17:05:27 +03:00 committed by Austin Horstman
parent 61d8f8366f
commit cb3f6e9b59

View file

@ -172,7 +172,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
@ -189,9 +189,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");
};
};
}