nix-config/hosts/desktopnix/default.nix

74 lines
1.7 KiB
Nix
Raw Normal View History

{
inputs,
lib,
...
}:
2024-03-13 00:06:30 +01:00
{
2023-08-30 14:25:52 +02:00
imports = [
inputs.nixos-hardware.nixosModules.common-gpu-nvidia-nonprime
2024-05-03 21:43:11 +02:00
inputs.nixos-hardware.nixosModules.common-cpu-intel-cpu-only
inputs.nixos-hardware.nixosModules.common-pc
2023-08-30 14:25:52 +02:00
inputs.nixos-hardware.nixosModules.common-pc
inputs.nixos-hardware.nixosModules.common-pc-ssd
2024-04-11 23:11:53 +02:00
../../config/basic
2024-10-30 19:24:16 +01:00
../../config/support/bluetooth.nix
../../config/support/nintendo.nix
../../config/support/nvidia.nix
../../config/support/physical.nix
../../config/support/pipewire.nix
../../config/support/printing.nix
../../config/support/secureboot.nix
../../config/support/vr.nix
../../config/support/yubikey.nix
../../config/support/zfs.nix
2024-04-11 23:11:53 +02:00
2023-08-30 14:25:52 +02:00
./net.nix
./fs.nix
2023-08-30 16:38:30 +02:00
../../users/patrick
2023-08-30 14:25:52 +02:00
];
2023-09-22 20:57:08 +02:00
stylix.fonts.sizes = {
2023-09-24 22:21:52 +02:00
terminal = 9;
applications = 10;
2023-09-25 00:29:39 +02:00
desktop = 10;
2023-09-22 20:57:08 +02:00
};
2024-03-02 16:09:11 +01:00
services.xserver.xkb = {
layout = "de";
};
2024-11-26 18:14:27 +01:00
# services.logkeys = {
# enable = true;
# device = "/dev/input/event15";
# };
2024-07-26 22:12:48 +02:00
boot.binfmt.emulatedSystems = [
"aarch64-linux"
"riscv64-linux"
];
nix.settings.system-features = [
"kvm"
"nixos-test"
];
boot.kernelParams = lib.mkForce [
"rd.luks.options=timeout=0"
"rootflags=x-systemd.device-timeout=0"
"nohibernate"
"root=fstab"
"loglevel=4"
"nvidia-drm.modeset=1"
"nvidia.NVreg_PreserveVideoMemoryAllocations=1"
];
2024-08-09 16:44:39 +02:00
zramSwap.enable = true;
2024-03-21 20:39:59 +01:00
2024-04-05 21:54:41 +02:00
# Do not cleanup nix store to prevent having to rebuild packages onca a month
2024-04-01 15:01:59 +02:00
nix.gc.automatic = lib.mkForce false;
2024-06-09 20:59:23 +02:00
nixpkgs.hostPlatform = "x86_64-linux";
2024-06-13 22:42:01 +02:00
2024-09-01 15:54:26 +02:00
#nixpkgs.config.cudaSupport = true;
2024-08-19 15:45:08 +02:00
programs.streamcontroller.enable = true;
hardware.opentabletdriver.enable = true;
2024-12-12 20:12:36 +01:00
topology.self.icon = "devices.desktop";
2023-08-30 14:25:52 +02:00
}