mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
move host config common modules
This commit is contained in:
parent
f9af878095
commit
8f0d0981a1
1 changed files with 14 additions and 7 deletions
|
@ -1,22 +1,29 @@
|
|||
{ unstable, stable2009 }:
|
||||
let
|
||||
|
||||
commonModules = [
|
||||
../.
|
||||
({ ... }: {
|
||||
config = {
|
||||
sconfig.flakes.enable = true;
|
||||
sconfig.flakes.rebuildPath = "github:buckley310/nixos-config";
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
mkStandardSystem = { name, pkgs }: pkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
modules = commonModules ++ [
|
||||
pkgs.nixosModules.notDetected
|
||||
({ ... }: { config = { sconfig.flakes.enable = true; }; })
|
||||
(./. + "/configuration_${name}.nix")
|
||||
../.
|
||||
];
|
||||
};
|
||||
|
||||
mkQemuSystem = { name, pkgs }: pkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
({ modulesPath, ... }: { imports = [ "${modulesPath}/profiles/qemu-guest.nix" ]; })
|
||||
({ ... }: { config = { sconfig.flakes.enable = true; }; })
|
||||
modules = commonModules ++ [
|
||||
(x: { imports = [ "${x.modulesPath}/profiles/qemu-guest.nix" ]; })
|
||||
(./. + "/configuration_${name}.nix")
|
||||
../.
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue