config/machines/sif/configuration.nix

92 lines
1.3 KiB
Nix
Raw Normal View History

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 15:59:00 +02:00
agenix.nixosModule
2022-05-23 20:44:35 +02:00
../../modules
# Reverse proxy
2022-06-18 10:00:51 +02:00
./services/nginx.nix
# Website
2022-06-18 10:00:51 +02:00
./services/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;
};
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";
# Custom modules defined by myself.
custom = {
gui.enable = false;
2022-05-23 20:44:35 +02:00
kak = {
enable = true;
ide.nix = true;
2022-05-23 20:44:35 +02:00
};
net.interfaces = [
"eth0"
];
2022-05-23 20:44:35 +02:00
};
2022-05-23 19:51:47 +02:00
users.users."riley" = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
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
nix = {
distributedBuilds = true;
buildMachines = [{
hostName = "thor";
sshUser = "riley";
sshKey = "/root/.ssh/id_ed25519";
systems = [
"x86_64-linux"
"aarch64-linux"
];
supportedFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
];
}];
};
2022-05-23 19:51:47 +02:00
}