From 386ccb6d4bce9f775489f7097bb935e23cd4698b Mon Sep 17 00:00:00 2001 From: Sly-Harvey Date: Wed, 17 Apr 2024 08:23:51 +0100 Subject: [PATCH] added test config --- .github/workflows/main.yml | 2 +- flake.nix | 32 +++++++++++++++++++------------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b5f5955..7bda636 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,4 +59,4 @@ jobs: - name: "Build NixOS config ❄️" run: | - nix build .#nixosConfigurations.nixos.config.system.build.toplevel + nix build .#nixosConfigurations.Test.config.system.build.toplevel diff --git a/flake.nix b/flake.nix index 9f5766a..65914c2 100644 --- a/flake.nix +++ b/flake.nix @@ -34,25 +34,12 @@ lib = nixpkgs.lib; in { nixosConfigurations = { - iso = lib.nixosSystem { - inherit system; - specialArgs = - { - username = "harvey"; - inherit inputs; - } - // inputs; - modules = [ - ./hosts/ISO/configuration.nix - ]; - }; # This is the only config you will have to change (Desktop and Laptop are for my personal use and may not work for you) nixos = lib.nixosSystem { inherit system; specialArgs = {inherit username locale timezone inputs;} // inputs; modules = [ ./hosts/Default/configuration.nix - #./home/programs/firefox/firefox-system.nix ]; }; Desktop = lib.nixosSystem { @@ -75,6 +62,25 @@ ./hosts/Laptop/configuration.nix ]; }; + iso = lib.nixosSystem { + inherit system; + specialArgs = + { + username = "harvey"; + inherit inputs; + } + // inputs; + modules = [ + ./hosts/ISO/configuration.nix + ]; + }; + Test = lib.nixosSystem { + inherit system; + specialArgs = {inherit username locale timezone inputs;} // inputs; + modules = [ + ./hosts/Test/configuration.nix + ]; + }; }; # Standalone home-manager configuration entrypoint