snowflake/hosts/tsuki/hardware.nix
notohh 193f2480d7
Some checks failed
ci/woodpecker/cron/flake-lock-update Pipeline failed
flake.nix: update
license: update

pkgs: remove scls

nix: update inputs and insecure pkgs

tsuki: init gaming file

blocky: update blocklist

pgres: add dbs

home: update themes

programs: init opencomposite

media: remove spotify-player

helix: update theme and scls

tsuki: remove stylix

overlays: set chatterino tag to null
2025-01-12 20:52:09 -05:00

74 lines
1.6 KiB
Nix
Executable file

{
config,
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
kernelModules = ["kvm-amd"];
kernelParams = [
"preempt=full"
"threadirqs"
"mitigations=off"
];
extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback.out
];
loader = {
systemd-boot = {
enable = true;
configurationLimit = 10;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
};
initrd = {
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod"];
kernelModules = [];
};
};
services.scx = {
enable = true;
scheduler = "scx_lavd";
};
hardware.wooting.enable = true;
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/a423d32f-ac5d-4ea2-82fb-f94b05afce29";
fsType = "ext4";
};
"/boot/efi" = {
device = "/dev/disk/by-uuid/FEAF-138A";
fsType = "vfat";
};
"/nas/restic" = {
device = "192.168.1.199:/mnt/Sutoreji/nix-restic-data/tsuki";
fsType = "nfs";
};
"/nas/osu-backups" = {
device = "192.168.1.199:/mnt/Sutoreji/osu-backups";
fsType = "nfs";
};
};
zramSwap = {
enable = true;
swapDevices = 1;
algorithm = "zstd";
};
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}