modules/theme: add custom theme module with wallpaper

This commit is contained in:
Anthony Rodriguez 2024-09-30 01:19:48 +02:00
parent 8fe0604299
commit 34332934dd
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
3 changed files with 22 additions and 5 deletions

View file

@ -7,13 +7,10 @@
imports = [ imports = [
./hosts ./hosts
./modules
]; ];
perSystem = { perSystem = {pkgs, ...}: {
config,
pkgs,
...
}: {
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
packages = [ packages = [
pkgs.alejandra pkgs.alejandra

5
modules/default.nix Normal file
View file

@ -0,0 +1,5 @@
{
flake.nixosModules = {
theme = import ./theme;
};
}

15
modules/theme/default.nix Normal file
View file

@ -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";
};
};
}