modules/theme: add custom theme module with wallpaper
This commit is contained in:
parent
8fe0604299
commit
34332934dd
3 changed files with 22 additions and 5 deletions
|
@ -7,13 +7,10 @@
|
|||
|
||||
imports = [
|
||||
./hosts
|
||||
./modules
|
||||
];
|
||||
|
||||
perSystem = {
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
perSystem = {pkgs, ...}: {
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = [
|
||||
pkgs.alejandra
|
||||
|
|
5
modules/default.nix
Normal file
5
modules/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
flake.nixosModules = {
|
||||
theme = import ./theme;
|
||||
};
|
||||
}
|
15
modules/theme/default.nix
Normal file
15
modules/theme/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue