separate out nixpkgs per host

This commit is contained in:
RingOfStorms (Josh) 2024-06-20 12:51:12 -05:00
parent 7db5442cc0
commit b12cc50714
3 changed files with 187 additions and 65 deletions

View file

@ -1,18 +1,23 @@
{ config, pkgs, home-manager, settings, ylib, ... } @ inputs:
# Note that we must have the channel added for the import to work below
# `sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager`
# `sudo nix-channel --update`
{
imports =
[
# home manager import
home-manager.nixosModules.home-manager
# home-manager
];
config,
settings,
ylib,
...
}@inputs:
let
home-manager = settings.home-manager;
in
{
imports = [ home-manager.nixosModules.home-manager ];
# Home manager options
security.polkit.enable = true;
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
home-manager.extraSpecialArgs = { inherit settings; inherit ylib; inherit (inputs) ragenix; inherit (config) age; };
home-manager.extraSpecialArgs = {
inherit settings;
inherit ylib;
inherit (inputs) ragenix;
inherit (config) age;
};
}