nixos/systems/staubfinger/default.nix

77 lines
1.8 KiB
Nix
Raw Normal View History

2024-01-01 13:14:24 +01:00
{ hostname }:
2024-02-02 13:45:05 +01:00
{ inputs, ... }:
{
2022-02-28 22:36:07 +01:00
imports = [
2023-05-29 16:21:23 +02:00
inputs.nixos-hardware.nixosModules.common-gpu-intel
inputs.nixos-hardware.nixosModules.common-pc-laptop
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
2022-02-28 22:36:07 +01:00
];
2024-02-02 13:45:05 +01:00
boot.initrd.availableKernelModules = [
"aesni_intel"
"ahci"
"cryptd"
"sd_mod"
"usb_storage"
"xhci_pci"
];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
2021-11-16 20:57:04 +01:00
boot.extraModulePackages = [ ];
2024-01-09 18:56:16 +01:00
boot.initrd.luks.devices."cryptlvm" = {
allowDiscards = true;
device = "/dev/sda2";
};
boot.initrd.luks.devices."cryptswap" = {
allowDiscards = true;
device = "/dev/sda3";
};
boot.kernelParams = [
"acpi_osi=" # required for hardware support
"ip=dhcp" # required for ssh at initrd
];
2023-06-12 16:15:29 +02:00
2023-06-12 15:23:09 +02:00
boot.loader.efi.efiSysMountPoint = "/boot/efi";
2024-02-02 13:45:05 +01:00
boot.supportedFilesystems = [
"apfs"
"exfat"
"ext4"
"nfs"
"nfs4"
"ntfs"
"cifs"
"f2fs"
];
2022-01-03 20:11:17 +01:00
2021-11-23 20:57:23 +01:00
fileSystems."/" = {
2023-06-12 15:23:09 +02:00
device = "/dev/disk/by-uuid/5d2e0ae2-8604-4921-b8b7-731358220a0f";
2021-11-23 20:57:23 +01:00
fsType = "ext4";
};
2023-06-12 15:23:09 +02:00
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/ED86-8844";
2021-11-23 20:57:23 +01:00
fsType = "vfat";
};
2022-01-10 21:08:07 +01:00
2022-09-06 23:03:29 +02:00
networking.hostName = hostname;
2022-01-10 21:08:07 +01:00
2024-02-02 13:45:05 +01:00
swapDevices = [ { device = "/dev/disk/by-uuid/17a8bd01-095b-41ae-8b90-ecc70ab7b7eb"; } ];
2022-01-10 21:08:07 +01:00
2023-05-27 18:16:19 +02:00
hardware = {
2023-05-29 09:17:12 +02:00
az-bluetooth.enable = true;
az-dvd.enable = true;
2023-05-27 18:16:19 +02:00
};
2023-05-31 21:33:31 +02:00
profiles.az-desktop.enable = true;
2023-05-27 17:38:54 +02:00
programs = {
2023-05-29 09:17:12 +02:00
az-lockscreen.enable = true;
az-makemkv.enable = true;
2023-06-12 15:23:09 +02:00
az-restic-management.enable = true;
2023-05-27 17:38:54 +02:00
};
2023-05-29 17:10:15 +02:00
services = {
az-docker.enable = true;
2023-05-31 22:49:29 +02:00
az-restic-client-desktop.enable = true;
2023-05-31 22:13:56 +02:00
az-tlp.enable = true;
2023-05-29 17:10:15 +02:00
az-x86.enable = true;
2024-01-09 18:56:16 +01:00
fstrim.enable = true; # Enable TRIM for SD cards
2023-05-29 17:10:15 +02:00
};
2022-01-10 21:08:07 +01:00
virtualisation.virtualbox.host.enable = true;
2021-11-16 20:57:04 +01:00
}