shifting towards manual symlinks for more complex setup than laptop, allows for GUI settings changes to actually apply, and is much easier than nix-ifying every config
67 lines
1.6 KiB
Nix
67 lines
1.6 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}: let
|
|
modules-dir = ../../modules;
|
|
in {
|
|
imports = [
|
|
inputs.nixos-millennium.nixosModules.default
|
|
../../global-default.nix
|
|
./hardware-configuration.nix
|
|
"${modules-dir}/display-managers/sddm.nix"
|
|
"${modules-dir}/desktop-environments/plasma6.nix"
|
|
"${modules-dir}/zsh.nix"
|
|
];
|
|
|
|
programs.gamemode.enable = true;
|
|
programs.steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
extraCompatPackages = [ pkgs.proton-ge-bin ];
|
|
extraPackages = [ pkgs.hidapi ];
|
|
};
|
|
|
|
programs.dconf.enable = true; # apparently necessary for easyeffects to work in home.nix
|
|
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
device = "nodev"; # "nodev" is used for UEFI
|
|
efiSupport = true;
|
|
useOSProber = true;
|
|
theme = pkgs.stdenv.mkDerivation {
|
|
pname = "liquidglass-grub";
|
|
version = "1.0";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "Purp1eDuck2008";
|
|
repo = "Liquid-GRUB";
|
|
rev = "1c336ff58c952e614713471b0aeceeb5d6f29c12";
|
|
hash = "sha256-+YYZK6VTA6fi67k+e2F2wVzkVMM7wvg/P7KzxL6R258=";
|
|
};
|
|
installPhase = "cp -r LiquidGlass $out";
|
|
};
|
|
};
|
|
|
|
hardware.i2c.enable = true;
|
|
|
|
users.users."grey".extraGroups = [ config.hardware.i2c.group ];
|
|
|
|
services.lact.enable = true;
|
|
hardware.amdgpu.overdrive.enable = true;
|
|
|
|
zramSwap = {
|
|
enable = true;
|
|
algorithm = "zstd";
|
|
memoryMax = 17179869184;
|
|
};
|
|
|
|
boot.kernel.sysctl = {
|
|
"vm.swappiness" = 180;
|
|
"vm.watermark_boost_factor" = 0;
|
|
"vm.watermark_scale_factor" = 125;
|
|
"vm.page-cluster" = 0;
|
|
};
|
|
}
|