Skip to content

Commit

Permalink
feat: use a slightly different config for testing and production
Browse files Browse the repository at this point in the history
  • Loading branch information
AshesOfEther committed Mar 13, 2024
1 parent 90f5f90 commit 10a9e35
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 10a9e35

Please sign in to comment.