mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
parent
7a6655e89a
commit
28aa682cbf
1 changed files with 4 additions and 4 deletions
|
@ -171,7 +171,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
|
||||||
|
@ -188,9 +188,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…
Reference in a new issue