feat: enable stylix integration with home-manager

This commit is contained in:
Zhongheng Liu 2024-08-22 17:07:07 +08:00
commit bc64af1a17
No known key found for this signature in database
5 changed files with 5 additions and 17 deletions

View file

@ -33,7 +33,6 @@
specialArgs = {inherit inputs outputs;}; specialArgs = {inherit inputs outputs;};
modules = [ modules = [
./nixos/configuration.nix ./nixos/configuration.nix
inputs.stylix.nixosModules.stylix
]; ];
}; };
}; };
@ -47,6 +46,7 @@
modules = [ modules = [
./home-manager/${stevenUserName}/home.nix ./home-manager/${stevenUserName}/home.nix
inputs.nixvim.homeManagerModules.nixvim inputs.nixvim.homeManagerModules.nixvim
inputs.stylix.homeManagerModules.stylix
]; ];
}; };
}; };

View file

@ -5,19 +5,6 @@
}: { }: {
gtk = { gtk = {
enable = true; enable = true;
cursorTheme = {
package = pkgs.vanilla-dmz;
name = "Vanilla-DMZ";
size = 24;
};
font = {
name = "Aileron";
size = 10;
};
theme = {
package = pkgs.gruvbox-gtk-theme;
name = "Gruvbox-Dark-BL";
};
iconTheme = { iconTheme = {
package = pkgs.gruvbox-plus-icons; package = pkgs.gruvbox-plus-icons;
name = "Gruvbox-Plus-Dark"; name = "Gruvbox-Plus-Dark";

View file

@ -23,6 +23,7 @@
./gtk.nix ./gtk.nix
./ags ./ags
./xdg.nix ./xdg.nix
./stylix.nix
]; ];
nixpkgs = { nixpkgs = {

View file

@ -1,6 +1,7 @@
{pkgs, ...}: { {pkgs, ...}: {
stylix = { stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-medium.yaml"; base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-medium.yaml";
stylix.image = ../home-manager/stvnliu/assets/gruvbox-wallpaper.png; image = ./assets/gruvbox-wallpaper.png;
}; };
} }

View file

@ -15,12 +15,11 @@
./fonts.nix ./fonts.nix
./services/laptop.preset.nix ./services/laptop.preset.nix
./hardware-configuration.nix ./hardware-configuration.nix
#./ags.nix
./xdg.nix
]; ];
environment.variables = { environment.variables = {
GDK_SCALE = config.displayScale; GDK_SCALE = config.displayScale;
FLAKE = config.myConfigLocation; FLAKE = config.myConfigLocation;
GTK_IM_MODULE = lib.mkForce "";
}; };
security.pam.services.hyprlock = {}; security.pam.services.hyprlock = {};
i18n.inputMethod = { i18n.inputMethod = {