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

View file

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