Can't get Stylix working after going through installation documentation #1757
-
|
Edit: Here's my whole config (minus hardware config) if that helps: nix config.zip I've done lots of looking up and reading the documentation multiple times but it seems to be missing something. The theme isn't applied to programs. I installed Stylix looking at the installation page, and the home manager module, both as flakes. It says "Installing Home Manager as a NixOS module is highly recommended" and "When Stylix is installed and enabled in a NixOS configuration, it will automatically set up its Home Manager modules if it detects that Home Manager is available". Looking at the configuration page, This is in my configuration.nix: stylix = {
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
autoEnable = true;
enable = true;
};
programs = {
neovim.enable = true;
fish.enable = true;
yazi.enable = true;
}I have home-manager.users.myUsername =
{ config, ... }:
{
home = {
stateVersion = "25.11";
packages = [
pkgs.neovim
pkgs.fish
pkgs.yazi
];
};
};My flake.nix: {
inputs = {
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
{ self, nixpkgs, ... }@inputs:
{
nixosConfigurations.NixOS-MBP = nixpkgs.lib.nixosSystem {
specialArgs.flake-inputs = inputs;
modules = [
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
inputs.home-manager.nixosModules.home-manager
inputs.stylix.nixosModules.stylix
./configuration.nix
./hardware-configuration.nix
];
};
};
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
For most targets you need to use the |
Beta Was this translation helpful? Give feedback.
-
|
After lots of back and forth here, this seems to work: configuration.nix: home.nix: flake.nix: |
Beta Was this translation helpful? Give feedback.
After lots of back and forth here, this seems to work:
configuration.nix:
home.nix: