mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
Reduce wrapper file count
This commit is contained in:
parent
058d1b38a3
commit
a290812085
8 changed files with 56 additions and 41 deletions
26
wrappers/hyprlock.nix
Normal file
26
wrappers/hyprlock.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
{ assembleWrapper, moduleArgs, ... }:
|
|
||||||
let
|
|
||||||
inherit (moduleArgs) pkgs;
|
|
||||||
in
|
|
||||||
assembleWrapper {
|
|
||||||
basePackage = pkgs.hyprlock;
|
|
||||||
flags = [
|
|
||||||
"--config"
|
|
||||||
./hyprlock.conf
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
background {
|
|
||||||
monitor =
|
|
||||||
path = screenshot
|
|
||||||
blur_size = 4
|
|
||||||
blur_passes = 1
|
|
||||||
}
|
|
||||||
input-field {
|
|
||||||
monitor =
|
|
||||||
}
|
|
||||||
20
wrappers/hyprpaper.nix
Normal file
20
wrappers/hyprpaper.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
{ assembleWrapper, moduleArgs, ... }:
|
|
||||||
let
|
|
||||||
inherit (moduleArgs) pkgs;
|
|
||||||
in
|
|
||||||
assembleWrapper {
|
|
||||||
basePackage = pkgs.hyprpaper;
|
|
||||||
flags = [
|
|
||||||
"--config"
|
|
||||||
./hyprpaper.conf
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
preload = ~/Pictures/.wallpaper
|
|
||||||
wallpaper = , ~/Pictures/.wallpaper
|
|
||||||
splash = false
|
|
||||||
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
@ -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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue