simple mechanism to override modules from master

This commit is contained in:
Timothy DeHerrera 2020-12-31 13:43:34 -07:00
parent 164a672129
commit 73bc694bbb
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
1 changed files with 9 additions and 0 deletions

View File

@ -14,6 +14,8 @@ let
inherit (builtins) attrValues removeAttrs; inherit (builtins) attrValues removeAttrs;
inherit (pkgset) osPkgs unstablePkgs; inherit (pkgset) osPkgs unstablePkgs;
unstableModules = [ ];
config = hostName: config = hostName:
lib.nixosSystem { lib.nixosSystem {
inherit system; inherit system;
@ -27,6 +29,13 @@ let
let let
core = self.nixosModules.profiles.core; core = self.nixosModules.profiles.core;
modOverrides = { config, unstableModulesPath, ... }: {
disabledModules = unstableModules;
imports = map
(path: "${unstableModulesPath}/${path}")
unstableModules;
};
global = { global = {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;