nixos/spec/shinkirou/default.nix

69 lines
1.8 KiB
Nix

{ lib
, pkgs
, config
, ... }: {
global = {
id = "23c46cfc573f4f889af9ba5d4678c2ab";
fs.esp.uuid = "6695-0740";
fs.type = "zfs";
boot.lanzaboote = true;
gpu.enable = true;
gpu.type = "prime";
android.enable = true;
asusd.enable = true;
};
home = {
plasma.specialise = true;
gyroflow.enable = true;
vscode.enable = true;
libreoffice.enable = true;
minecraft.enable = true;
steam.enable = true;
};
users.homeModules = [ {
wayland.windowManager.sway.config = {
input."1267:16857:ELAN9009:00_04F3:41D9".map_to_output = "DP-3";
output = {
eDP-1.scale = "1.5";
eDP-1.pos = "0 0";
DP-3.scale = "2.25";
DP-3.pos = "0 1066";
};
};
} ];
home.plasma.extraConfig = {
configFile = {
kcminputrc."Libinput/2362/597/UNIW0001:00 093A:0255 Touchpad".NaturalScroll = true;
};
};
powerManagement.enable = true;
powerManagement.cpuFreqGovernor = "performance";
boot.kernelParams = [ "zfs.zfs_arc_max=34359738368" ];
console.packages = [ pkgs.terminus_font ];
console.font = "ter-v32n";
console.earlySetup = true;
hardware.nvidia.prime = {
amdgpuBusId = "PCI:9:0:0";
nvidiaBusId = "PCI:1:0:0";
};
services.greetd.settings.default_session.command = let
cfg = config.programs.regreet;
in "${pkgs.dbus}/bin/dbus-run-session ${lib.getExe pkgs.cage} ${lib.escapeShellArgs cfg.cageArgs} -- ${pkgs.writeShellScript "cageResolution" ''
${lib.getExe pkgs.wlr-randr} --output DP-3 --scale 2.25
${lib.getExe cfg.package}
''}";
hardware.enableRedistributableFirmware = true;
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
hardware.cpu.amd.updateMicrocode = true;
}