diff --git a/nix/homes/rafiq/desktop/default.nix b/nix/homes/rafiq/desktop/default.nix index 9d03045..2e7fb71 100644 --- a/nix/homes/rafiq/desktop/default.nix +++ b/nix/homes/rafiq/desktop/default.nix @@ -37,6 +37,14 @@ }; in mkIf config.graphical { + stylix = { + image = ./wallpaper.png; + targets = { + firefox.colorTheme.enable = true; + firefox.profileNames = syncedProfiles; + waybar.addCss = false; + }; + }; persistDirs = [ "docs" "repos" diff --git a/nix/homes/rafiq/desktop/wallpaper.png b/nix/homes/rafiq/desktop/wallpaper.png new file mode 100644 index 0000000..cabd21f Binary files /dev/null and b/nix/homes/rafiq/desktop/wallpaper.png differ diff --git a/nix/modules/graphical/stylix.nix b/nix/modules/graphical/stylix.nix new file mode 100644 index 0000000..c4b3c65 --- /dev/null +++ b/nix/modules/graphical/stylix.nix @@ -0,0 +1,12 @@ +{ inputs, ... }: +{ + # needs to be default because the options get + # evaluated even if graphical is set to false + flake.modules.nixos.default = + { pkgs, ... }: + { + imports = [ inputs.stylix.nixosModules.stylix ]; + stylix.enable = true; + stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml"; + }; +}