diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-08-22 17:07:07 +0800 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-08-22 17:07:07 +0800 |
commit | bc64af1a17592160d3525aa577a55e7261c1875a (patch) | |
tree | e8208eaefd9198ab11369c45e7e92b795e4f1f36 | |
parent | 9fec340586e38607e26e48bb1fe95076e444a883 (diff) | |
download | nixos-configuration-bc64af1a17592160d3525aa577a55e7261c1875a.tar.gz nixos-configuration-bc64af1a17592160d3525aa577a55e7261c1875a.tar.bz2 nixos-configuration-bc64af1a17592160d3525aa577a55e7261c1875a.zip |
feat: enable stylix integration with home-manager
-rw-r--r-- | flake.nix | 2 | ||||
-rw-r--r-- | home-manager/stvnliu/gtk.nix | 13 | ||||
-rw-r--r-- | home-manager/stvnliu/home.nix | 1 | ||||
-rw-r--r-- | home-manager/stvnliu/stylix.nix (renamed from nixos/stylix.nix) | 3 | ||||
-rw-r--r-- | nixos/configuration.nix | 3 |
5 files changed, 5 insertions, 17 deletions
@@ -33,7 +33,6 @@ specialArgs = {inherit inputs outputs;}; modules = [ ./nixos/configuration.nix - inputs.stylix.nixosModules.stylix ]; }; }; @@ -47,6 +46,7 @@ modules = [ ./home-manager/${stevenUserName}/home.nix inputs.nixvim.homeManagerModules.nixvim + inputs.stylix.homeManagerModules.stylix ]; }; }; diff --git a/home-manager/stvnliu/gtk.nix b/home-manager/stvnliu/gtk.nix index 1ad19cf..c7223c1 100644 --- a/home-manager/stvnliu/gtk.nix +++ b/home-manager/stvnliu/gtk.nix @@ -5,19 +5,6 @@ }: { gtk = { 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 = { package = pkgs.gruvbox-plus-icons; name = "Gruvbox-Plus-Dark"; diff --git a/home-manager/stvnliu/home.nix b/home-manager/stvnliu/home.nix index cce1c31..607c4b1 100644 --- a/home-manager/stvnliu/home.nix +++ b/home-manager/stvnliu/home.nix @@ -23,6 +23,7 @@ ./gtk.nix ./ags ./xdg.nix + ./stylix.nix ]; nixpkgs = { diff --git a/nixos/stylix.nix b/home-manager/stvnliu/stylix.nix index 46cd59c..3ba2323 100644 --- a/nixos/stylix.nix +++ b/home-manager/stvnliu/stylix.nix @@ -1,6 +1,7 @@ {pkgs, ...}: { stylix = { + enable = true; base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-medium.yaml"; - stylix.image = ../home-manager/stvnliu/assets/gruvbox-wallpaper.png; + image = ./assets/gruvbox-wallpaper.png; }; } diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 9c673ad..2ef2d79 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -15,12 +15,11 @@ ./fonts.nix ./services/laptop.preset.nix ./hardware-configuration.nix - #./ags.nix - ./xdg.nix ]; environment.variables = { GDK_SCALE = config.displayScale; FLAKE = config.myConfigLocation; + GTK_IM_MODULE = lib.mkForce ""; }; security.pam.services.hyprlock = {}; i18n.inputMethod = { |