⚙ darkone.system.core
The core DNF module.
Sets up:
- systemd-boot and the LTS kernel (latest mainline via
enableLatestKernel); - JetBrains Mono Nerd Font, with
kmsconfor the TTY; - nightly store optimisation, weekly GC with 30 d retention (keep-last-N via
gcKeepGenerationson disk-constrained hosts); - key-only SSH (hostname, firewall and SSH exposure:
network.nix); - Ghostty’s
xterm-ghosttyterminfo, so every host accepts the terminal; - the suspend policy (
disableSuspendfor servers); - polkit rules letting
wheelhalt/reboot; - a shared
common-filesgroup/user for cross-service media folders.
Options
Section titled “Options”- enable
boolDarkone framework core system (activated by default) - enableSystemdBoot
boolEnable the default boot loader - enableLatestKernel
boolUse the latest mainline kernel (linuxPackages_latest) instead of the LTS one - enableFstrim
boolSSD optimisation with fstrim - enableFirewall
boolEnable firewall (default true) - enableSops
boolEnable sops dnf module (default true) - enableFlatpak
boolEnable flatpak DNF configuration (only for graphic environments) - enableKmscon
boolEnable nerd font for TTY - gcKeepGenerations
intWhen > 0, trim the system profile to the last N generations before each garbage collection, and collect daily without age-based retention. For hosts with a tight root partition (gateways). - enableBoost
boolEnable overclocking, corectl - enableAutoSuspend
boolEnable automatic suspend (for laptops, ignored if disableSuspend is true) - disableSuspend
boolFull suspend disable (for servers) - enableCommonFilesUser
boolEnable the common-files user used by several services
darkone.system.core = { enable = true; enableSystemdBoot = true; enableLatestKernel = false; enableFstrim = true; enableFirewall = true; enableSops = true; enableFlatpak = true; enableKmscon = true; gcKeepGenerations = 5; enableBoost = false; enableAutoSuspend = false; disableSuspend = false; enableCommonFilesUser = false;};Source: modules/system/core.nix 🡕