Compare commits

..

No commits in common. "da23b55bfbabc0c0a7e1696d54fc5401946e8186" and "eaabc1b2cac6c1540b7e5ba07c13c525a4cba6b9" have entirely different histories.

2 changed files with 3 additions and 30 deletions

View file

@ -8,16 +8,17 @@
./common
./common/sites/gifford
./common/server
./services.nix
];
boot.loader = {
grub = {
# Use the GRUB 2 boot loader.
enable = true;
version = 2;
# efiSupport = true;
# efiInstallAsRemovable = false;
# Define on which hard drive you want to install Grub.
device = "/dev/sda"; # or "nodev" for efi only
device = "/dev/disk/by-uuid/caab3f5b-b264-4070-8a98-fb267ed31280"; # or "nodev" for efi only
};
# efi.efiSysMountPoint = "/boot/efi"; # (part of the generated default)
};
@ -45,8 +46,6 @@
services.xserver.layout = "us";
fileSystems."/srv".options = [ "nofail" ];
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave

View file

@ -1,26 +0,0 @@
{pkgs, ...}: {
environment.etc."srv/docker-compose.yml" = builtins.readFile ./docker-compose.yml;
systemd.services.load-balancer = let dataset = "gc1_srv";
in {
wantedBy = ["multi-user.target"];
requires = ["public-network.service"
"zfs-import-${dataset}.service"];
after = ["public-network.service"
"zfs-import-${dataset}.service"];
serviceConfig = {
ExecStart = "${pkgs.docker}/bin/docker compose up";
WorkingDirectory = "/etc/srv/load-balancer";
};
};
}
# '//' in nix means "merge attribute sets". We're importing a function at the
# path, then calling it with the attr set as an argument, and merging the
# results with the config above
// import ./common/services/load-balancer { dataset = "gc1_srv"; pkgs = pkgs; }
// import ./common/services/conduit.nix {
dataset = "gc1_srv";
pkgs = pkgs;
domain = "chat.techwork.zone";
}