Allow creation of system-specific config files
This commit is contained in:
parent
1154275b70
commit
3d3da6a405
2 changed files with 21 additions and 13 deletions
|
@ -7,7 +7,9 @@
|
||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = { self, nixpkgs }:
|
||||||
let
|
let
|
||||||
system = import ./system.nix;
|
system = import ./lib/system.nix {
|
||||||
|
inherit nixpkgs;
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
nixosConfigurations.manu-surface = system "manu-surface" {};
|
nixosConfigurations.manu-surface = system "manu-surface" {};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,12 +1,18 @@
|
||||||
name :
|
{ nixpkgs }:
|
||||||
{ dualBoot ? false } :
|
name :
|
||||||
nixpkgs.lib.nixosSystem {
|
{ dualBoot ? false } :
|
||||||
system = "x86_64-linux";
|
let
|
||||||
modules = [
|
lib = nixpkgs.lib;
|
||||||
{ config, pkgs, ... }: {
|
in
|
||||||
imports = [
|
lib.nixosSystem {
|
||||||
../hardware-configuration.nix
|
system = "x86_64-linux";
|
||||||
];
|
modules = [
|
||||||
}
|
(lib.optional (builtins.pathExists ../machines/${name}.nix) ../machines/${name}.nix)
|
||||||
];
|
(
|
||||||
}
|
{ config, pkgs, ... }: {
|
||||||
|
imports = [
|
||||||
|
../hardware-configuration.nix
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue