config/machines/sif/configuration.nix

83 lines
1.2 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
./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;
};
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" ];
};
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
}