mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
68 lines
1.4 KiB
Nix
68 lines
1.4 KiB
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
|
|
../../config
|
|
|
|
../../config/hardware/bluetooth.nix
|
|
../../config/hardware/intel.nix
|
|
../../config/hardware/nvidia.nix
|
|
../../config/hardware/physical.nix
|
|
|
|
../../config/dev
|
|
../../config/graphical
|
|
../../config/optional/laptop.nix
|
|
../../config/optional/sound.nix
|
|
../../config/optional/zfs.nix
|
|
|
|
../../users/myuser
|
|
|
|
./fs.nix
|
|
./net.nix
|
|
];
|
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
boot.mode = "efi";
|
|
boot.initrd.availableKernelModules = [
|
|
"xhci_pci"
|
|
"ahci"
|
|
"nvme"
|
|
"usbhid"
|
|
"usb_storage"
|
|
"sd_mod"
|
|
];
|
|
|
|
console = {
|
|
font = "ter-v28n";
|
|
packages = [ pkgs.terminus_font ];
|
|
};
|
|
|
|
# FIXME: fuck optional modules and make this more adjustable via settings
|
|
graphical.gaming.enable = true;
|
|
|
|
hardware.nvidia.prime = {
|
|
offload.enable = true;
|
|
offload.enableOffloadCmd = true;
|
|
intelBusId = "PCI:0:2:0";
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
};
|
|
|
|
services.mullvad-vpn.enable = true;
|
|
environment.persistence."/persist".directories = [
|
|
{
|
|
directory = "/etc/mullvad-vpn";
|
|
user = "root";
|
|
group = "root";
|
|
mode = "0700";
|
|
}
|
|
];
|
|
|
|
topology.self.icon = "devices.laptop";
|
|
}
|