93 lines
2.0 KiB
Nix
93 lines
2.0 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
pkgs-mesa-overlay,
|
|
...
|
|
}: 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"
|
|
./modules/openssh.nix
|
|
./modules/sudo.nix
|
|
./modules/remote-builder.nix
|
|
];
|
|
|
|
nixpkgs.overlays = [
|
|
inputs.nix-cachyos-kernel.overlays.pinned
|
|
(final: prev: {
|
|
mesa = pkgs-mesa-overlay.mesa;
|
|
})
|
|
];
|
|
|
|
boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-bore-zen4;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
efibootmgr
|
|
iptables
|
|
ipset
|
|
appimage-run
|
|
fluxer
|
|
fluxer-canary
|
|
proton-vpn
|
|
gamescope
|
|
];
|
|
|
|
hardware.steam-hardware.enable = true;
|
|
|
|
environment.localBinInPath = true;
|
|
|
|
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 = "minegrub-world-selection";
|
|
version = "v1.0.0";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "Lxtharia";
|
|
repo = "minegrub-world-sel-theme";
|
|
rev = "main";
|
|
hash = "sha256-gBlP4aQQ0f3L6S1gWbidbflnp0p5hsJ8qmbyArZ8LO4=";
|
|
};
|
|
installPhase = "cp -r minegrub-world-selection $out";
|
|
};
|
|
};
|
|
|
|
services.flatpak.enable = true;
|
|
|
|
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;
|
|
};
|
|
|
|
networking.interfaces."enp10s0".wakeOnLan = {
|
|
enable = true;
|
|
policy = [ "magic" ];
|
|
};
|
|
}
|