nix-config/hosts/desktopnix/default.nix
2024-04-06 13:06:32 +02:00

62 lines
1.6 KiB
Nix

{
inputs,
lib,
...
}: {
imports = [
inputs.nixos-hardware.nixosModules.common-gpu-nvidia-nonprime
inputs.nixos-hardware.nixosModules.common-cpu-intel
inputs.nixos-hardware.nixosModules.common-pc
inputs.nixos-hardware.nixosModules.common-pc
inputs.nixos-hardware.nixosModules.common-pc-hdd
inputs.nixos-hardware.nixosModules.common-pc-ssd
../../modules/config
../../modules/dev
../../modules/graphical
../../modules/optional/xserver.nix
../../modules/optional/secureboot.nix
../../modules/hardware/nintendo.nix
../../modules/hardware/nvidia.nix
../../modules/hardware/physical.nix
../../modules/hardware/pipewire.nix
../../modules/hardware/yubikey.nix
../../modules/hardware/bluetooth.nix
../../modules/hardware/zfs.nix
../../modules/optional/streamdeck.nix
../../modules/optional/steam.nix
../../modules/optional/printing.nix
./net.nix
./fs.nix
../../users/patrick
];
stylix.fonts.sizes = {
terminal = 9;
applications = 10;
desktop = 10;
};
services.xserver.xkb = {
layout = "de";
variant = "bone";
};
virtualisation.podman = {
enable = true;
dockerCompat = true;
};
system.activationScripts.decryptKey.text = ''
ln -f -s ${../../keys/PatC.key} /run/decrypt.key.pub
'';
boot.binfmt.emulatedSystems = ["aarch64-linux" "riscv64-linux"];
nix.settings.system-features = ["kvm" "nixos-test"];
services.netbird.enable = true;
# Do not cleanup nix store to prevent having to rebuild packages onca a month
nix.gc.automatic = lib.mkForce false;
}