diff --git a/flake.nix b/flake.nix index fce38f9..943b3de 100644 --- a/flake.nix +++ b/flake.nix @@ -7,13 +7,10 @@ imports = [ ./hosts + ./modules ]; - perSystem = { - config, - pkgs, - ... - }: { + perSystem = {pkgs, ...}: { devShells.default = pkgs.mkShell { packages = [ pkgs.alejandra diff --git a/modules/default.nix b/modules/default.nix new file mode 100644 index 0000000..47af602 --- /dev/null +++ b/modules/default.nix @@ -0,0 +1,5 @@ +{ + flake.nixosModules = { + theme = import ./theme; + }; +} diff --git a/modules/theme/default.nix b/modules/theme/default.nix new file mode 100644 index 0000000..6355a8b --- /dev/null +++ b/modules/theme/default.nix @@ -0,0 +1,15 @@ +{ + lib, + config, + ... +}: { + options.theme = { + wallpaper = lib.mkOption { + description = '' + Location of the wallpaper that will be used throughout the system. + ''; + type = lib.types.path; + example = lib.literalExpression "./wallpaper.png"; + }; + }; +}