nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

commit 2f44855dd8337638529af1a5b8c185101de475f0
parent 2846129b1152260b3e15f4bfc52dbb7e2b3a8af5
Author: breadcat <breadcat@users.noreply.github.com>
Date:   Thu, 17 Sep 2026 15:45:12 +0100

Replace swayimg package with home-manager file

Diffstat:
Mcommon/hyprland.nix | 1-
Ahome/swayimg.nix | 12++++++++++++
Mmachines/atlas.nix | 1+
Mmachines/minerva.nix | 1+
4 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/common/hyprland.nix b/common/hyprland.nix @@ -8,7 +8,6 @@ hyprland seatd slurp - swayimg wl-clipboard xdg-utils ]; diff --git a/home/swayimg.nix b/home/swayimg.nix @@ -0,0 +1,12 @@ +{ + programs.swayimg.enable = true; + xdg.configFile."swayimg/init.lua".text = '' + swayimg.viewer.on_key("Control-Delete", function() + local img = swayimg.viewer.get_image() + if img then + os.remove(img.path) + swayimg.imagelist.remove(img.path) + end + end) + ''; +} diff --git a/machines/atlas.nix b/machines/atlas.nix @@ -54,6 +54,7 @@ ../home/rclone.nix ../home/spotify.nix ../home/ssh.nix + ../home/swayimg.nix ../home/tofi.nix ../home/wayle.nix ../home/yt-dlp.nix diff --git a/machines/minerva.nix b/machines/minerva.nix @@ -50,6 +50,7 @@ ../home/rbw.nix ../home/spotify.nix ../home/ssh.nix + ../home/swayimg.nix ../home/tofi.nix ../home/wayle.nix ../home/yt-dlp.nix