test
This commit is contained in:
parent
98253f45e0
commit
f7293f8846
1 changed files with 23 additions and 25 deletions
|
@ -32,19 +32,6 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
let
|
|
||||||
pkgs = import inputs.${repo} {
|
|
||||||
inherit system;
|
|
||||||
config.allowUnfree = unfree;
|
|
||||||
hostPlatform = system;
|
|
||||||
};
|
|
||||||
unstable-pkgs = import inputs.nixpkgs-unstable {
|
|
||||||
inherit system;
|
|
||||||
config.allowUnfree = unfree;
|
|
||||||
hostPlatform = system;
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
# Helper function for generating host configs
|
# Helper function for generating host configs
|
||||||
mkHost = {
|
mkHost = {
|
||||||
hostname,
|
hostname,
|
||||||
|
@ -57,9 +44,20 @@
|
||||||
repo ? "nixpkgs",
|
repo ? "nixpkgs",
|
||||||
unfree ? false
|
unfree ? false
|
||||||
}: inputs.${repo}.lib.nixosSystem {
|
}: inputs.${repo}.lib.nixosSystem {
|
||||||
|
let
|
||||||
|
pkgs = import inputs.${repo} {
|
||||||
|
inherit system;
|
||||||
|
config.allowUnfree = unfree;
|
||||||
|
hostPlatform = system;
|
||||||
|
};
|
||||||
|
unstable-pkgs = import inputs.nixpkgs-unstable {
|
||||||
|
inherit system;
|
||||||
|
config.allowUnfree = unfree;
|
||||||
|
hostPlatform = system;
|
||||||
|
};
|
||||||
|
in {
|
||||||
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme; };
|
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme; };
|
||||||
|
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
# Types are 'default', 'small', and 'minimal'
|
# Types are 'default', 'small', and 'minimal'
|
||||||
../nixos/${type}.nix
|
../nixos/${type}.nix
|
||||||
|
|
Loading…
Reference in a new issue