mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
82 lines
2 KiB
Nix
82 lines
2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
modulesPath,
|
|
...
|
|
}: {
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
../profiles/hyprland.nix
|
|
../profiles/default.nix
|
|
../users/willem/home/linux.nix
|
|
../modules/zerotier.nix
|
|
../modules/nordvpn.nix
|
|
];
|
|
|
|
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
|
boot.initrd.kernelModules = [];
|
|
boot.kernelModules = ["amdgpu"];
|
|
boot.extraModulePackages = [];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.supportedFilesystems = ["zfs"];
|
|
boot.zfs.forceImportRoot = false;
|
|
networking.hostId = "06818aaa";
|
|
|
|
hardware.opengl.driSupport = true;
|
|
hardware.opengl.enable = true;
|
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
amdvlk
|
|
];
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-uuid/9b616ca8-63fe-4d81-a13e-25c9a95a1a55";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-uuid/4FEE-904E";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
fileSystems."/zpool" = {
|
|
device = "zpool";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
environment.systemPackages = [pkgs.zfs];
|
|
|
|
services.jellyfin.enable = true;
|
|
services.jellyfin.openFirewall = true;
|
|
|
|
services.transmission = {
|
|
enable = true;
|
|
|
|
settings = rec {
|
|
download-dir = "/zpool/torrents/complete";
|
|
incomplete-dir = "/zpool/torrents/incomplete";
|
|
incomplete-dir-enabled = true;
|
|
rpc-enabled = true;
|
|
rpc-bind-address = "0.0.0.0";
|
|
rpc-whitelist-enabled = false;
|
|
rpc-host-whitelist-enabled = false;
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [9091];
|
|
networking.firewall.allowedUDPPorts = [9091];
|
|
|
|
swapDevices = [];
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
networking.hostName = "nixbox";
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|