refactor: put namespaced vm code in module

Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
Lander Van den Bulcke 2025-09-19 14:46:07 +02:00
parent df715a7e8f
commit fc2d98e503
Signed by: lander
GPG key ID: 0142722B4B0C536F
4 changed files with 158 additions and 80 deletions

View file

@ -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