Skip to content

Commit

Permalink
added test config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sly-Harvey committed Apr 17, 2024
1 parent 5c35420 commit 386ccb6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
32 changes: 19 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 386ccb6

Please sign in to comment.