mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-16 11:12:00 -05:00
style:waybar Version 401 -> 402: OVMF: 202508.01 → 202511 dbeaver-bin: 25.2.5 → 25.3.0, -295.6 KiB initrd-linux: 6.17.9 → 6.18.0 linux: 6.17.9 → 6.18.0, -6579.1 KiB lowdown: 2.0.2 → 2.0.4, +13.1 KiB nixos-init: 0.1.0 → ∅, -454.1 KiB nixos-system-dos: 26.05.20251130.2d293cb → 26.05.20251202.418468a ruff: 0.14.6 → 0.14.7, +371.3 KiB source: +202.2 KiB unit-initrd-find-nixos-closure.service: ε → ∅ unit-script-initrd-find-nixos-closure: ε → ∅ unit-script-initrd-nixos-activation: ε → ∅ v4l2loopback: 0.15.1-6.17.9 → ∅, -313.6 KiB vimplugin-luajit2.1-fzf-lua: 0.0.2311-1-unstable-0.0.2311-1 → 0.0.2314-1-unstable-0.0.2314-1 x86_energy_perf_policy: 6.12.59 → 6.12.60
156 lines
3.8 KiB
Nix
156 lines
3.8 KiB
Nix
{
|
|
config,
|
|
hostname,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit
|
|
(import ../../hosts/${hostname}/env.nix)
|
|
BootLoader
|
|
KernelPackages
|
|
KeyboardLayout
|
|
Locale
|
|
StateVersion
|
|
TimeZone
|
|
;
|
|
in
|
|
with lib; {
|
|
boot = {
|
|
blacklistedKernelModules = [
|
|
"iTCO_wdt"
|
|
"iTCO_vendor_support"
|
|
"intel_pmc_bxt"
|
|
"mei"
|
|
"mei_hdcp"
|
|
"mei_me"
|
|
"mei_pxp"
|
|
"pstore"
|
|
"sp5100_tco"
|
|
"wdat_wdt"
|
|
];
|
|
consoleLogLevel = 2; # Only errors and warnings are displayed
|
|
# extraModulePackages = [
|
|
# config.boot.kernelPackages.v4l2loopback # v4l2loopback is for OBS Virtual Cam Support
|
|
# ];
|
|
initrd = {
|
|
compressor = "zstd";
|
|
compressorArgs = ["-T0" "-19" "--long"];
|
|
systemd.enable = true;
|
|
verbose = false;
|
|
};
|
|
kernel.sysctl = {
|
|
"kernel.core_pattern" = "|/bin/false"; # Disable automatic core dumps
|
|
"vm.max_map_count" = 2147483642; # Needed For Some Steam Games
|
|
};
|
|
# kernelModules = ["v4l2loopback"]; # v4l2loopback is for OBS Virtual Cam Support
|
|
kernelPackages = pkgs.${KernelPackages};
|
|
kernelParams = ["audit=0" "console=tty1" "erst_disable" "nmi_watchdog=0" "noatime" "nowatchdog"];
|
|
loader = {
|
|
grub = mkIf (strings.hasInfix "grub" BootLoader) {
|
|
configurationLimit = 50;
|
|
device = "nodev";
|
|
efiInstallAsRemovable = true;
|
|
efiSupport = true;
|
|
enable = true;
|
|
mirroredBoots = mkIf (BootLoader == "grub-mirror") [
|
|
{
|
|
devices = ["nodev"];
|
|
path = "/boot";
|
|
}
|
|
{
|
|
devices = ["nodev"];
|
|
path = "/boot-mirror";
|
|
}
|
|
];
|
|
theme = mkForce "${pkgs.minimal-grub-theme}";
|
|
};
|
|
systemd-boot = mkIf (BootLoader == "systemd-boot") {
|
|
configurationLimit = 50;
|
|
editor = false;
|
|
enable = true;
|
|
};
|
|
timeout = 3;
|
|
};
|
|
tmp.cleanOnBoot = true;
|
|
};
|
|
|
|
console = {
|
|
earlySetup = true;
|
|
keyMap = KeyboardLayout;
|
|
};
|
|
|
|
hardware.graphics = {
|
|
enable = true;
|
|
enable32Bit = true;
|
|
};
|
|
|
|
i18n = {
|
|
defaultLocale = Locale;
|
|
extraLocaleSettings = {
|
|
LC_ADDRESS = Locale;
|
|
LC_IDENTIFICATION = Locale;
|
|
LC_MEASUREMENT = Locale;
|
|
LC_MONETARY = Locale;
|
|
LC_NAME = Locale;
|
|
LC_NUMERIC = Locale;
|
|
LC_PAPER = Locale;
|
|
LC_TELEPHONE = Locale;
|
|
LC_TIME = Locale;
|
|
};
|
|
};
|
|
|
|
networking = {
|
|
dhcpcd.extraConfig = "nohook resolv.conf";
|
|
firewall.enable = false;
|
|
hostName = hostname;
|
|
nameservers = ["127.0.0.1" "::1"];
|
|
networkmanager = {
|
|
dns = "none";
|
|
enable = true;
|
|
};
|
|
resolvconf.enable = mkForce false;
|
|
};
|
|
|
|
security = {
|
|
rtkit.enable = true;
|
|
sudo = {
|
|
enable = true;
|
|
wheelNeedsPassword = true;
|
|
};
|
|
pam.services = {
|
|
hyprlock = {};
|
|
login.kwallet.enable = mkForce false;
|
|
};
|
|
polkit = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
polkit.addRule(function(action, subject) {
|
|
if (
|
|
subject.isInGroup("users")
|
|
&& (
|
|
action.id == "org.freedesktop.login1.reboot" ||
|
|
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
|
|
action.id == "org.freedesktop.login1.power-off" ||
|
|
action.id == "org.freedesktop.login1.power-off-multiple-sessions"
|
|
)
|
|
)
|
|
{
|
|
return polkit.Result.YES;
|
|
}
|
|
})
|
|
'';
|
|
};
|
|
};
|
|
|
|
system = {
|
|
rebuild.enableNg = true;
|
|
stateVersion = StateVersion;
|
|
};
|
|
|
|
time = {
|
|
hardwareClockInLocalTime = false;
|
|
timeZone = TimeZone;
|
|
};
|
|
}
|