Reduce wrapper file count

This commit is contained in:
SebastianStork 2024-05-23 12:02:15 +02:00
parent 058d1b38a3
commit a290812085
8 changed files with 56 additions and 41 deletions

26
wrappers/hyprlock.nix Normal file
View file

@ -0,0 +1,26 @@
{ assembleWrapper, moduleArgs, ... }:
let
inherit (moduleArgs) pkgs;
in
assembleWrapper {
basePackage = pkgs.hyprlock;
flags =
let
hyprlock-config = pkgs.writeText "hyprlock-config" ''
background {
monitor =
path = screenshot
blur_size = 4
blur_passes = 1
}
input-field {
monitor =
}
'';
in
[
"--config"
hyprlock-config
];
}

View file

@ -1,11 +0,0 @@
{ assembleWrapper, moduleArgs, ... }:
let
inherit (moduleArgs) pkgs;
in
assembleWrapper {
basePackage = pkgs.hyprlock;
flags = [
"--config"
./hyprlock.conf
];
}

View file

@ -1,9 +0,0 @@
background {
monitor =
path = screenshot
blur_size = 4
blur_passes = 1
}
input-field {
monitor =
}

20
wrappers/hyprpaper.nix Normal file
View file

@ -0,0 +1,20 @@
{ assembleWrapper, moduleArgs, ... }:
let
inherit (moduleArgs) pkgs;
in
assembleWrapper {
basePackage = pkgs.hyprpaper;
flags =
let
hyprpaper-config = pkgs.writeText "hyprpaper-config" ''
preload = ~/Pictures/.wallpaper
wallpaper = , ~/Pictures/.wallpaper
splash = false
'';
in
[
"--config"
hyprpaper-config
];
}

View file

@ -1,11 +0,0 @@
{ assembleWrapper, moduleArgs, ... }:
let
inherit (moduleArgs) pkgs;
in
assembleWrapper {
basePackage = pkgs.hyprpaper;
flags = [
"--config"
./hyprpaper.conf
];
}

View file

@ -1,3 +0,0 @@
preload = ~/Pictures/.wallpaper
wallpaper = , ~/Pictures/.wallpaper
splash = false

View file

@ -10,6 +10,15 @@ assembleWrapper {
programs.kitty.prependFlags = programs.kitty.prependFlags =
let let
kitty-config = pkgs.writeText "kitty-config" ''
font_family JetBrainsMono Nerd Font
background_opacity 0.85
cursor_shape beam
confirm_os_window_close 0
enable_audio_bell no
update_check_interval 0
'';
theme-file = theme-file =
{ {
dark = "default.conf"; dark = "default.conf";
@ -20,7 +29,7 @@ assembleWrapper {
in in
[ [
"--config" "--config"
./kitty.conf kitty-config
"--override" "--override"
kitty-theme kitty-theme
]; ];

View file

@ -1,6 +0,0 @@
font_family JetBrainsMono Nerd Font
background_opacity 0.85
cursor_shape beam
confirm_os_window_close 0
enable_audio_bell no
update_check_interval 0