mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-18 12:02:00 -05:00
remove:rebuild.enableNg update:StateVersion_26.05 Version 434 -> 435: bind: 9.20.15 → 9.20.16 brave: 1.85.111 → 1.85.116, -193.0 KiB breeze-icons: 6.20.0 → 6.21.0, +55.5 KiB cinnamon-desktop: 6.4.2 → 6.6.0, -10.2 KiB cinnamon-translations: 6.4.2 → 6.6.0, +330.4 KiB extra-cmake-modules: 6.20.0 → 6.21.0 firefox: +43.7 KiB firefox-unwrapped: +164.1 KiB gopls: 0.20.0 → 0.21.0, +2270.5 KiB hyprutils: 0.10.4 → 0.11.0 karchive: 6.20.0 → 6.21.0 kauth: 6.20.0 → 6.21.0 kbookmarks: 6.20.0 → 6.21.0 kcmutils: 6.20.0 → 6.21.0 kcodecs: 6.20.0 → 6.21.0 kcolorscheme: 6.20.0 → 6.21.0 kcompletion: 6.20.0 → 6.21.0 kconfig: 6.20.0 → 6.21.0 kconfigwidgets: 6.20.0 → 6.21.0 kcoreaddons: 6.20.0 → 6.21.0, +20.9 KiB kcrash: 6.20.0 → 6.21.0 kdbusaddons: 6.20.0 → 6.21.0 kdeclarative: 6.20.0 → 6.21.0 kdoctools: 6.20.0 → 6.21.0 kglobalaccel: 6.20.0 → 6.21.0 kguiaddons: 6.20.0 → 6.21.0 ki18n: 6.20.0 → 6.21.0, +143.2 KiB kiconthemes: 6.20.0 → 6.21.0 kimageformats: 6.20.0 → 6.21.0 kio: 6.20.0 → 6.21.0, +112.8 KiB kirigami: 6.20.0 → 6.21.0, -181.2 KiB kitemviews: 6.20.0 → 6.21.0 kjobwidgets: 6.20.0 → 6.21.0 knotifications: 6.20.0 → 6.21.0 kpackage: 6.20.0 → 6.21.0 kparts: 6.20.0 → 6.21.0 kservice: 6.20.0 → 6.21.0 ksvg: 6.20.0 → 6.21.0 ktextwidgets: 6.20.0 → 6.21.0 kwallet: 6.20.0 → 6.21.0 kwidgetsaddons: 6.20.0 → 6.21.0 kwindowsystem: 6.20.0 → 6.21.0 kxmlgui: 6.20.0 → 6.21.0, +16.5 KiB nemo: 6.4.5 → 6.6.1, +36.3 KiB nixos-system-dos: 26.05.20251211.2fbfb1d → 26.05.20251215.1306659 python3.13-python-xapp: 3.0.0 → 3.0.1 qqc2-desktop-style: 6.20.0 → 6.21.0, -72.9 KiB ruff: 0.14.8 → 0.14.9, +83.0 KiB sing-box: 1.12.12 → 1.12.13 solid: 6.20.0 → 6.21.0 sonnet: 6.20.0 → 6.21.0, +48.0 KiB source: +251.4 KiB vimplugin-mini.nvim: 2025-12-07 → 2025-12-11 vimplugin-neo-tree.nvim: 2025-12-07 → 2025-12-08 vimplugin-neoconf.nvim: 2025-12-07 → 2025-12-12 vimplugin-nvim-lint: 2025-12-06 → 2025-12-11 vimplugin-nvim-lspconfig: 2025-12-07 → 2025-12-12 x86_energy_perf_policy: 6.12.61 → 6.12.62 xapp-symbolic-icons: ∅ → 1.0.6, +1033.0 KiB zed-editor: 0.216.0 → 0.216.1, +11.9 KiB
155 lines
3.8 KiB
Nix
155 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 = {
|
|
stateVersion = StateVersion;
|
|
};
|
|
|
|
time = {
|
|
hardwareClockInLocalTime = false;
|
|
timeZone = TimeZone;
|
|
};
|
|
}
|