From 3bdcaa3d53c529179b03fc18c6d4eca3c152be6e Mon Sep 17 00:00:00 2001 From: smayzy Date: Sun, 25 Jan 2026 16:09:43 +0100 Subject: [PATCH] add base for ctf-vm1 --- flake.nix | 1 + hosts/ctf-vm1/configuration.nix | 22 ++++++++++++++++++++++ hosts/ctf-vm1/home.nix | 7 +++++++ 3 files changed, 30 insertions(+) create mode 100644 hosts/ctf-vm1/configuration.nix create mode 100644 hosts/ctf-vm1/home.nix diff --git a/flake.nix b/flake.nix index af3506c..f28728a 100644 --- a/flake.nix +++ b/flake.nix @@ -52,6 +52,7 @@ desktop1 = mkHost ./hosts/desktop1/configuration.nix; server1 = mkHost ./hosts/server1/configuration.nix; laptop1 = mkHost ./hosts/laptop1/configuration.nix; + ctf-vm1 = mkHost ./hosts/ctf-vm1/configuration.nix; }; }; diff --git a/hosts/ctf-vm1/configuration.nix b/hosts/ctf-vm1/configuration.nix new file mode 100644 index 0000000..de69a34 --- /dev/null +++ b/hosts/ctf-vm1/configuration.nix @@ -0,0 +1,22 @@ +{ inputs, config, ... }: + +{ + imports = [ + ../common/common.nix + ./hardware-configuration.nix + ]; + + networking.hostName = "ctf-vm1"; + + home-manager = { + extraSpecialArgs = { + inherit inputs; + smayzy = config.smayzy; + }; + users = { + smayzy = import ./home.nix; + }; + backupFileExtension = "backup"; + }; + +} diff --git a/hosts/ctf-vm1/home.nix b/hosts/ctf-vm1/home.nix new file mode 100644 index 0000000..e328f19 --- /dev/null +++ b/hosts/ctf-vm1/home.nix @@ -0,0 +1,7 @@ +{ ... }: + +{ + imports = [ + ../common/home.nix + ]; +}