refactor: put namespaced vm code in module
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
df715a7e8f
commit
fc2d98e503
4 changed files with 158 additions and 80 deletions
|
|
@ -17,7 +17,7 @@
|
|||
}:
|
||||
let
|
||||
diskConfig = import ./disk-config.nix { inherit disks nixpkgs; };
|
||||
machineConfig = ../hosts/servers/${hostname}.nix;
|
||||
machineConfig = import ../hosts/servers/${hostname}.nix;
|
||||
in
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
|
@ -25,6 +25,7 @@
|
|||
modules = [
|
||||
inputs.disko.nixosModules.disko
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
inputs.self.nixosModules.namespaced-vpn
|
||||
|
||||
diskConfig
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue