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
|
2022-06-18 10:00:51 +02:00
|
|
|
./services/nginx.nix
|
2022-05-27 13:34:37 +02:00
|
|
|
|
|
|
|
# Website
|
2022-06-18 10:00:51 +02:00
|
|
|
./services/website.nix
|
2022-05-27 13:34:37 +02:00
|
|
|
|
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";
|
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
# Custom modules defined by myself.
|
|
|
|
custom = {
|
|
|
|
|
|
|
|
gui.enable = false;
|
|
|
|
|
2022-05-23 20:44:35 +02:00
|
|
|
kak = {
|
2022-07-25 13:31:09 +02:00
|
|
|
enable = true;
|
|
|
|
ide.nix = true;
|
2022-05-23 20:44:35 +02:00
|
|
|
};
|
2022-07-25 13:31:09 +02:00
|
|
|
|
|
|
|
net.interfaces = [
|
|
|
|
"eth0"
|
|
|
|
];
|
|
|
|
|
2022-05-23 20:44:35 +02:00
|
|
|
};
|
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
|
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
|
|
|
}
|