Some checks failed
Check / eval-and-lint (push) Has been cancelled
Same footgun as the home.packages fix, found by sweeping the tree for
`mkDefault` on list options that other modules contribute to at normal
priority (so filterOverrides discards the mkDefault def entirely):
* themes/engine/sddm.nix — environment.systemPackages = mkDefault
[ nomarchy-sddm-theme ] was dropped, so the SDDM greeter theme package
was never installed (unthemed login).
* themes/engine/plymouth.nix — boot.kernelParams = mkDefault [ quiet
splash loglevel=3 … ] was dropped, so boots weren't quiet/clean.
* features/desktop/waybar/default.nix — home.packages = mkDefault
[ font-awesome ] was dropped, so waybar's icon font was missing.
Verified via eval: nomarchy-sddm-theme now in systemPackages, "quiet" in
kernelParams, font-awesome in home.packages. Left the genuinely-safe
single-definition mkDefaults alone (plymouth.themePackages,
resolved.fallbackDns, hyprsunset.extraArgs) and the hybridGPU videoDrivers
mkDefault (it outranks nixpkgs' mkOptionDefault on real hardware).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
51 lines
1.6 KiB
Nix
51 lines
1.6 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
nomarchy-sddm-theme = pkgs.stdenv.mkDerivation {
|
|
pname = "nomarchy-sddm-theme";
|
|
version = "1.0";
|
|
src = ./sddm/nomarchy;
|
|
nativeBuildInputs = [ pkgs.libsForQt5.qt5.wrapQtAppsHook ];
|
|
installPhase = ''
|
|
mkdir -p $out/share/sddm/themes/nomarchy
|
|
cp -r * $out/share/sddm/themes/nomarchy/
|
|
'';
|
|
propagatedBuildInputs = with pkgs.libsForQt5.qt5; [
|
|
qtgraphicaleffects
|
|
qtquickcontrols2
|
|
qtsvg
|
|
];
|
|
};
|
|
in
|
|
{
|
|
services.xserver.enable = lib.mkDefault true;
|
|
services.displayManager.sddm = {
|
|
enable = lib.mkDefault true;
|
|
wayland.enable = lib.mkDefault true;
|
|
theme = lib.mkDefault "nomarchy";
|
|
};
|
|
|
|
services.displayManager.defaultSession = lib.mkDefault "hyprland-uwsm";
|
|
|
|
# autoLogin defaults off so hand-migrated configs (no installer-written
|
|
# username) don't try to log in as a nonexistent "nomarchy" user. The
|
|
# installer-generated system.nix sets both `enable = true;` and
|
|
# `user = "$USERNAME";` at normal priority, overriding these defaults.
|
|
services.displayManager.autoLogin = {
|
|
enable = lib.mkDefault false;
|
|
user = lib.mkDefault "nomarchy";
|
|
};
|
|
|
|
# Not mkDefault: systemPackages is a list every module contributes to at
|
|
# normal priority, so a mkDefault def is dropped entirely — leaving the
|
|
# SDDM theme package uninstalled and the greeter unthemed.
|
|
environment.systemPackages = [ nomarchy-sddm-theme ];
|
|
|
|
# Enable Hyprland system-level dependencies
|
|
programs.hyprland = {
|
|
enable = lib.mkDefault true;
|
|
withUWSM = lib.mkDefault true;
|
|
};
|
|
programs.uwsm.enable = lib.mkDefault true;
|
|
}
|