2022-11-04 19:35:57 +01:00
|
|
|
{ custom, hostname }: { ... }:
|
2021-11-16 20:57:04 +01:00
|
|
|
{
|
2022-02-28 22:36:07 +01:00
|
|
|
imports = [
|
2022-11-04 19:35:57 +01:00
|
|
|
custom.inputs.nixos-hardware.nixosModules.common-gpu-intel
|
|
|
|
custom.inputs.nixos-hardware.nixosModules.common-pc-laptop
|
|
|
|
custom.inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
|
|
"${custom.inputs.self}/hardware/bluetooth"
|
|
|
|
(import "${custom.inputs.self}/modules/desktop" { inherit custom; })
|
|
|
|
(import "${custom.inputs.self}/modules/docker" { inherit custom; })
|
|
|
|
(import "${custom.inputs.self}/modules/droidcam" { inherit custom; })
|
|
|
|
(import "${custom.inputs.self}/modules/espanso" { inherit custom; })
|
|
|
|
"${custom.inputs.self}/modules/lockscreen"
|
|
|
|
(import "${custom.inputs.self}/modules/restic" { inherit custom; })
|
|
|
|
"${custom.inputs.self}/modules/tlp"
|
|
|
|
"${custom.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"
|
|
|
|
];
|
2021-11-22 12:04:29 +01:00
|
|
|
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="
|
|
|
|
];
|
2021-11-22 12:04:29 +01:00
|
|
|
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
|
|
|
|