mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Wrap hyprpaper
This commit is contained in:
parent
554b05c33b
commit
97b608bf9a
4 changed files with 22 additions and 23 deletions
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
|
|
@ -13,16 +12,7 @@ in {
|
|||
|
||||
options.myConfig.de.hyprland.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf cfg.hyprland.enable {
|
||||
home.packages = [pkgs.hyprpaper];
|
||||
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
||||
preload=${cfg.wallpaper}
|
||||
wallpaper=,${cfg.wallpaper}
|
||||
splash=false
|
||||
'';
|
||||
|
||||
services.dunst.enable = true;
|
||||
|
||||
config = lib.mkIf config.myConfig.de.hyprland.enable {
|
||||
myConfig.de = {
|
||||
hypridlelock.enable = true;
|
||||
waybar.enable = true;
|
||||
|
|
|
|||
|
|
@ -6,14 +6,7 @@
|
|||
}: let
|
||||
cfg = config.myConfig.de;
|
||||
in {
|
||||
options.myConfig.de = {
|
||||
theme = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
};
|
||||
wallpaper = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
};
|
||||
};
|
||||
options.myConfig.de.theme = lib.mkOption {type = lib.types.str;};
|
||||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf (cfg.theme == "dark") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue