Skip to content

Commit

Permalink
fix: properly import and use new pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Nov 13, 2023
1 parent 599d724 commit 7706294
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
1 change: 1 addition & 0 deletions home/isabel/programs/configs/cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _: {
imports = [
./shells

./atuin.nix
./bat.nix
./eza.nix
./git.nix
Expand Down
1 change: 1 addition & 0 deletions home/isabel/programs/configs/gui/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ _: {
./terminals

./discord.nix
./viewnior.nix
./zathura.nix
];
}
54 changes: 26 additions & 28 deletions home/isabel/programs/configs/gui/viewnior.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,32 @@
acceptedTypes = ["laptop" "desktop" "hybrid"];
in {
config = lib.mkIf ((lib.isAcceptedDevice osConfig acceptedTypes) && osConfig.modules.programs.gui.enable) {
home = {
packages = with pkgs; [
viewnior
];
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
'';
};
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 7706294

Please sign in to comment.