mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-18 05:02:10 -08:00
refactor: use overlay to inject zen-browser into package set
This commit is contained in:
parent
6590279a68
commit
6fdc88a854
2 changed files with 7 additions and 4 deletions
|
@ -167,6 +167,11 @@
|
|||
spicepkgs = inputs.spicetify.legacyPackages.${pkgs.system};
|
||||
inherit inputs self;
|
||||
};
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
zen-browser = inputs.zen-browser.packages.${pkgs.system}.default;
|
||||
})
|
||||
];
|
||||
}
|
||||
)
|
||||
];
|
||||
|
|
|
@ -85,11 +85,9 @@ in
|
|||
};
|
||||
|
||||
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 "${
|
||||
inputs.zen-browser.packages.${pkgs.system}.default
|
||||
}/bin/zen";
|
||||
home.sessionVariables.DEFAULT_BROWSER = lib.mkIf cfg.zen.enable "${pkgs.zen-browser}/bin/zen";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue