Skip to content

Commit

Permalink
feat(viewnoir): init
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Nov 12, 2023
1 parent d190003 commit af32d73
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions home/isabel/programs/configs/gui/viewnior.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
osConfig,
lib,
pkgs,
...
}: let
acceptedTypes = ["laptop" "desktop" "hybrid"];
in {
config = lib.mkIf ((lib.isAcceptedDevice osConfig acceptedTypes) && osConfig.modules.programs.gui.enable) {
home = {
packages = with pkgs; [
viewnior
];

xdg.configFile."viewnior/viewnior.conf".text = ''
[prefs]
zoom-mode=0
fit-on-fullscreen=true
show-hidden=true
dark-background=false
smooth-images=true
confirm-delete=true
reload-on-save=false
show-menu-bar=false
show-toolbar=false
show-scrollbar=false
show-statusbar=false
start-maximized=false
slideshow-timeout=5
auto-resize=false
behavior-wheel=1
behavior-click=0
behavior-modify=0
jpeg-quality=100
png-compression=9
desktop=6
'';
};
};
}

0 comments on commit af32d73

Please sign in to comment.