System/desktop.nix

60 lines
1.4 KiB
Nix
Raw Normal View History

2022-01-26 16:53:39 -05:00
{ pkgs, lib, unstable, ... }: {
2021-12-23 00:45:21 -05:00
## Boot, drivers, and host name
# Use grub
boot.loader = {
grub = {
enable = true;
version = 2;
efiSupport = true;
# Go efi only
device = "nodev";
# Use os-prober
useOSProber = true;
};
efi = {
efiSysMountPoint = "/boot/";
canTouchEfiVariables = true;
};
};
# Enable AMD gpu drivers early
boot.initrd.kernelModules = [ "amdgpu" ];
2022-01-10 02:27:04 -05:00
# Use the zen kernel with muqss turned on
boot.kernelPackages =
let
linuxZenWMuQSS = pkgs.linuxPackagesFor (pkgs.linuxPackages_zen.kernel.override {
structuredExtraConfig = with lib.kernel; {
SCHED_MUQSS = yes;
};
ignoreConfigErrors = true;
}
);
in
linuxZenWMuQSS;
2021-12-23 00:45:21 -05:00
# Define the hostname, enable dhcp
networking = {
hostName = "levitation";
domain = "mccarty.io";
useDHCP = false;
interfaces.enp5s0.useDHCP = true;
};
## System specific configuration
programs = {
steam.enable = true;
adb.enable = true;
};
## Left over uncategorized packages
environment.systemPackages = with pkgs; [
2022-01-26 17:10:25 -05:00
unstable.firefox-beta-bin
2022-03-28 15:14:56 -04:00
wally-cli
2021-12-23 00:45:21 -05:00
];
2022-01-31 23:09:45 -05:00
# Enable firewall and pass some ports
networking.firewall = {
enable = true;
allowedTCPPorts = [ 61377 ];
allowedUDPPorts = [ 61377 ];
};
2022-03-28 15:14:56 -04:00
# Enable ergodox udev rules
hardware.keyboard.zsa.enable = true;
2021-12-23 00:45:21 -05:00
}