diff --git a/flake.nix b/flake.nix index 0b257e3..712fbe0 100644 --- a/flake.nix +++ b/flake.nix @@ -12,29 +12,43 @@ outputs = { nixpkgs, nixvim, ... }: { - nixosConfigurations = ( - let - hosts = builtins.attrNames (builtins.readDir ./hosts); - in - builtins.listToAttrs ( - map ( - host: - nixpkgs.lib.nameValuePair host ( - nixpkgs.lib.nixosSystem { - specialArgs = { - nixpkgs-flake = nixpkgs; - inherit nixvim; - }; - system = "x86_64-linux"; - modules = [ - { networking.hostName = host; } - ./hosts/${host}/configuration.nix - ./hosts/${host}/state.nix - ]; - } - ) - ) hosts + nixosConfigurations = + ( + let + hosts = builtins.attrNames (builtins.readDir ./hosts); + in + builtins.listToAttrs ( + map ( + host: + nixpkgs.lib.nameValuePair host ( + nixpkgs.lib.nixosSystem { + specialArgs = { + nixpkgs-flake = nixpkgs; + inherit nixvim; + }; + system = "x86_64-linux"; + modules = [ + { networking.hostName = host; } + ./hosts/${host}/configuration.nix + ./hosts/${host}/state.nix + ]; + } + ) + ) hosts + ) ) - ); + // { + wg-rpi = nixpkgs.lib.nixosSystem { + specialArgs = { + nixpkgs-flake = nixpkgs; + inherit nixvim; + }; + system = "aarch64-linux"; + modules = [ + { networking.hostName = "wg-rpi"; } + ./hosts/special/wg-rpi/configuration.nix + ]; + }; + }; }; } diff --git a/hosts/wg-rpi/configuration.nix b/hosts/special/wg-rpi/configuration.nix similarity index 98% rename from hosts/wg-rpi/configuration.nix rename to hosts/special/wg-rpi/configuration.nix index afe65be..179e05a 100644 --- a/hosts/wg-rpi/configuration.nix +++ b/hosts/special/wg-rpi/configuration.nix @@ -8,7 +8,7 @@ let ddPassFile = "/root/wg-conf/ddPassFile"; in { - imports = [ ../../shared/base.nix ]; + imports = [ ../../../shared/base.nix ]; environment.systemPackages = with pkgs; [ wireguard-tools @@ -94,6 +94,7 @@ in passwordFile = ddPassFile; }; #################### EVERYTHING BELOW THIS SHOULD NOT NEED TO CHANGE #################### + stateVersion = "24.11"; nix.settings = { cores = 3;