From 1e3a708ce40565653ddce619d4ba420f88346a94 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Fri, 30 Jun 2023 07:19:13 +0100 Subject: [PATCH] Make a hosts directory. --- flake.nix | 2 +- c1.nix => hosts/c1/default.nix | 4 ++-- c1-hardware.nix => hosts/c1/hardware.nix | 0 compute-node.nix => hosts/common/compute-node.nix | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename c1.nix => hosts/c1/default.nix (85%) rename c1-hardware.nix => hosts/c1/hardware.nix (100%) rename compute-node.nix => hosts/common/compute-node.nix (100%) diff --git a/flake.nix b/flake.nix index 0b547c8..3bb99a9 100644 --- a/flake.nix +++ b/flake.nix @@ -16,7 +16,7 @@ }; in { nixosConfigurations = { - c1 = mkNixos "c1" [ ./c1.nix ]; + c1 = mkNixos "c1" [ ./hosts/c1 ]; }; deploy = { diff --git a/c1.nix b/hosts/c1/default.nix similarity index 85% rename from c1.nix rename to hosts/c1/default.nix index 64c77e2..2228d9b 100644 --- a/c1.nix +++ b/hosts/c1/default.nix @@ -2,8 +2,8 @@ { imports = [ inputs.impermanence.nixosModules.impermanence - ./compute-node.nix - ./c1-hardware.nix + ../common/compute-node.nix + ./hardware.nix ]; networking.hostName = hostname; diff --git a/c1-hardware.nix b/hosts/c1/hardware.nix similarity index 100% rename from c1-hardware.nix rename to hosts/c1/hardware.nix diff --git a/compute-node.nix b/hosts/common/compute-node.nix similarity index 100% rename from compute-node.nix rename to hosts/common/compute-node.nix