diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2025-10-19 17:54:40 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2025-10-19 17:54:40 -0500 |
commit | 542fdccb0500f3e4a38a8a82c209ae2e3a514d1a (patch) | |
tree | f2496b99e8b66ffc51fc3a67ff1de1772d451c30 /archetypes | |
parent | c5999637e1d2f5463184b323d0687e84d8981d39 (diff) | |
download | nixos-542fdccb0500f3e4a38a8a82c209ae2e3a514d1a.tar.xz nixos-542fdccb0500f3e4a38a8a82c209ae2e3a514d1a.zip |
thumbnailers and video programs. sxiv replaced with nsxiv. more image mimetypes added. sent added. get rid of old hostnames for tjkeller.xyzHEADmaster
Diffstat (limited to 'archetypes')
-rw-r--r-- | archetypes/collections/desktop/default.nix | 2 | ||||
-rw-r--r-- | archetypes/collections/desktop/extra.nix | 1 | ||||
-rw-r--r-- | archetypes/collections/desktop/thumbnailers.nix | 23 | ||||
-rw-r--r-- | archetypes/collections/desktop/utilities.nix | 2 | ||||
-rw-r--r-- | archetypes/collections/desktop/video.nix | 17 | ||||
-rw-r--r-- | archetypes/profiles/desktop/default.nix | 3 |
6 files changed, 46 insertions, 2 deletions
diff --git a/archetypes/collections/desktop/default.nix b/archetypes/collections/desktop/default.nix index bbca8df..418eb71 100644 --- a/archetypes/collections/desktop/default.nix +++ b/archetypes/collections/desktop/default.nix @@ -7,7 +7,9 @@ ./firefox.nix ./graphics.nix ./office.nix + ./thumbnailers.nix ./utilities.nix + ./video.nix ./xserver.nix ]; } diff --git a/archetypes/collections/desktop/extra.nix b/archetypes/collections/desktop/extra.nix index c3af43b..1d08bd4 100644 --- a/archetypes/collections/desktop/extra.nix +++ b/archetypes/collections/desktop/extra.nix @@ -12,6 +12,7 @@ in { qdirstat qdiskinfo remmina + sent ]; }; } diff --git a/archetypes/collections/desktop/thumbnailers.nix b/archetypes/collections/desktop/thumbnailers.nix new file mode 100644 index 0000000..50e4aa7 --- /dev/null +++ b/archetypes/collections/desktop/thumbnailers.nix @@ -0,0 +1,23 @@ +{ pkgs, lib, config, ... }: let + cfg = config._archetypes.collections.desktop.thumbnailers; +in { + options._archetypes.collections.desktop.thumbnailers = { + enable = lib.mkEnableOption "install thumbnailers for graphical file managers"; + }; + + config = lib.mkIf cfg.enable { + # https://wiki.nixos.org/wiki/Thumbnails + # Thumbnailers created in /run/current-system/sw/share/thumbnailers + environment.systemPackages = with pkgs; [ + # Video + ffmpegthumbnailer + # Images + gdk-pixbuf + # HEIF images + libheif + libheif.out + # RAW images + nufraw-thumbnailer + ]; + }; +} diff --git a/archetypes/collections/desktop/utilities.nix b/archetypes/collections/desktop/utilities.nix index 51fed51..e2a61af 100644 --- a/archetypes/collections/desktop/utilities.nix +++ b/archetypes/collections/desktop/utilities.nix @@ -13,13 +13,13 @@ in { libnotify lowbat mpv + nsxiv pavolctld pavucontrol pcmanfm redshift scrot st - sxiv wpa_supplicant_gui zathura ]; diff --git a/archetypes/collections/desktop/video.nix b/archetypes/collections/desktop/video.nix new file mode 100644 index 0000000..cce6516 --- /dev/null +++ b/archetypes/collections/desktop/video.nix @@ -0,0 +1,17 @@ +{ pkgs, lib, config, ... }: let + cfg = config._archetypes.collections.desktop.video; +in { + options._archetypes.collections.desktop.video = { + enable = lib.mkEnableOption "install video capture and editing software"; + }; + + config = lib.mkIf cfg.enable { + environment.systemPackages = with pkgs; [ + dvgrab + ffmpeg + mpv + obs-studio + vlc + ]; + }; +} diff --git a/archetypes/profiles/desktop/default.nix b/archetypes/profiles/desktop/default.nix index a0ed9a8..6d53f84 100644 --- a/archetypes/profiles/desktop/default.nix +++ b/archetypes/profiles/desktop/default.nix @@ -5,6 +5,7 @@ _archetypes.collections = { desktop = { utilities.enable = mkDesktop true; + thumbnailers.enable = mkDesktop true; firefox.enable = mkDesktop true; xserver = { enable = mkDesktop true; @@ -106,7 +107,7 @@ audio = [ "mpv" ]; directory = [ "pcmanfm" ]; email = [ "thunderbird" ]; - image = [ "sxiv" ]; + image = [ "nsxiv" ]; pdf = [ "org.pwmt.zathura-pdf-mupdf" ]; text = [ "nvim" ]; video = [ "mpv" ]; |