nixos/systems/staubfinger/default.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

2022-09-06 23:03:29 +02:00
{ hostname, inputs, ... }:
2021-11-16 20:57:04 +01:00
{
2022-02-28 22:36:07 +01:00
imports = [
inputs.nixos-hardware.nixosModules.common-gpu-intel
2022-02-28 22:36:07 +01:00
inputs.nixos-hardware.nixosModules.common-pc-laptop
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
2022-03-01 16:56:23 +01:00
"${inputs.self}/hardware/bluetooth"
"${inputs.self}/modules/desktop"
"${inputs.self}/modules/docker"
"${inputs.self}/modules/droidcam"
"${inputs.self}/modules/espanso"
"${inputs.self}/modules/lockscreen"
"${inputs.self}/modules/restic"
2022-05-27 13:15:15 +02:00
"${inputs.self}/modules/tlp"
2022-06-20 21:06:55 +02:00
"${inputs.self}/modules/tmux"
2022-02-28 22:36:07 +01:00
];
2021-11-23 20:57:23 +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 = [ ];
2021-11-23 22:34:10 +01:00
boot.kernelParams = [
"acpi_osi="
];
boot.initrd.luks.devices."cryptlvm".device = "/dev/sda2";
2022-01-03 20:11:17 +01:00
2021-11-23 20:57:23 +01:00
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
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
2021-11-23 20:57:23 +01:00
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
2022-01-10 21:08:07 +01:00
virtualisation.virtualbox.host.enable = true;
2021-11-16 20:57:04 +01:00
}
2022-01-10 21:08:07 +01:00