2022-05-27 15:59:00 +02:00
|
|
|
{ config, pkgs, lib, agenix, ... }:
|
2022-05-23 20:44:35 +02:00
|
|
|
|
2022-05-23 19:51:47 +02:00
|
|
|
{
|
2022-05-23 20:44:35 +02:00
|
|
|
|
|
|
|
imports = [
|
2022-05-27 13:34:37 +02:00
|
|
|
|
2022-05-27 15:59:00 +02:00
|
|
|
agenix.nixosModule
|
|
|
|
|
2022-05-23 20:44:35 +02:00
|
|
|
../../modules
|
2022-05-27 13:34:37 +02:00
|
|
|
|
|
|
|
# Reverse proxy
|
|
|
|
./nginx.nix
|
|
|
|
|
|
|
|
# Website
|
|
|
|
./website.nix
|
|
|
|
|
2022-05-23 20:44:35 +02:00
|
|
|
];
|
|
|
|
|
2022-05-23 19:51:47 +02:00
|
|
|
networking.hostName = "sif";
|
|
|
|
|
|
|
|
boot.loader = {
|
|
|
|
grub.enable = false;
|
|
|
|
generic-extlinux-compatible.enable = true;
|
|
|
|
};
|
|
|
|
|
2022-05-27 13:34:37 +02:00
|
|
|
documentation.enable = false;
|
|
|
|
|
2022-05-23 19:51:47 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
git
|
|
|
|
vim
|
|
|
|
];
|
|
|
|
|
2022-05-27 16:18:02 +02:00
|
|
|
age.secrets."website".file = ../../secrets/website.age;
|
2022-05-27 15:59:00 +02:00
|
|
|
|
2022-05-23 20:44:35 +02:00
|
|
|
system.stateVersion = "21.11";
|
|
|
|
|
|
|
|
riley = {
|
|
|
|
gui = false;
|
|
|
|
kak = {
|
|
|
|
enable = true;
|
|
|
|
nix = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-05-23 19:51:47 +02:00
|
|
|
users.users."riley" = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" ];
|
|
|
|
};
|
|
|
|
|
2022-05-27 13:34:37 +02:00
|
|
|
networking.interfaces.eth0.useDHCP = true;
|
|
|
|
|
2022-05-23 19:51:47 +02:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-label/NIXOS_SD";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2022-05-23 20:44:35 +02:00
|
|
|
|
2022-05-27 13:34:37 +02:00
|
|
|
nix = {
|
|
|
|
distributedBuilds = true;
|
|
|
|
buildMachines = [{
|
2022-05-28 19:00:50 +02:00
|
|
|
|
|
|
|
hostName = "thor";
|
|
|
|
sshUser = "riley";
|
|
|
|
sshKey = "/root/.ssh/id_ed25519";
|
|
|
|
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
2022-05-27 13:34:37 +02:00
|
|
|
"aarch64-linux"
|
2022-05-28 19:00:50 +02:00
|
|
|
];
|
|
|
|
|
2022-05-27 13:34:37 +02:00
|
|
|
supportedFeatures = [
|
|
|
|
"nixos-test"
|
|
|
|
"benchmark"
|
|
|
|
"big-parallel"
|
|
|
|
"kvm"
|
|
|
|
];
|
2022-05-28 19:00:50 +02:00
|
|
|
|
2022-05-27 13:34:37 +02:00
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
2022-05-23 19:51:47 +02:00
|
|
|
}
|