flake: update Stylix to master and scope import to desktop hosts

Switch Stylix from release-25.11 to master, which fixes hyprpaper's
wallpaper config generation for 0.8.4 (structured attributes instead
of raw string concatenation).

Move the Stylix module import from common.nix to flake.nix extraModules
so the Mediaserver (on nixpkgs-stable) doesn't pull in options that
only exist in unstable nixpkgs (services.displayManager.generic).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-18 10:44:16 +01:00
parent d89706736c
commit cea4d37bfb
4 changed files with 41 additions and 64 deletions

View file

@ -1,8 +1,10 @@
{ config, pkgs, lib, inputs, ... }:
{
imports = [ inputs.stylix.nixosModules.stylix ];
# Only imported for desktop hosts (see flake.nix extraModules).
# The Stylix NixOS module is added alongside this file so the
# Mediaserver doesn't pull in options that require unstable nixpkgs.
config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) {
config = {
stylix = {
enable = true;
# builtins.path hashes only the image content, not the whole flake tree,