modules.packages.desktop-fat.steam: replace chinese comment

This commit is contained in:
2024-01-04 22:25:40 +08:00
parent 8543130661
commit bbf601f5a8
2 changed files with 25 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ inputs:
imports = inputs.localLib.mkModules
[
./chromium.nix
./steam.nix
];
config =
let
@@ -42,6 +43,6 @@ inputs:
] ++ (with inputs.lib; filter isDerivation (attrValues plasma5Packages.kdeGear));
};
};
programs = { steam.enable = true; kdeconnect.enable = true; };
programs.kdeconnect.enable = true;
};
}

View File

@@ -0,0 +1,23 @@
inputs:
{
config =
let
inherit (inputs.lib) mkIf;
in mkIf (builtins.elem "desktop-fat" inputs.config.nixos.packages._packageSets)
{
programs.steam =
{
enable = true;
package = inputs.pkgs.steam.override (prev:
{
steam = prev.steam.overrideAttrs (prev:
{
postInstall = prev.postInstall +
''
sed -i 's#Comment\[zh_CN\]=.*$#Comment\[zh_CN\]=®#' $out/share/applications/steam.desktop
'';
});
});
};
};
}