config/machines/sif/configuration.nix

82 lines
1.2 KiB
Nix
Raw Normal View History

2022-05-23 19:51:47 +02:00
{ config, pkgs, lib, ... }:
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-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-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";
systems = [
"x86_64-linux"
"aarch64-linux"
];
supportedFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
];
}];
};
programs.ssh.extraConfig = ''
Host thor
HostName thor
Port 22
User riley
IdentitiesOnly yes
IdentityFile /root/.ssh/id_ed25519
'';
2022-05-23 19:51:47 +02:00
}