nix: use store paths
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
ba5a97852e
commit
f8081aebc7
3 changed files with 7 additions and 4 deletions
|
@ -9,6 +9,7 @@ with lib; let
|
||||||
hm = config.home-manager.users.${config.custom.username};
|
hm = config.home-manager.users.${config.custom.username};
|
||||||
|
|
||||||
audio = hm.home.file.".local/bin/audio".source;
|
audio = hm.home.file.".local/bin/audio".source;
|
||||||
|
gnome-text-editor = getExe pkgs.gnome-text-editor;
|
||||||
grep = getExe pkgs.gnugrep;
|
grep = getExe pkgs.gnugrep;
|
||||||
left = hm.home.file.".local/bin/left".source;
|
left = hm.home.file.".local/bin/left".source;
|
||||||
loupe = getExe pkgs.loupe;
|
loupe = getExe pkgs.loupe;
|
||||||
|
@ -17,6 +18,7 @@ with lib; let
|
||||||
sway-audio-idle-inhibit = getExe pkgs.sway-audio-idle-inhibit;
|
sway-audio-idle-inhibit = getExe pkgs.sway-audio-idle-inhibit;
|
||||||
uwsm = getExe pkgs.uwsm;
|
uwsm = getExe pkgs.uwsm;
|
||||||
virsh = getExe' config.virtualisation.libvirtd.package "virsh";
|
virsh = getExe' config.virtualisation.libvirtd.package "virsh";
|
||||||
|
wallpaper = hm.home.file.".local/bin/wallpaper".source;
|
||||||
|
|
||||||
command = command: "${uwsm} app -- ${command}";
|
command = command: "${uwsm} app -- ${command}";
|
||||||
in {
|
in {
|
||||||
|
@ -48,7 +50,7 @@ in {
|
||||||
left_handed = true;
|
left_handed = true;
|
||||||
middle_button_emulation = true;
|
middle_button_emulation = true;
|
||||||
natural_scroll = true;
|
natural_scroll = true;
|
||||||
sensitivity = -0.6;
|
sensitivity = -0.7;
|
||||||
})
|
})
|
||||||
|
|
||||||
(devices ["logitech-m570"] {
|
(devices ["logitech-m570"] {
|
||||||
|
@ -85,7 +87,7 @@ in {
|
||||||
hm.home.sessionVariables
|
hm.home.sessionVariables
|
||||||
)
|
)
|
||||||
++ [
|
++ [
|
||||||
"EDITOR, gnome-text-editor"
|
"EDITOR, ${gnome-text-editor}"
|
||||||
];
|
];
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Keywords/#executing
|
# https://wiki.hyprland.org/Configuring/Keywords/#executing
|
||||||
|
|
|
@ -6,8 +6,10 @@
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.custom.desktops.hyprland.plugins;
|
cfg = config.custom.desktops.hyprland.plugins;
|
||||||
|
hm = config.home-manager.users.${config.custom.username};
|
||||||
|
|
||||||
hyprctl = getExe' config.programs.hyprland.package "hyprctl";
|
hyprctl = getExe' config.programs.hyprland.package "hyprctl";
|
||||||
|
minimize = hm.home.file.".local/bin/minimize".source;
|
||||||
uwsm = getExe pkgs.uwsm;
|
uwsm = getExe pkgs.uwsm;
|
||||||
|
|
||||||
command = command: "${uwsm} app -- ${command}";
|
command = command: "${uwsm} app -- ${command}";
|
||||||
|
|
|
@ -9,7 +9,6 @@ with lib; let
|
||||||
hm = config.home-manager.users.${config.custom.username};
|
hm = config.home-manager.users.${config.custom.username};
|
||||||
|
|
||||||
_1password = getExe config.programs._1password-gui.package;
|
_1password = getExe config.programs._1password-gui.package;
|
||||||
gamescope = getExe config.programs.gamescope.package;
|
|
||||||
ghostty = getExe hm.programs.ghostty.package;
|
ghostty = getExe hm.programs.ghostty.package;
|
||||||
launch = hm.home.file.".local/bin/launch".source;
|
launch = hm.home.file.".local/bin/launch".source;
|
||||||
libreoffice = getExe config.custom.programs.libreoffice.package;
|
libreoffice = getExe config.custom.programs.libreoffice.package;
|
||||||
|
@ -18,9 +17,9 @@ with lib; let
|
||||||
uwsm = getExe pkgs.uwsm;
|
uwsm = getExe pkgs.uwsm;
|
||||||
virt-manager = getExe pkgs.virt-manager;
|
virt-manager = getExe pkgs.virt-manager;
|
||||||
waydroid = getExe pkgs.waydroid;
|
waydroid = getExe pkgs.waydroid;
|
||||||
|
youtube-music = getExe pkgs.youtube-music;
|
||||||
|
|
||||||
command = command: "${uwsm} app -- ${command}";
|
command = command: "${uwsm} app -- ${command}";
|
||||||
youtube-music = getExe pkgs.youtube-music;
|
|
||||||
in {
|
in {
|
||||||
options.custom.desktops.hyprland.rules = {
|
options.custom.desktops.hyprland.rules = {
|
||||||
enable = mkOption {default = false;};
|
enable = mkOption {default = false;};
|
||||||
|
|
Loading…
Add table
Reference in a new issue