fixing placement of nix.package option
This commit is contained in:
parent
f1e8518dbd
commit
e9548d8856
|
@ -5,7 +5,6 @@ with lib;
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
extraOptions = "experimental-features = nix-command flakes";
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
package = pkgs.nixFlakes;
|
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
|
|
|
@ -4,7 +4,6 @@ with lib;
|
||||||
{
|
{
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
extraOptions = "experimental-features = nix-command flakes";
|
|
||||||
package = pkgs.nixVersions.unstable;
|
package = pkgs.nixVersions.unstable;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
9
modules/servers.nix
Normal file
9
modules/servers.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixFlakes;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules/base.nix
|
../../modules/base.nix
|
||||||
|
../../modules/servers.nix
|
||||||
../../pkgs/base-packages.nix
|
../../pkgs/base-packages.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -245,6 +246,9 @@
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"workout.cochrun.xyz".extraConfig = ''
|
"workout.cochrun.xyz".extraConfig = ''
|
||||||
reverse_proxy localhost:8001
|
reverse_proxy localhost:8001
|
||||||
|
header {
|
||||||
|
Access-Control-Allow-Origin *
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules/base.nix
|
../../modules/base.nix
|
||||||
|
../../modules/servers.nix
|
||||||
../../pkgs/base-packages.nix
|
../../pkgs/base-packages.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue