stylix icon indicating copy to clipboard operation
stylix copied to clipboard

Librewolf: Randomly stopped applying theming.

Open quotejericho opened this issue 1 year ago • 11 comments

I assert that this issue is relevant for Stylix

  • [x] I assert that this is a bug and not a user error or support request.
  • [x] I assert that this is not a duplicate of an existing issue.

Description

One day after updating, Stylix randomly stopped applying theming to Librewolf. My best guess is that it no longer can see it for some reason, as even when I explicitly enabled the Librewolf target it still doesn't do anything.

I believe this is a bug as I hadn't changed a thing but on the chance that it really is user error, here is all the relevent NixOS w/ Flakes + Home-Manager information.

Flake.nix

  inputs = {
    nixpkgs.url = "github:Nixos/nixpkgs/nixos-25.05";
    nixpkgs-unstable.url = "github:Nixos/nixpkgs/nixos-unstable";
    
    ... #Other inputs

    stylix = {
      url = "github:nix-community/stylix/release-25.05";   
      inputs.nixpkgs.follows = "nixpkgs";
    }; 

    home-manager = {
      url = "github:nix-community/home-manager/release-25.05";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    ... #Other inputs
  };

  outputs = inputs@{ 
 	 self,
	 nixpkgs,
	 nix-flatpak,
	 nixos-hardware,
	 chaotic,
	 home-manager,
	 stylix,
	 nixvim,
	 lanzaboote,
	 nixcord,
	 ... 
	}:
    let 
      system = "x86_64-linux";
  
      # Allow unstable packages as pkgs.unstable
      unstableOverlay = final: _: {
          unstable = import inputs.nixpkgs-unstable {
            inherit (final.stdenv.hostPlatform) system;
            inherit (final) config; 
          };
      };
    in {
    packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
    packages.x86_64-linux.default = self.packages.x86_64-linux.hello;
    nixosConfigurations.jericho = nixpkgs.lib.nixosSystem {
      inherit system;
      specialArgs = { 
	inherit inputs;
      };
      modules = [
        # Secure Boot
	lanzaboote.nixosModules.lanzaboote


	({ pkgs, lib, ... }: {
	  environment.systemPackages = [ pkgs.sbctl ];
	  boot.loader.systemd-boot.enable = lib.mkForce false;

	  boot.lanzaboote = {
	    enable = true;
	    pkiBundle = "/var/lib/sbctl";
	  };
	})

	... #Unrelated modules

        ./silkos/configuration.nix

	# Stylix System module
	stylix.nixosModules.stylix

	... #Unrelated modules

	# Home Manager
        home-manager.nixosModules.home-manager {
          home-manager.useGlobalPkgs = true;
          home-manager.useUserPackages = true;
	  home-manager.backupFileExtension = "backup";
          home-manager.users.silk = ./silkos/home.nix;

	  home-manager.sharedModules = [ inputs.nixcord.homeModules.nixcord ];
        }
      ];
      pkgs = import nixpkgs {
        inherit system;
	# Allows unfree apps
        config.allowUnfree = true;
	# Overlay to allow unstable pkgs 
        overlays = [ unstableOverlay ]; 
      };
    };
  };
}

Stylix.nix #System-level

{ pkgs, stylix, ... }: 

{
  stylix = {
    enable = true;
    base16Scheme = "${pkgs.base16-schemes}/share/themes/terracotta-dark.yaml";
    image = ../wallpaper/wallpaper.jpg; #Can be set to null
    targets = {
      gtk.enable = false;
      qt.enable = false;
      gnome.enable = true;
    };
  };
}

Home.nix Snippet


{ config, pkgs, ... }:  
stylix = {
    targets = {
      gnome.useWallpaper = true;
      kitty.enable = true;
      nixcord.enable = true;
      firefox.enable = true;
      librewolf = {
        enable = true;
	 firefoxGnomeTheme.enable = true;
      };
    };
    icons = {
      enable = true;
      package = pkgs.whitesur-icon-theme;
      dark = "WhiteSur-dark";
    };
  };

Thank you to everyone who works or maintains Stylix for your time.

flake.lock

flake.lock
{
  "nodes": {
    "base16": {
      "inputs": {
        "fromYaml": "fromYaml"
      },
      "locked": {
        "lastModified": 1746562888,
        "narHash": "sha256-YgNJQyB5dQiwavdDFBMNKk1wyS77AtdgDk/VtU6wEaI=",
        "owner": "SenchoPens",
        "repo": "base16.nix",
        "rev": "806a1777a5db2a1ef9d5d6f493ef2381047f2b89",
        "type": "github"
      },
      "original": {
        "owner": "SenchoPens",
        "repo": "base16.nix",
        "type": "github"
      }
    },
    "base16-fish": {
      "flake": false,
      "locked": {
        "lastModified": 1622559957,
        "narHash": "sha256-PebymhVYbL8trDVVXxCvZgc0S5VxI7I1Hv4RMSquTpA=",
        "owner": "tomyun",
        "repo": "base16-fish",
        "rev": "2f6dd973a9075dabccd26f1cded09508180bf5fe",
        "type": "github"
      },
      "original": {
        "owner": "tomyun",
        "repo": "base16-fish",
        "type": "github"
      }
    },
    "base16-helix": {
      "flake": false,
      "locked": {
        "lastModified": 1748408240,
        "narHash": "sha256-9M2b1rMyMzJK0eusea0x3lyh3mu5nMeEDSc4RZkGm+g=",
        "owner": "tinted-theming",
        "repo": "base16-helix",
        "rev": "6c711ab1a9db6f51e2f6887cc3345530b33e152e",
        "type": "github"
      },
      "original": {
        "owner": "tinted-theming",
        "repo": "base16-helix",
        "type": "github"
      }
    },
    "base16-vim": {
      "flake": false,
      "locked": {
        "lastModified": 1732806396,
        "narHash": "sha256-e0bpPySdJf0F68Ndanwm+KWHgQiZ0s7liLhvJSWDNsA=",
        "owner": "tinted-theming",
        "repo": "base16-vim",
        "rev": "577fe8125d74ff456cf942c733a85d769afe58b7",
        "type": "github"
      },
      "original": {
        "owner": "tinted-theming",
        "repo": "base16-vim",
        "rev": "577fe8125d74ff456cf942c733a85d769afe58b7",
        "type": "github"
      }
    },
    "chaotic": {
      "inputs": {
        "flake-schemas": "flake-schemas",
        "home-manager": "home-manager",
        "jovian": "jovian",
        "nixpkgs": "nixpkgs",
        "rust-overlay": "rust-overlay"
      },
      "locked": {
        "lastModified": 1754597469,
        "narHash": "sha256-XdVdXIU23qFcE1fdMVaaGhFSdVRGHjBXcRh/KHO9jqQ=",
        "owner": "chaotic-cx",
        "repo": "nyx",
        "rev": "adaeec6210ede1cdc71c5d65c89c8161490a9e64",
        "type": "github"
      },
      "original": {
        "owner": "chaotic-cx",
        "ref": "nyxpkgs-unstable",
        "repo": "nyx",
        "type": "github"
      }
    },
    "crane": {
      "locked": {
        "lastModified": 1731098351,
        "narHash": "sha256-HQkYvKvaLQqNa10KEFGgWHfMAbWBfFp+4cAgkut+NNE=",
        "owner": "ipetkov",
        "repo": "crane",
        "rev": "ef80ead953c1b28316cc3f8613904edc2eb90c28",
        "type": "github"
      },
      "original": {
        "owner": "ipetkov",
        "repo": "crane",
        "type": "github"
      }
    },
    "firefox-gnome-theme": {
      "flake": false,
      "locked": {
        "lastModified": 1748383148,
        "narHash": "sha256-pGvD/RGuuPf/4oogsfeRaeMm6ipUIznI2QSILKjKzeA=",
        "owner": "rafaelmardojai",
        "repo": "firefox-gnome-theme",
        "rev": "4eb2714fbed2b80e234312611a947d6cb7d70caf",
        "type": "github"
      },
      "original": {
        "owner": "rafaelmardojai",
        "repo": "firefox-gnome-theme",
        "type": "github"
      }
    },
    "flake-compat": {
      "flake": false,
      "locked": {
        "lastModified": 1696426674,
        "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
        "owner": "edolstra",
        "repo": "flake-compat",
        "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
        "type": "github"
      },
      "original": {
        "owner": "edolstra",
        "repo": "flake-compat",
        "type": "github"
      }
    },
    "flake-compat_2": {
      "locked": {
        "lastModified": 1733328505,
        "narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
        "rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
        "revCount": 69,
        "type": "tarball",
        "url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.1.0/01948eb7-9cba-704f-bbf3-3fa956735b52/source.tar.gz?rev=ff81ac966bb2cae68946d5ed5fc4994f96d0ffec&revCount=69"
      },
      "original": {
        "type": "tarball",
        "url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"
      }
    },
    "flake-parts": {
      "inputs": {
        "nixpkgs-lib": [
          "lanzaboote",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1730504689,
        "narHash": "sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS+b4tfNFCwE=",
        "owner": "hercules-ci",
        "repo": "flake-parts",
        "rev": "506278e768c2a08bec68eb62932193e341f55c90",
        "type": "github"
      },
      "original": {
        "owner": "hercules-ci",
        "repo": "flake-parts",
        "type": "github"
      }
    },
    "flake-parts_2": {
      "inputs": {
        "nixpkgs-lib": "nixpkgs-lib"
      },
      "locked": {
        "lastModified": 1754091436,
        "narHash": "sha256-XKqDMN1/Qj1DKivQvscI4vmHfDfvYR2pfuFOJiCeewM=",
        "owner": "hercules-ci",
        "repo": "flake-parts",
        "rev": "67df8c627c2c39c41dbec76a1f201929929ab0bd",
        "type": "github"
      },
      "original": {
        "owner": "hercules-ci",
        "repo": "flake-parts",
        "type": "github"
      }
    },
    "flake-parts_3": {
      "inputs": {
        "nixpkgs-lib": [
          "nixvim",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1754091436,
        "narHash": "sha256-XKqDMN1/Qj1DKivQvscI4vmHfDfvYR2pfuFOJiCeewM=",
        "owner": "hercules-ci",
        "repo": "flake-parts",
        "rev": "67df8c627c2c39c41dbec76a1f201929929ab0bd",
        "type": "github"
      },
      "original": {
        "owner": "hercules-ci",
        "repo": "flake-parts",
        "type": "github"
      }
    },
    "flake-parts_4": {
      "inputs": {
        "nixpkgs-lib": [
          "stylix",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1749398372,
        "narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=",
        "owner": "hercules-ci",
        "repo": "flake-parts",
        "rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569",
        "type": "github"
      },
      "original": {
        "owner": "hercules-ci",
        "repo": "flake-parts",
        "type": "github"
      }
    },
    "flake-schemas": {
      "locked": {
        "lastModified": 1721999734,
        "narHash": "sha256-G5CxYeJVm4lcEtaO87LKzOsVnWeTcHGKbKxNamNWgOw=",
        "rev": "0a5c42297d870156d9c57d8f99e476b738dcd982",
        "revCount": 75,
        "type": "tarball",
        "url": "https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.1.5/0190ef2f-61e0-794b-ba14-e82f225e55e6/source.tar.gz"
      },
      "original": {
        "type": "tarball",
        "url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%3D0.1.5.tar.gz"
      }
    },
    "flake-utils": {
      "inputs": {
        "systems": "systems"
      },
      "locked": {
        "lastModified": 1731533236,
        "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
        "owner": "numtide",
        "repo": "flake-utils",
        "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "flake-utils",
        "type": "github"
      }
    },
    "fromYaml": {
      "flake": false,
      "locked": {
        "lastModified": 1731966426,
        "narHash": "sha256-lq95WydhbUTWig/JpqiB7oViTcHFP8Lv41IGtayokA8=",
        "owner": "SenchoPens",
        "repo": "fromYaml",
        "rev": "106af9e2f715e2d828df706c386a685698f3223b",
        "type": "github"
      },
      "original": {
        "owner": "SenchoPens",
        "repo": "fromYaml",
        "type": "github"
      }
    },
    "gitignore": {
      "inputs": {
        "nixpkgs": [
          "lanzaboote",
          "pre-commit-hooks-nix",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1709087332,
        "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
        "owner": "hercules-ci",
        "repo": "gitignore.nix",
        "rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
        "type": "github"
      },
      "original": {
        "owner": "hercules-ci",
        "repo": "gitignore.nix",
        "type": "github"
      }
    },
    "gnome-shell": {
      "flake": false,
      "locked": {
        "lastModified": 1744584021,
        "narHash": "sha256-0RJ4mJzf+klKF4Fuoc8VN8dpQQtZnKksFmR2jhWE1Ew=",
        "owner": "GNOME",
        "repo": "gnome-shell",
        "rev": "52c517c8f6c199a1d6f5118fae500ef69ea845ae",
        "type": "github"
      },
      "original": {
        "owner": "GNOME",
        "ref": "48.1",
        "repo": "gnome-shell",
        "type": "github"
      }
    },
    "home-manager": {
      "inputs": {
        "nixpkgs": [
          "chaotic",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1754575993,
        "narHash": "sha256-0ut8TM76DeMnexgwNyMx2c5flhp4IPtqQ79XR0hpmY0=",
        "owner": "nix-community",
        "repo": "home-manager",
        "rev": "d8a475e179888553b6863204a93295da6ee13eb4",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "repo": "home-manager",
        "type": "github"
      }
    },
    "home-manager_2": {
      "inputs": {
        "nixpkgs": [
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1753592768,
        "narHash": "sha256-oV695RvbAE4+R9pcsT9shmp6zE/+IZe6evHWX63f2Qg=",
        "owner": "nix-community",
        "repo": "home-manager",
        "rev": "fc3add429f21450359369af74c2375cb34a2d204",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "ref": "release-25.05",
        "repo": "home-manager",
        "type": "github"
      }
    },
    "ixx": {
      "inputs": {
        "flake-utils": [
          "nixvim",
          "nuschtosSearch",
          "flake-utils"
        ],
        "nixpkgs": [
          "nixvim",
          "nuschtosSearch",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1748294338,
        "narHash": "sha256-FVO01jdmUNArzBS7NmaktLdGA5qA3lUMJ4B7a05Iynw=",
        "owner": "NuschtOS",
        "repo": "ixx",
        "rev": "cc5f390f7caf265461d4aab37e98d2292ebbdb85",
        "type": "github"
      },
      "original": {
        "owner": "NuschtOS",
        "ref": "v0.0.8",
        "repo": "ixx",
        "type": "github"
      }
    },
    "jovian": {
      "inputs": {
        "nix-github-actions": "nix-github-actions",
        "nixpkgs": [
          "chaotic",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1754110197,
        "narHash": "sha256-N7GWK2084EsNdwzwg6FCIgMrSau1WwzxGSNdPHx5Tak=",
        "owner": "Jovian-Experiments",
        "repo": "Jovian-NixOS",
        "rev": "04ce5c103eb621220d69102bc0ee27c3abd89204",
        "type": "github"
      },
      "original": {
        "owner": "Jovian-Experiments",
        "repo": "Jovian-NixOS",
        "type": "github"
      }
    },
    "lanzaboote": {
      "inputs": {
        "crane": "crane",
        "flake-compat": "flake-compat",
        "flake-parts": "flake-parts",
        "nixpkgs": [
          "nixpkgs"
        ],
        "pre-commit-hooks-nix": "pre-commit-hooks-nix",
        "rust-overlay": "rust-overlay_2"
      },
      "locked": {
        "lastModified": 1737639419,
        "narHash": "sha256-AEEDktApTEZ5PZXNDkry2YV2k6t0dTgLPEmAZbnigXU=",
        "owner": "nix-community",
        "repo": "lanzaboote",
        "rev": "a65905a09e2c43ff63be8c0e86a93712361f871e",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "ref": "v0.4.2",
        "repo": "lanzaboote",
        "type": "github"
      }
    },
    "nix-flatpak": {
      "locked": {
        "lastModified": 1739444422,
        "narHash": "sha256-iAVVHi7X3kWORftY+LVbRiStRnQEob2TULWyjMS6dWg=",
        "owner": "gmodena",
        "repo": "nix-flatpak",
        "rev": "5e54c3ca05a7c7d968ae1ddeabe01d2a9bc1e177",
        "type": "github"
      },
      "original": {
        "owner": "gmodena",
        "ref": "latest",
        "repo": "nix-flatpak",
        "type": "github"
      }
    },
    "nix-github-actions": {
      "inputs": {
        "nixpkgs": [
          "chaotic",
          "jovian",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1729697500,
        "narHash": "sha256-VFTWrbzDlZyFHHb1AlKRiD/qqCJIripXKiCSFS8fAOY=",
        "owner": "zhaofengli",
        "repo": "nix-github-actions",
        "rev": "e418aeb728b6aa5ca8c5c71974e7159c2df1d8cf",
        "type": "github"
      },
      "original": {
        "owner": "zhaofengli",
        "ref": "matrix-name",
        "repo": "nix-github-actions",
        "type": "github"
      }
    },
    "nixcord": {
      "inputs": {
        "flake-compat": "flake-compat_2",
        "flake-parts": "flake-parts_2",
        "nixpkgs": [
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1754617473,
        "narHash": "sha256-Y0k08mEDUXvaWuuqQ1BNjlHNik2UIl/YBDb3Mh1FgcU=",
        "owner": "kaylorben",
        "repo": "nixcord",
        "rev": "a87c8e4d54ab4529f0c5b897d25cdf17391aea71",
        "type": "github"
      },
      "original": {
        "owner": "kaylorben",
        "repo": "nixcord",
        "type": "github"
      }
    },
    "nixos-hardware": {
      "locked": {
        "lastModified": 1754564048,
        "narHash": "sha256-dz303vGuzWjzOPOaYkS9xSW+B93PSAJxvBd6CambXVA=",
        "owner": "NixOS",
        "repo": "nixos-hardware",
        "rev": "26ed7a0d4b8741fe1ef1ee6fa64453ca056ce113",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "master",
        "repo": "nixos-hardware",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1754498491,
        "narHash": "sha256-erbiH2agUTD0Z30xcVSFcDHzkRvkRXOQ3lb887bcVrs=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "c2ae88e026f9525daf89587f3cbee584b92b6134",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "nixos-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "nixpkgs-lib": {
      "locked": {
        "lastModified": 1753579242,
        "narHash": "sha256-zvaMGVn14/Zz8hnp4VWT9xVnhc8vuL3TStRqwk22biA=",
        "owner": "nix-community",
        "repo": "nixpkgs.lib",
        "rev": "0f36c44e01a6129be94e3ade315a5883f0228a6e",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "repo": "nixpkgs.lib",
        "type": "github"
      }
    },
    "nixpkgs-stable": {
      "locked": {
        "lastModified": 1730741070,
        "narHash": "sha256-edm8WG19kWozJ/GqyYx2VjW99EdhjKwbY3ZwdlPAAlo=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "d063c1dd113c91ab27959ba540c0d9753409edf3",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "nixos-24.05",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "nixpkgs-unstable": {
      "locked": {
        "lastModified": 1754498491,
        "narHash": "sha256-erbiH2agUTD0Z30xcVSFcDHzkRvkRXOQ3lb887bcVrs=",
        "owner": "Nixos",
        "repo": "nixpkgs",
        "rev": "c2ae88e026f9525daf89587f3cbee584b92b6134",
        "type": "github"
      },
      "original": {
        "owner": "Nixos",
        "ref": "nixos-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "nixpkgs_2": {
      "locked": {
        "lastModified": 1754292888,
        "narHash": "sha256-1ziydHSiDuSnaiPzCQh1mRFBsM2d2yRX9I+5OPGEmIE=",
        "owner": "Nixos",
        "repo": "nixpkgs",
        "rev": "ce01daebf8489ba97bd1609d185ea276efdeb121",
        "type": "github"
      },
      "original": {
        "owner": "Nixos",
        "ref": "nixos-25.05",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "nixvim": {
      "inputs": {
        "flake-parts": "flake-parts_3",
        "nixpkgs": [
          "nixpkgs"
        ],
        "nuschtosSearch": "nuschtosSearch",
        "systems": "systems_2"
      },
      "locked": {
        "lastModified": 1754262585,
        "narHash": "sha256-Yz5dJ0VzGRzSRHdHldsWQbuFYmtP3NWNreCvPfCi9CI=",
        "owner": "nix-community",
        "repo": "nixvim",
        "rev": "ab1b5962e1ca90b42de47e1172e0d24ca80e6256",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "ref": "nixos-25.05",
        "repo": "nixvim",
        "type": "github"
      }
    },
    "nur": {
      "inputs": {
        "flake-parts": [
          "stylix",
          "flake-parts"
        ],
        "nixpkgs": [
          "stylix",
          "nixpkgs"
        ],
        "treefmt-nix": "treefmt-nix"
      },
      "locked": {
        "lastModified": 1751320053,
        "narHash": "sha256-3m6RMw0FbbaUUa01PNaMLoO7D99aBClmY5ed9V3vz+0=",
        "owner": "nix-community",
        "repo": "NUR",
        "rev": "cbde1735782f9c2bb2c63d5e05fba171a14a4670",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "repo": "NUR",
        "type": "github"
      }
    },
    "nuschtosSearch": {
      "inputs": {
        "flake-utils": "flake-utils",
        "ixx": "ixx",
        "nixpkgs": [
          "nixvim",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1753771532,
        "narHash": "sha256-Pmpke0JtLRzgdlwDC5a+aiLVZ11JPUO5Bcqkj0nHE/k=",
        "owner": "NuschtOS",
        "repo": "search",
        "rev": "2a65adaf2c0c428efb0f4a2bc406aab466e96a06",
        "type": "github"
      },
      "original": {
        "owner": "NuschtOS",
        "repo": "search",
        "type": "github"
      }
    },
    "pre-commit-hooks-nix": {
      "inputs": {
        "flake-compat": [
          "lanzaboote",
          "flake-compat"
        ],
        "gitignore": "gitignore",
        "nixpkgs": [
          "lanzaboote",
          "nixpkgs"
        ],
        "nixpkgs-stable": "nixpkgs-stable"
      },
      "locked": {
        "lastModified": 1731363552,
        "narHash": "sha256-vFta1uHnD29VUY4HJOO/D6p6rxyObnf+InnSMT4jlMU=",
        "owner": "cachix",
        "repo": "pre-commit-hooks.nix",
        "rev": "cd1af27aa85026ac759d5d3fccf650abe7e1bbf0",
        "type": "github"
      },
      "original": {
        "owner": "cachix",
        "repo": "pre-commit-hooks.nix",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "chaotic": "chaotic",
        "home-manager": "home-manager_2",
        "lanzaboote": "lanzaboote",
        "nix-flatpak": "nix-flatpak",
        "nixcord": "nixcord",
        "nixos-hardware": "nixos-hardware",
        "nixpkgs": "nixpkgs_2",
        "nixpkgs-unstable": "nixpkgs-unstable",
        "nixvim": "nixvim",
        "stylix": "stylix"
      }
    },
    "rust-overlay": {
      "inputs": {
        "nixpkgs": [
          "chaotic",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1754575663,
        "narHash": "sha256-afOx8AG0KYtw7mlt6s6ahBBy7eEHZwws3iCRoiuRQS4=",
        "owner": "oxalica",
        "repo": "rust-overlay",
        "rev": "6db0fb0e9cec2e9729dc52bf4898e6c135bb8a0f",
        "type": "github"
      },
      "original": {
        "owner": "oxalica",
        "repo": "rust-overlay",
        "type": "github"
      }
    },
    "rust-overlay_2": {
      "inputs": {
        "nixpkgs": [
          "lanzaboote",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1731897198,
        "narHash": "sha256-Ou7vLETSKwmE/HRQz4cImXXJBr/k9gp4J4z/PF8LzTE=",
        "owner": "oxalica",
        "repo": "rust-overlay",
        "rev": "0be641045af6d8666c11c2c40e45ffc9667839b5",
        "type": "github"
      },
      "original": {
        "owner": "oxalica",
        "repo": "rust-overlay",
        "type": "github"
      }
    },
    "stylix": {
      "inputs": {
        "base16": "base16",
        "base16-fish": "base16-fish",
        "base16-helix": "base16-helix",
        "base16-vim": "base16-vim",
        "firefox-gnome-theme": "firefox-gnome-theme",
        "flake-parts": "flake-parts_4",
        "gnome-shell": "gnome-shell",
        "nixpkgs": [
          "nixpkgs"
        ],
        "nur": "nur",
        "systems": "systems_3",
        "tinted-foot": "tinted-foot",
        "tinted-kitty": "tinted-kitty",
        "tinted-schemes": "tinted-schemes",
        "tinted-tmux": "tinted-tmux",
        "tinted-zed": "tinted-zed"
      },
      "locked": {
        "lastModified": 1754599117,
        "narHash": "sha256-AzAYdZlat002vCjCKWdFpGi2xUaiOU4DtIPnv1nomD8=",
        "owner": "nix-community",
        "repo": "stylix",
        "rev": "312dec38b2231b21f36903d1bdce96daa11548ff",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "ref": "release-25.05",
        "repo": "stylix",
        "type": "github"
      }
    },
    "systems": {
      "locked": {
        "lastModified": 1681028828,
        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
        "owner": "nix-systems",
        "repo": "default",
        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
        "type": "github"
      },
      "original": {
        "owner": "nix-systems",
        "repo": "default",
        "type": "github"
      }
    },
    "systems_2": {
      "locked": {
        "lastModified": 1681028828,
        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
        "owner": "nix-systems",
        "repo": "default",
        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
        "type": "github"
      },
      "original": {
        "owner": "nix-systems",
        "repo": "default",
        "type": "github"
      }
    },
    "systems_3": {
      "locked": {
        "lastModified": 1681028828,
        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
        "owner": "nix-systems",
        "repo": "default",
        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
        "type": "github"
      },
      "original": {
        "owner": "nix-systems",
        "repo": "default",
        "type": "github"
      }
    },
    "tinted-foot": {
      "flake": false,
      "locked": {
        "lastModified": 1726913040,
        "narHash": "sha256-+eDZPkw7efMNUf3/Pv0EmsidqdwNJ1TaOum6k7lngDQ=",
        "owner": "tinted-theming",
        "repo": "tinted-foot",
        "rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4",
        "type": "github"
      },
      "original": {
        "owner": "tinted-theming",
        "repo": "tinted-foot",
        "rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4",
        "type": "github"
      }
    },
    "tinted-kitty": {
      "flake": false,
      "locked": {
        "lastModified": 1735730497,
        "narHash": "sha256-4KtB+FiUzIeK/4aHCKce3V9HwRvYaxX+F1edUrfgzb8=",
        "owner": "tinted-theming",
        "repo": "tinted-kitty",
        "rev": "de6f888497f2c6b2279361bfc790f164bfd0f3fa",
        "type": "github"
      },
      "original": {
        "owner": "tinted-theming",
        "repo": "tinted-kitty",
        "type": "github"
      }
    },
    "tinted-schemes": {
      "flake": false,
      "locked": {
        "lastModified": 1750770351,
        "narHash": "sha256-LI+BnRoFNRa2ffbe3dcuIRYAUcGklBx0+EcFxlHj0SY=",
        "owner": "tinted-theming",
        "repo": "schemes",
        "rev": "5a775c6ffd6e6125947b393872cde95867d85a2a",
        "type": "github"
      },
      "original": {
        "owner": "tinted-theming",
        "repo": "schemes",
        "type": "github"
      }
    },
    "tinted-tmux": {
      "flake": false,
      "locked": {
        "lastModified": 1751159871,
        "narHash": "sha256-UOHBN1fgHIEzvPmdNMHaDvdRMgLmEJh2hNmDrp3d3LE=",
        "owner": "tinted-theming",
        "repo": "tinted-tmux",
        "rev": "bded5e24407cec9d01bd47a317d15b9223a1546c",
        "type": "github"
      },
      "original": {
        "owner": "tinted-theming",
        "repo": "tinted-tmux",
        "type": "github"
      }
    },
    "tinted-zed": {
      "flake": false,
      "locked": {
        "lastModified": 1751158968,
        "narHash": "sha256-ksOyv7D3SRRtebpXxgpG4TK8gZSKFc4TIZpR+C98jX8=",
        "owner": "tinted-theming",
        "repo": "base16-zed",
        "rev": "86a470d94204f7652b906ab0d378e4231a5b3384",
        "type": "github"
      },
      "original": {
        "owner": "tinted-theming",
        "repo": "base16-zed",
        "type": "github"
      }
    },
    "treefmt-nix": {
      "inputs": {
        "nixpkgs": [
          "stylix",
          "nur",
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1733222881,
        "narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=",
        "owner": "numtide",
        "repo": "treefmt-nix",
        "rev": "49717b5af6f80172275d47a418c9719a31a78b53",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "treefmt-nix",
        "type": "github"
      }
    }
  },
  "root": "root",
  "version": 7
}

Installation Method

NixOS

System Information

  • system: "x86_64-linux"
  • host os: Linux 6.16.0-cachyos, NixOS, 25.05 (Warbler), 25.05.20250804.ce01dae
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.28.4
  • nixpkgs: /nix/store/5jrv34dcsm9zjl666ann69sw5k4rv30w-source

Notify maintainers

@Flameopathic, @danth, @trueNAHO

quotejericho avatar Aug 09 '25 16:08 quotejericho

One day after updating, Stylix randomly stopped applying theming to Librewolf.

[...]

    "stylix": {
      [...]
        "rev": "312dec38b2231b21f36903d1bdce96daa11548ff",
      [...]
        "ref": "release-25.05",
      [...]
    },

What is the last working Stylix version before updating? Is the generated Librewolf configuration file still present, and does it look reasonable? Did you declare profileNames or are you ignoring the following warning:

https://github.com/nix-community/stylix/blob/312dec38b2231b21f36903d1bdce96daa11548ff/modules/firefox/each-config.nix#L33-L35

trueNAHO avatar Aug 14 '25 22:08 trueNAHO

Facing the same issue, I tried specifying the profile (which it did not prompt me for if I provided the firefox profile name and not the librewolf one) but it didn't apply the theme. Librewolf has also been updated to a new minor version but idk how relevant it may be

parnavh avatar Aug 16 '25 05:08 parnavh

I tried specifying the profile (which it did not prompt me for if I provided the firefox profile name and not the librewolf one) but it didn't apply the theme.

AFAIK, programs.librewolf.profiles.${profile}.extensions.force = true; is required since commit 1 ("firefox: prevent extensions settings override (#6490)"). IIRC, we decided against setting this by default to the align with upstream:

firefox: prevent extensions settings override (#6490)

Prevents extensions settings from accidentally being overriden when
using `profiles.<name>.extensions.settings`. Adds the
`profiles.<name>.extensions.force` option to acknowledge the risk.

-- 1 ("firefox: prevent extensions settings override (#6490)")

It might be worth reconsidering this decision.

Improving the Firefox derivatives can be improved according to https://github.com/nix-community/stylix/issues/1651.

If programs.librewolf.profiles.${profile}.extensions.force = true; still does not resolve the issue, try my Librewolf setup:

let
  profile = "stylix";
in {
  programs.librewolf.profiles.${profile} = {
    extensions.force = true;
    name = profile;
  };

  stylix.targets.librewolf = {
    colorTheme.enable = true;
    firefoxGnomeTheme.enable = true;
    profileNames = [profile];
  };
}

Librewolf has also been updated to a new minor version but idk how relevant it may be

For reference, we are delegating to Home Manager:

https://github.com/nix-community/stylix/blob/82242e0f9b1d91b6f170807a6ec622cfdb816eac/modules/firefox/each-config.nix#L101-L110

trueNAHO avatar Aug 18 '25 18:08 trueNAHO

I tried specifying the profile (which it did not prompt me for if I provided the firefox profile name and not the librewolf one) but it didn't apply the theme.

AFAIK, programs.librewolf.profiles.${profile}.extensions.force = true; is required since commit 1 ("firefox: prevent extensions settings override (#6490)"). IIRC, we decided against setting this by default to the align with upstream:

firefox: prevent extensions settings override (#6490)

Prevents extensions settings from accidentally being overriden when
using `profiles.<name>.extensions.settings`. Adds the
`profiles.<name>.extensions.force` option to acknowledge the risk.

-- 1 ("firefox: prevent extensions settings override (#6490)")

It might be worth reconsidering this decision.

I don't think not enabling extensions.force is the issue here, at least for original issue report. They aren't using colorTheme so stylix isn't configuring any extension settings.

0xda157 avatar Aug 19 '25 20:08 0xda157

What is the last working Stylix version before updating? Is the generated Librewolf configuration file still present, and does it look reasonable? Did you declare profileNames or are you ignoring the following warning:

I sadly don't know the last working stylix version, the librewolf generated file from what I recall wasn't being correctly added into librewolf from what I saw, though I may have just been looking at the wrong directory. I did not declare a profileNames but it gave no such error to me.

If programs.librewolf.profiles.${profile}.extensions.force = true; still does not resolve the issue, try my Librewolf setup:

I tried this and although it gave no errors it did not seem to apply it either.|

quotejericho avatar Aug 19 '25 22:08 quotejericho

I don't think not enabling extensions.force is the issue here, at least for original issue report. They aren't using colorTheme so stylix isn't configuring any extension settings.

How would I use this? Is there a part of the docs I could refer to?

quotejericho avatar Aug 19 '25 22:08 quotejericho

I don't think not enabling extensions.force is the issue here, at least for original issue report. They aren't using colorTheme so stylix isn't configuring any extension settings.

How would I use this? Is there a part of the docs I could refer to?

your only using firefoxGnomeTheme which uses firefox css for it's theming. Firefox color is an extension developed by mozilla (which might give you better results), the stylix option for it is documented here. When using stylix.targets.<browser>.colorTheme.enable it's best to set programs.librewolf.profiles.${profile}.extensions.force = true; as previously stated by NAHO.

0xda157 avatar Aug 20 '25 06:08 0xda157

My config:

  programs.librewolf = {
    enable = true;

    nativeMessagingHosts = [
      pkgs.plasma5Packages.plasma-browser-integration
    ];

    profiles."name".extensions.force = true;
  };

  stylix = {
    targets.librewolf.profileNames = [ "name" ];
    targets.librewolf.colorTheme.enable = true;
  };

What am I doing wrong?

parnavh avatar Aug 20 '25 07:08 parnavh

I managed to fix the issue (so sorry for opening a user error issue :( ), here are the steps I took to fix it.

  1. Move where librewolf's installation occurs. At the time of the issue occurring it was declared in user.users.${user} rather than the system-level or home-manager packages. I moved it to be enabled in home.nix instead.

  2. I changed the home.nix config like so

  programs = {
    ... # Other programs
    librewolf = {
      enable = true;
      profiles.${profile} = {
      extensions.force = true;
      name = profile;
      };
    };
  };

and

  stylix = {
    targets = {
      ...
      firefox.enable = true;
      librewolf = {
        enable = true;
        #firefoxGnomeTheme.enable = true;
        colorTheme.enable = true;
        profileNames = [profile];
      };
    };
    icons = {
      enable = true;
      package = pkgs.whitesur-icon-theme;
      dark = "WhiteSur-dark";
    };
  };

Essentially enabling extensions.force w/ colorTheme enabled as well.

Thank you for your time and help everyone <3

quotejericho avatar Aug 20 '25 23:08 quotejericho

I tried doing the same :( Didn't work for me

parnavh avatar Aug 21 '25 00:08 parnavh

I managed to fix the issue [...], here are the steps I took to fix it.

[...]

Essentially enabling extensions.force w/ colorTheme enabled as well.

What is different from my inital proposal:

my Librewolf setup:

let
  profile = "stylix";
in {
  programs.librewolf.profiles.${profile} = {
    extensions.force = true;
    name = profile;
  };

  stylix.targets.librewolf = {
    colorTheme.enable = true;
    firefoxGnomeTheme.enable = true;
    profileNames = [profile];
  };
}

Previously, you said this does not resolve the issue:

If programs.librewolf.profiles.${profile}.extensions.force = true; still does not resolve the issue, try my Librewolf setup:

I tried this and although it gave no errors it did not seem to apply it either.

Did a reboot fix it somehow?

trueNAHO avatar Aug 21 '25 14:08 trueNAHO