diff --git a/home/default.nix b/home/default.nix index 0c65a94..6bcb88c 100644 --- a/home/default.nix +++ b/home/default.nix @@ -11,6 +11,9 @@ in ./profile ./programs ./sessions + + # modules + ./stylix.nix # imports inputs.stylix ]; config = {}; options.nixfiles = { diff --git a/home/stylix.nix b/home/stylix.nix new file mode 100644 index 0000000..3d9fcaa --- /dev/null +++ b/home/stylix.nix @@ -0,0 +1,14 @@ +{ pkgs, lib, config, inputs, ... }@args: +{ + imports = [ + inputs.stylix.homeManagerModules.stylix + ]; + config = { + # only if styix is standalone + stylix = lib.mkIf (!(args ? osConfig && args.osConfig ? stylix )) { + autoEnable = lib.mkDefault false; + image = lib.mkDefault "${pkgs.nixfiles-assets}/share/wallpapers/nixfiles-static/Djayjesse-finding_life.png"; + base16Scheme = lib.mkDefault "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml"; + }; + }; +} diff --git a/system/default.nix b/system/default.nix index 38621eb..2fe096c 100644 --- a/system/default.nix +++ b/system/default.nix @@ -18,6 +18,7 @@ in # modules inputs.nix-minecraft.nixosModules.minecraft-servers inputs.impermanence.nixosModules.impermanence + ./stylix.nix # imports inputs.stylix ]; config = {}; options.nixfiles = { diff --git a/system/stylix.nix b/system/stylix.nix new file mode 100644 index 0000000..4bc7552 --- /dev/null +++ b/system/stylix.nix @@ -0,0 +1,26 @@ +{ pkgs, config, lib, inputs, ... } @ args: +{ + imports = [ + inputs.stylix.nixosModules.stylix + ]; + + config = { + # stylix defaults (this is an external module so i don't mind setting sane defaults right here). + stylix = { + # don't mess with things by default. note: this still messes with things + # by default; the stylix.enable option is currently being added, see + # danth/stylix#244 + autoEnable = lib.mkDefault false; + + image = lib.mkDefault "${pkgs.nixfiles-assets}/share/wallpapers/nixfiles-static/Djayjesse-finding_life.png"; + base16Scheme = lib.mkDefault "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml"; + homeManagerIntegration = { + # use system config in home-manager + followSystem = lib.mkDefault true; + + # I will manually import within home-manager so it works standalone + autoImport = lib.mkDefault false; + }; + }; + }; +}