Getting more idomatic nix modules setup... will tackle users dir later

This commit is contained in:
RingOfStorms (Josh) 2024-10-10 15:21:39 -05:00
parent 6316fffeb1
commit 913cff0ffa
41 changed files with 675 additions and 498 deletions

View file

@ -79,6 +79,7 @@
inherit user;
nixpkgs = joe_nixpkgs;
home-manager = joe_home-manager;
allowUnfree = true;
};
}
{
@ -90,6 +91,7 @@
inherit user;
nixpkgs = gpdPocket3_nixpkgs;
home-manager = gpdPocket3_home-manager;
allowUnfree = true;
};
}
{
@ -107,6 +109,7 @@
};
nixpkgs = h002_nixpkgs;
home-manager = h002_home-manager;
allowUnfree = true;
};
}
];
@ -127,14 +130,15 @@
// {
"${nixConfig.name}" =
let
lib = nixConfig.settings.nixpkgs.lib;
settings = nixConfig.settings;
lib = settings.nixpkgs.lib;
ylib = nypkgs.legacyPackages.${nixConfig.opts.system}.lib;
in
(lib.nixosSystem {
modules =
[
./hosts/_common/configuration.nix
cosmic.nixosModules.default
./hosts/configuration.nix
]
++ ylib.umport {
path = lib.fileset.maybeMissing ./modules;
@ -144,7 +148,7 @@
inherit ylib;
settings =
directories
// nixConfig.settings
// settings
// {
system = nixConfig.opts // {
hostname = nixConfig.name;