Skip to content

Commit

Permalink
feat: use a slightly different config for testing and production (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshesOfEther authored Mar 13, 2024
1 parent 4add5be commit c019f3f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
18 changes: 16 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,23 @@
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations.fklub = nixpkgs.lib.nixosSystem {
nixosConfigurations.fklub-test = nixpkgs.lib.nixosSystem {
inherit system;
modules = [ ./system/configuration.nix ];
modules = [
./system/configuration.nix
{
fklub.domain = "localhost";
}
];
};
nixosConfigurations.fklub-prod = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./system/configuration.nix
{
fklub.domain = "fklub.dk";
}
];
};
};
}
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set -e

cd $(dirname $0)
nixos-rebuild build-vm --flake .#fklub
nixos-rebuild build-vm --flake .#fklub-test
result/bin/run-fklub-vm
1 change: 0 additions & 1 deletion system/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@

# #FRITFIT (custom shiz)
services.stregsystemet.enable = true;
fklub.domain = "fklub.dk";
}

0 comments on commit c019f3f

Please sign in to comment.