diff options
Diffstat (limited to 'accounts/gkleen@sif/default.nix')
-rw-r--r-- | accounts/gkleen@sif/default.nix | 73 |
1 files changed, 34 insertions, 39 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index bcfd1224..58cfb425 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix | |||
@@ -80,7 +80,7 @@ let | |||
80 | ]; | 80 | ]; |
81 | }; | 81 | }; |
82 | 82 | ||
83 | lockCommand = "${config.systemd.package}/bin/systemctl --user start gtklock.service"; | 83 | lockCommand = "${lib.getExe' config.systemd.package "systemctl"} --user start gtklock.service"; |
84 | in { | 84 | in { |
85 | imports = with flake.nixosModules.userProfiles.${userName}; [ | 85 | imports = with flake.nixosModules.userProfiles.${userName}; [ |
86 | mpv yt-dlp (args: import ./xcompose.nix (inputs // args)) | 86 | mpv yt-dlp (args: import ./xcompose.nix (inputs // args)) |
@@ -185,7 +185,12 @@ in { | |||
185 | }; | 185 | }; |
186 | }; | 186 | }; |
187 | 187 | ||
188 | zathura.enable = true; | 188 | zathura = { |
189 | enable = true; | ||
190 | options = { | ||
191 | scroll-page-aware = true; | ||
192 | }; | ||
193 | }; | ||
189 | imv.enable = true; | 194 | imv.enable = true; |
190 | 195 | ||
191 | mpv.config = { | 196 | mpv.config = { |
@@ -285,14 +290,6 @@ in { | |||
285 | }; | 290 | }; |
286 | 291 | ||
287 | services = { | 292 | services = { |
288 | dunst = { | ||
289 | settings = import ./dunst-settings.nix inputs; | ||
290 | iconTheme = { | ||
291 | package = pkgs.paper-icon-theme; | ||
292 | name = "Paper"; | ||
293 | }; | ||
294 | enable = true; | ||
295 | }; | ||
296 | emacs = { | 293 | emacs = { |
297 | enable = true; | 294 | enable = true; |
298 | socketActivation.enable = true; | 295 | socketActivation.enable = true; |
@@ -321,8 +318,11 @@ in { | |||
321 | device_mounted = []; | 318 | device_mounted = []; |
322 | }; | 319 | }; |
323 | device_config = [ | 320 | device_config = [ |
324 | { mount_path = "/run/etc-metadata"; ignore = true; } | 321 | { loop_file = "/nix/store/*-etc-metadata.erofs"; is_mounted = false; ignore = true; } |
322 | { mount_path = "/run/nixos-etc-metadata"; ignore = true; } | ||
323 | { mount_path = "/run/nixos-etc-metadata.*"; ignore = true; } | ||
325 | ]; | 324 | ]; |
325 | icon_names.media = ["drive-removable-media-symbolic"]; | ||
326 | }; | 326 | }; |
327 | }; | 327 | }; |
328 | network-manager-applet.enable = true; | 328 | network-manager-applet.enable = true; |
@@ -359,31 +359,17 @@ in { | |||
359 | enable = true; | 359 | enable = true; |
360 | events = [ | 360 | events = [ |
361 | { event = "before-sleep"; command = lockCommand; } | 361 | { event = "before-sleep"; command = lockCommand; } |
362 | # { event = "after-resume"; command = "${cfg.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms on"; } | ||
363 | { event = "lock"; command = lockCommand; } | 362 | { event = "lock"; command = lockCommand; } |
364 | ]; | 363 | ]; |
365 | timeouts = [ | 364 | timeouts = [ |
366 | # { timeout = 300; | ||
367 | # command = "${cfg.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms off"; | ||
368 | # } | ||
369 | { timeout = 330; command = lockCommand; } | 365 | { timeout = 330; command = lockCommand; } |
370 | ]; | 366 | ]; |
371 | extraArgs = [ | 367 | extraArgs = [ |
368 | "-w" | ||
372 | "idlehint" "30" | 369 | "idlehint" "30" |
373 | ]; | 370 | ]; |
374 | }; | 371 | }; |
375 | poweralertd.enable = true; | 372 | poweralertd.enable = true; |
376 | avizo = { | ||
377 | enable = true; | ||
378 | settings.default = { | ||
379 | time = "1.0"; | ||
380 | background = "rgba(0, 0, 0, 0.8)"; | ||
381 | border-color = "rgba(0, 0, 0, 1)"; | ||
382 | bar-fg-color = "rgba(160, 160, 160, 1)"; | ||
383 | bar-bg-color = "rgba(32, 32, 32, 0.96)"; | ||
384 | # y-offset = "0.25"; | ||
385 | }; | ||
386 | }; | ||
387 | }; | 373 | }; |
388 | 374 | ||
389 | home.pointerCursor = { | 375 | home.pointerCursor = { |
@@ -424,16 +410,18 @@ in { | |||
424 | fira fira-code pwvucontrol wrappedKeepassxc wl-clipboard-rs | 410 | fira fira-code pwvucontrol wrappedKeepassxc wl-clipboard-rs |
425 | mumble pulseaudio-ctl pamixer libnotify screen-message | 411 | mumble pulseaudio-ctl pamixer libnotify screen-message |
426 | wrappedYTMDesktop libsForQt5.qt5ct playerctl evince | 412 | wrappedYTMDesktop libsForQt5.qt5ct playerctl evince |
427 | thunderbird zoom-us steam steam-run wireshark virt-manager | 413 | thunderbird zoom-us xdg-desktop-portal steam steam-run |
428 | rclone cached-nix-shell worktime fira-code-symbols | 414 | wireshark virt-manager rclone cached-nix-shell worktime |
429 | libreoffice xournalpp google-chrome nixos-shell virt-viewer | 415 | fira-code-symbols libreoffice xournalpp google-chrome |
430 | freerdp gnome-icon-theme paper-icon-theme sshpassSecret | 416 | nixos-shell virt-viewer freerdp gnome-icon-theme |
431 | weechat element-desktop matrix-synapse-tools.synadm | 417 | paper-icon-theme sshpassSecret weechat element-desktop |
418 | matrix-synapse-tools.synadm | ||
432 | flakeInputs.deploy-rs.packages.${config.nixpkgs.system}.deploy-rs | 419 | flakeInputs.deploy-rs.packages.${config.nixpkgs.system}.deploy-rs |
433 | sieve-connect gimp inkscape udiskie glab nitrokey-app | 420 | sieve-connect gimp inkscape udiskie glab nitrokey-app |
434 | pynitrokey gtklock wlrctl remmina openscad spice-record | 421 | pynitrokey gtklock wlrctl remmina openscad spice-record |
435 | libguestfs-with-appliance nerd-fonts.fira-mono | 422 | libguestfs-with-appliance nerd-fonts.fira-mono |
436 | nerd-fonts.symbols-only nerd-fonts.fira-code powerline-fonts | 423 | nerd-fonts.symbols-only nerd-fonts.fira-code powerline-fonts |
424 | swtpm | ||
437 | ]; | 425 | ]; |
438 | 426 | ||
439 | file = { | 427 | file = { |
@@ -468,13 +456,6 @@ in { | |||
468 | }; | 456 | }; |
469 | 457 | ||
470 | xdg.configFile = { | 458 | xdg.configFile = { |
471 | "dunst/dunstrc.d" = { | ||
472 | source = ./dunstrc.d; | ||
473 | recursive = true; | ||
474 | onChange = '' | ||
475 | ${pkgs.systemd}/bin/systemctl --user try-restart dunst | ||
476 | ''; | ||
477 | }; | ||
478 | "wireplumber" = { | 459 | "wireplumber" = { |
479 | source = ./wireplumber; | 460 | source = ./wireplumber; |
480 | recursive = true; | 461 | recursive = true; |
@@ -506,6 +487,18 @@ in { | |||
506 | }; | 487 | }; |
507 | }; | 488 | }; |
508 | "emacs/init.el".source = ./emacs.el; | 489 | "emacs/init.el".source = ./emacs.el; |
490 | "systemd/user/xdg-desktop-portal.service.d/after-graphical-session.conf".text = '' | ||
491 | [Unit] | ||
492 | After=graphical-session.target | ||
493 | ''; | ||
494 | "systemd/user/home-manager.service.d/before-graphical-session.conf".text = '' | ||
495 | [Unit] | ||
496 | Before=graphical-session-pre.target | ||
497 | ''; | ||
498 | "pdfpc/pdfpcrc".text = '' | ||
499 | mouse 8 prev | ||
500 | mouse 9 next | ||
501 | ''; | ||
509 | }; | 502 | }; |
510 | 503 | ||
511 | xdg.dataFile = { | 504 | xdg.dataFile = { |
@@ -623,7 +616,6 @@ in { | |||
623 | --property 'CPUAccounting=yes' --property 'CPUQuotaPeriodSec=50ms' \ | 616 | --property 'CPUAccounting=yes' --property 'CPUQuotaPeriodSec=50ms' \ |
624 | --property 'Environment=DSCP=46' \ | 617 | --property 'Environment=DSCP=46' \ |
625 | -- ${pkgs.dscp}/bin/dscp ${pkgs.google-chrome}/bin/google-chrome-stable \ | 618 | -- ${pkgs.dscp}/bin/dscp ${pkgs.google-chrome}/bin/google-chrome-stable \ |
626 | --force-device-scale-factor=1.5 \ | ||
627 | --class=Rainbow \ | 619 | --class=Rainbow \ |
628 | --kiosk "https://web.openrainbow.com" \ | 620 | --kiosk "https://web.openrainbow.com" \ |
629 | --user-data-dir=''${HOME}/.config/google-chrome-rainbow | 621 | --user-data-dir=''${HOME}/.config/google-chrome-rainbow |
@@ -632,6 +624,9 @@ in { | |||
632 | url = "https://web.openrainbow.com/rb/2.139.17/assets/skins/rainbow/images/homepage/logo__rainbow.svg"; | 624 | url = "https://web.openrainbow.com/rb/2.139.17/assets/skins/rainbow/images/homepage/logo__rainbow.svg"; |
633 | hash = "sha256-5fmo8rDqVDpzkGaPjk4Y+SsSZpAsY7VUQSFW6WdHwuU="; | 625 | hash = "sha256-5fmo8rDqVDpzkGaPjk4Y+SsSZpAsY7VUQSFW6WdHwuU="; |
634 | }; | 626 | }; |
627 | settings = { | ||
628 | StartupWMClass = "Rainbow"; | ||
629 | }; | ||
635 | }; | 630 | }; |
636 | }; | 631 | }; |
637 | 632 | ||