mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-14 13:01:09 +01:00
parent
61d8f8366f
commit
cb3f6e9b59
1 changed files with 4 additions and 4 deletions
|
|
@ -172,7 +172,7 @@ in {
|
||||||
|
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
xdg.configFile."htop/htoprc" = let
|
xdg.configFile."htop" = let
|
||||||
defaults = {
|
defaults = {
|
||||||
fields = if isDarwin then
|
fields = if isDarwin then
|
||||||
remove fields.M_SHARE defaultFields
|
remove fields.M_SHARE defaultFields
|
||||||
|
|
@ -189,9 +189,9 @@ in {
|
||||||
formatOptions = mapAttrsToList formatOption;
|
formatOptions = mapAttrsToList formatOption;
|
||||||
|
|
||||||
in mkIf (cfg.settings != { }) {
|
in mkIf (cfg.settings != { }) {
|
||||||
text =
|
source = pkgs.writeTextDir "htoprc"
|
||||||
concatStringsSep "\n" (formatOptions before ++ formatOptions settings)
|
(concatStringsSep "\n" (formatOptions before ++ formatOptions settings)
|
||||||
+ "\n";
|
+ "\n");
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue