From 38fba61f9c99c8b8fbfd6559ad82c3cf2969841b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Barnouin?= Date: Mon, 9 Sep 2024 15:22:30 +0200 Subject: [PATCH] Try to separate hosts --- flake.nix | 4 ++-- configuration.nix => hosts/nixos/configuration.nix | 0 .../nixos/hardware-configuration.nix | 0 home.nix => hosts/nixos/home.nix | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename configuration.nix => hosts/nixos/configuration.nix (100%) rename hardware-configuration.nix => hosts/nixos/hardware-configuration.nix (100%) rename home.nix => hosts/nixos/home.nix (100%) diff --git a/flake.nix b/flake.nix index 415695a..6ff070b 100644 --- a/flake.nix +++ b/flake.nix @@ -22,7 +22,7 @@ ${hostName} = nixpkgs.lib.nixosSystem { inherit system; modules = [ - ./configuration.nix + ./hosts/${hostName}/configuration.nix { networking.hostName = hostName; } @@ -30,7 +30,7 @@ { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.users.${username} = import ./home.nix; + home-manager.users.${username} = import ./hosts/${hostName}/home.nix; } microvm.nixosModules.host { diff --git a/configuration.nix b/hosts/nixos/configuration.nix similarity index 100% rename from configuration.nix rename to hosts/nixos/configuration.nix diff --git a/hardware-configuration.nix b/hosts/nixos/hardware-configuration.nix similarity index 100% rename from hardware-configuration.nix rename to hosts/nixos/hardware-configuration.nix diff --git a/home.nix b/hosts/nixos/home.nix similarity index 100% rename from home.nix rename to hosts/nixos/home.nix