test
This commit is contained in:
parent
bb6a69d377
commit
d685ba3c45
1 changed files with 24 additions and 19 deletions
|
@ -32,6 +32,19 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
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,
|
||||||
|
@ -45,16 +58,7 @@
|
||||||
unfree ? false
|
unfree ? false
|
||||||
}: inputs.${repo}.lib.nixosSystem {
|
}: inputs.${repo}.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme nixpkgs-unstable; };
|
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme nixpkgs-unstable; };
|
||||||
pkgs = import inputs.${repo} {
|
|
||||||
inherit system;
|
|
||||||
config.allowUnfree = unfree;
|
|
||||||
hostPlatform = system;
|
|
||||||
};
|
|
||||||
unstable-pkgs = import inputs.nixpkgs-unstable {
|
|
||||||
inherit system;
|
|
||||||
config.allowUnfree = unfree;
|
|
||||||
hostPlatform = system;
|
|
||||||
};
|
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
# Types are 'default', 'small', and 'minimal'
|
# Types are 'default', 'small', and 'minimal'
|
||||||
|
@ -63,6 +67,7 @@
|
||||||
inputs.lanzaboote.nixosModules.lanzaboote
|
inputs.lanzaboote.nixosModules.lanzaboote
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Combines mkHost and mkHome for image building
|
# Combines mkHost and mkHome for image building
|
||||||
mkImage = {
|
mkImage = {
|
||||||
|
|
Loading…
Reference in a new issue