diff --git a/hosts/desktop1/configuration.nix b/hosts/desktop1/configuration.nix index c52faa4..be20e56 100644 --- a/hosts/desktop1/configuration.nix +++ b/hosts/desktop1/configuration.nix @@ -16,6 +16,7 @@ fzf.enable = true; firefox.enable = true; zsh.enable = true; + stylix.enable = true; }; home-manager = { @@ -72,9 +73,6 @@ ntfs3g ]; - stylix.enable = true; - stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/dracula.yaml"; - services.flatpak = { enable = true; update.onActivation = true; diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 376052c..37e247d 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -8,6 +8,7 @@ ./games ./browser ./shell + ./rice ]; # Timzone and locales (same for all machines so I put it here) diff --git a/modules/nix/rice/default.nix b/modules/nix/rice/default.nix new file mode 100644 index 0000000..0d6f472 --- /dev/null +++ b/modules/nix/rice/default.nix @@ -0,0 +1,6 @@ +{ lib, config, pkgs, ... }: +{ + imports = [ + ./stylix.nix + ]; +} diff --git a/modules/nix/rice/stylix.nix b/modules/nix/rice/stylix.nix new file mode 100644 index 0000000..053fd55 --- /dev/null +++ b/modules/nix/rice/stylix.nix @@ -0,0 +1,16 @@ +{ lib, config, pkgs, ... }: +let + inherit (lib) mkIf mkOption types; +in +{ + options.smayzy.stylix.enable = mkOption { + type = types.bool; + default = false; + description = "stylix"; + }; + + config = mkIf config.smayzy.stylix.enable { + stylix.enable = true; + stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/dracula.yaml"; + }; +}