2023-11-12 00:40:26 +01:00
|
|
|
{
|
2024-04-11 20:15:47 +02:00
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
|
|
"xhci_pci"
|
|
|
|
"ahci"
|
|
|
|
"nvme"
|
|
|
|
"usbhid"
|
|
|
|
"usb_storage"
|
|
|
|
"sd_mod"
|
|
|
|
];
|
2023-11-12 00:40:26 +01:00
|
|
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
2023-12-08 21:23:08 +01:00
|
|
|
boot.swraid.enable = true;
|
2023-11-12 00:40:26 +01:00
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
|
|
|
filesystems = [
|
|
|
|
{
|
|
|
|
mountpoint = "/";
|
|
|
|
deviceUUID = "966d0ec0-7a7b-4987-91cf-6493e9f5126c";
|
|
|
|
fsType = "ext4";
|
|
|
|
}
|
2023-11-12 10:21:04 +01:00
|
|
|
{
|
|
|
|
mountpoint = "/srv";
|
|
|
|
deviceUUID = "329fe696-ad2f-4a86-b45f-8b143daf02d2";
|
|
|
|
fsType = "ext4";
|
|
|
|
}
|
2023-11-12 00:40:26 +01:00
|
|
|
{
|
|
|
|
mountpoint = "/boot";
|
|
|
|
deviceUUID = "901B-0D68";
|
|
|
|
fsType = "vfat";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2023-11-23 21:55:37 +01:00
|
|
|
imports = [
|
|
|
|
./jellyfin.nix
|
2023-12-10 21:09:53 +01:00
|
|
|
./wireguard.nix
|
2024-04-11 20:08:05 +02:00
|
|
|
./nextcloud.nix
|
2023-11-23 21:55:37 +01:00
|
|
|
];
|
|
|
|
|
2023-11-12 00:40:26 +01:00
|
|
|
swapDeviceUUID = "a7c628ab-c5cb-4094-89d0-19b153fbead4";
|
|
|
|
|
|
|
|
server.networking.enableSSH = true;
|
|
|
|
|
2023-11-14 22:08:37 +01:00
|
|
|
services.nginx.enable = true;
|
|
|
|
|
2023-11-12 00:40:26 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
neovim
|
2023-11-22 21:51:17 +01:00
|
|
|
git
|
2023-11-12 00:40:26 +01:00
|
|
|
];
|
|
|
|
|
2023-11-24 20:16:35 +01:00
|
|
|
hwAccelerationGPU = "intel";
|
|
|
|
|
2024-04-11 20:15:47 +02:00
|
|
|
# System secrets
|
2023-12-10 21:09:53 +01:00
|
|
|
sops = {
|
|
|
|
gnupg.sshKeyPaths = [ ];
|
|
|
|
age = {
|
|
|
|
sshKeyPaths = [ ];
|
|
|
|
keyFile = "/var/lib/sops-nix/key.txt";
|
|
|
|
};
|
|
|
|
defaultSopsFile = ./secrets/secrets.yaml;
|
2024-04-11 20:08:05 +02:00
|
|
|
secrets = {
|
|
|
|
wg0_private = { };
|
|
|
|
wg1_private = { };
|
2024-04-11 20:56:29 +02:00
|
|
|
nextcloud_admin_pw = {
|
|
|
|
owner = config.users.users.nextcloud.name;
|
|
|
|
};
|
2024-04-11 20:08:05 +02:00
|
|
|
};
|
2023-12-10 21:09:53 +01:00
|
|
|
};
|
|
|
|
|
2023-11-12 00:40:26 +01:00
|
|
|
machineUsers = {
|
|
|
|
dala = {
|
|
|
|
description = "Dala";
|
|
|
|
groups = [ "wheel" ];
|
|
|
|
uid = 1000;
|
|
|
|
shell = pkgs.bash;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|