refactor: use overlay to inject zen-browser into package set

This commit is contained in:
Youwen Wu 2024-12-25 23:49:27 -08:00
parent 6590279a68
commit 6fdc88a854
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 7 additions and 4 deletions

View file

@ -167,6 +167,11 @@
spicepkgs = inputs.spicetify.legacyPackages.${pkgs.system}; spicepkgs = inputs.spicetify.legacyPackages.${pkgs.system};
inherit inputs self; inherit inputs self;
}; };
nixpkgs.overlays = [
(final: prev: {
zen-browser = inputs.zen-browser.packages.${pkgs.system}.default;
})
];
} }
) )
]; ];

View file

@ -85,11 +85,9 @@ in
}; };
home.packages = lib.mkIf cfg.zen.enable [ home.packages = lib.mkIf cfg.zen.enable [
inputs.zen-browser.packages.${pkgs.system}.default pkgs.zen-browser
]; ];
home.sessionVariables.DEFAULT_BROWSER = lib.mkIf cfg.zen.enable "${ home.sessionVariables.DEFAULT_BROWSER = lib.mkIf cfg.zen.enable "${pkgs.zen-browser}/bin/zen";
inputs.zen-browser.packages.${pkgs.system}.default
}/bin/zen";
}; };
} }