feat[client]: make home-manager more convenient to use
Some checks are pending
Flake check / Check flake (push) Waiting to run

This commit is contained in:
Leon Schwarzäugl 2025-11-01 23:56:37 +01:00
parent 64e6a9c159
commit 40b42028d2
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
3 changed files with 108 additions and 65 deletions

View file

@ -50,7 +50,19 @@ in
nixpkgs.overlays = lib.mkIf config.swarselsystems.isNixos (lib.mkForce null);
programs = {
home-manager.enable = lib.mkIf (!config.swarselsystems.isNixos) true;
home-manager = lib.mkIf (!config.swarselsystems.isNixos)
{
enable = true;
package = pkgs.symlinkJoin {
name = "home-manager";
buildInputs = [ pkgs.makeWrapper ];
paths = [ pkgs.home-manager ];
postBuild = ''
wrapProgram $out/bin/home-manager \
--append-flags '--flake .#$(hostname)'
'';
};
};
man = {
enable = true;
generateCaches = true;