diff --git a/flake.nix b/flake.nix index b9c9519..9a6904c 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; + } + ]; }; }; } diff --git a/run.sh b/run.sh index 56b4af4..97e43da 100755 --- a/run.sh +++ b/run.sh @@ -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 diff --git a/system/configuration.nix b/system/configuration.nix index 9d51a09..6d48ba0 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -39,5 +39,4 @@ # #FRITFIT (custom shiz) services.stregsystemet.enable = true; - fklub.domain = "fklub.dk"; }