forked from pub-solar/os
simple mechanism to override modules from master
This commit is contained in:
parent
164a672129
commit
73bc694bbb
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue