summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'accounts')
-rw-r--r--accounts/gkleen@sif/default.nix19
-rw-r--r--accounts/gkleen@sif/emacs.el2
-rw-r--r--accounts/gkleen@sif/hyprland.nix29
-rw-r--r--accounts/gkleen@sif/systemd.nix15
-rw-r--r--accounts/gkleen@sif/zshrc1
5 files changed, 45 insertions, 21 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix
index f2df467a..83dcf989 100644
--- a/accounts/gkleen@sif/default.nix
+++ b/accounts/gkleen@sif/default.nix
@@ -160,7 +160,7 @@ in {
160 yaml-mode json-mode shakespeare-mode smart-mode-line 160 yaml-mode json-mode shakespeare-mode smart-mode-line
161 highlight-parentheses highlight-symbol ag sass-mode lua-mode 161 highlight-parentheses highlight-symbol ag sass-mode lua-mode
162 fira-code-mode use-package wanderlust # notmuch 162 fira-code-mode use-package wanderlust # notmuch
163 use-package-ensure-system-package git-gutter emacsScratch 163 git-gutter emacsScratch
164 edit-server mediawiki editorconfig typescript-mode 164 edit-server mediawiki editorconfig typescript-mode
165 markdown-mode nftables-mode rustic lsp-mode lsp-ui 165 markdown-mode nftables-mode rustic lsp-mode lsp-ui
166 direnv company projectile tomorrow-night-paradise-theme 166 direnv company projectile tomorrow-night-paradise-theme
@@ -209,6 +209,7 @@ in {
209 flk = "$HOME/projects/machines"; 209 flk = "$HOME/projects/machines";
210 rz = "$HOME/projects/rz"; 210 rz = "$HOME/projects/rz";
211 pro = "$HOME/projects/pro"; 211 pro = "$HOME/projects/pro";
212 media = "$HOME/media";
212 }; 213 };
213 214
214 obs-studio = { 215 obs-studio = {
@@ -227,7 +228,7 @@ in {
227 kitty = { 228 kitty = {
228 enable = true; 229 enable = true;
229 font = { 230 font = {
230 package = pkgs.fira; 231 package = pkgs.nerd-fonts.fira-mono;
231 name = "Fira Mono"; 232 name = "Fira Mono";
232 size = 10; 233 size = 10;
233 }; 234 };
@@ -270,13 +271,14 @@ in {
270 output = [ "eDP-1" "DP-2" "DP-3" ]; 271 output = [ "eDP-1" "DP-2" "DP-3" ];
271 modules-left = [ "hyprland/workspaces" ]; 272 modules-left = [ "hyprland/workspaces" ];
272 modules-center = [ "hyprland/window" ]; 273 modules-center = [ "hyprland/window" ];
273 modules-right = [ "custom/worktime" "custom/worktime-today" "custom/weather" "custom/keymap" "privacy" "tray" "wireplumber" "backlight" "battery" "idle_inhibitor" "clock" ]; 274 modules-right = [ # "custom/worktime" "custom/worktime-today"
275 "custom/weather" "custom/keymap" "privacy" "tray" "wireplumber" "backlight" "battery" "idle_inhibitor" "clock" ];
274 276
275 "custom/weather" = { 277 "custom/weather" = {
276 format = "{}"; 278 format = "{}";
277 tooltip = true; 279 tooltip = true;
278 interval = 3600; 280 interval = 3600;
279 exec = "${lib.getExe pkgs.wttrbar} --hide-conditions --custom-indicator \"<span font=\\\"Symbols Nerd Font Mono\\\" size=\\\"120%\\\">{ICON}</span> {FeelsLikeC}°\""; 281 exec = "${lib.getExe pkgs.wttrbar} --hide-conditions --nerd --custom-indicator \"<span font=\\\"Symbols Nerd Font Mono\\\" size=\\\"120%\\\">{ICON}</span> {FeelsLikeC}°\"";
280 return-type = "json"; 282 return-type = "json";
281 }; 283 };
282 "custom/keymap" = { 284 "custom/keymap" = {
@@ -598,6 +600,9 @@ in {
598 notification_actions = { 600 notification_actions = {
599 device_mounted = []; 601 device_mounted = [];
600 }; 602 };
603 device_config = [
604 { mount_path = "/run/etc-metadata"; ignore = true; }
605 ];
601 }; 606 };
602 }; 607 };
603 network-manager-applet.enable = true; 608 network-manager-applet.enable = true;
@@ -768,6 +773,8 @@ in {
768 idle-hide = true; 773 idle-hide = true;
769 follow-focus = true; 774 follow-focus = true;
770 start-hidden = true; 775 start-hidden = true;
776 time-format = "%H:%M:%S";
777 date-format = "%Y-%m-%d";
771 }; 778 };
772 }; 779 };
773 }; 780 };
@@ -931,10 +938,10 @@ in {
931 xdgOpenUsePortal = true; 938 xdgOpenUsePortal = true;
932 config = { 939 config = {
933 common.default = [ "gtk" ]; 940 common.default = [ "gtk" ];
934 hyprland.default = [ "gtk" "hyprland" ]; 941 hyprland.default = [ "gtk" "kde" "hyprland" ];
935 }; 942 };
936 extraPortals = with pkgs; [ 943 extraPortals = with pkgs; [
937 xdg-desktop-portal-gtk xdg-desktop-portal-wlr xdg-desktop-portal-hyprland 944 xdg-desktop-portal-kde xdg-desktop-portal-gtk xdg-desktop-portal-wlr xdg-desktop-portal-hyprland
938 ]; 945 ];
939 }; 946 };
940 }; 947 };
diff --git a/accounts/gkleen@sif/emacs.el b/accounts/gkleen@sif/emacs.el
index b1b1b198..183cb322 100644
--- a/accounts/gkleen@sif/emacs.el
+++ b/accounts/gkleen@sif/emacs.el
@@ -14,7 +14,7 @@
14(setq package-archives nil) 14(setq package-archives nil)
15(package-initialize) 15(package-initialize)
16(require 'use-package) 16(require 'use-package)
17(use-package use-package-ensure-system-package :ensure t) 17;; (use-package use-package-ensure-system-package :ensure t)
18 18
19(require 'evil) 19(require 'evil)
20(evil-mode 1) 20(evil-mode 1)
diff --git a/accounts/gkleen@sif/hyprland.nix b/accounts/gkleen@sif/hyprland.nix
index 52dee24f..90ae689a 100644
--- a/accounts/gkleen@sif/hyprland.nix
+++ b/accounts/gkleen@sif/hyprland.nix
@@ -3,17 +3,13 @@ let
3 cfg = config.home-manager.users.${userName}; 3 cfg = config.home-manager.users.${userName};
4in { 4in {
5 monitor = [ 5 monitor = [
6 ",preferred,auto,auto" 6 ",preferred,auto,auto,bitdepth,8"
7 "eDP-1,3840x2160@60,auto,1.5" 7 "eDP-1,3840x2160@60,auto,1.5,bitdepth,8"
8 ]; 8 ];
9 9
10 "$terminal" = "kitty"; 10 "$terminal" = "kitty";
11 "$menu" = "fuzzel"; 11 "$menu" = "fuzzel";
12 12
13 exec-once = [
14 "wpaperd"
15 ];
16
17 env = [ 13 env = [
18 "NIXOS_OZONE_WL,1" 14 "NIXOS_OZONE_WL,1"
19 "QT_QPA_PLATFORM,wayland" 15 "QT_QPA_PLATFORM,wayland"
@@ -85,7 +81,9 @@ in {
85 }; 81 };
86 82
87 cursor = { 83 cursor = {
84 use_cpu_buffer = true;
88 hide_on_key_press = true; 85 hide_on_key_press = true;
86 # no_hardware_cursors = 0;
89 }; 87 };
90 88
91 input = { 89 input = {
@@ -147,7 +145,10 @@ in {
147 "$mainMod SHIFT, up, swapwindow, u" 145 "$mainMod SHIFT, up, swapwindow, u"
148 "$mainMod SHIFT, down, swapwindow, d" 146 "$mainMod SHIFT, down, swapwindow, d"
149 147
150 "$mainMod, T, cyclenext" 148 "$mainMod, N, cyclenext, tiled"
149 "$mainMod, T, cyclenext, prev tiled"
150 "$mainMod SHIFT, N, swapnext"
151 "$mainMod SHIFT, T, swapnext, prev"
151 152
152 "$mainMod, G, focusmonitor, 0" 153 "$mainMod, G, focusmonitor, 0"
153 "$mainMod, C, focusmonitor, 1" 154 "$mainMod, C, focusmonitor, 1"
@@ -374,7 +375,7 @@ in {
374 "workspace special:pwvucontrol, class:^com\.saivert\.pwvucontrol$" 375 "workspace special:pwvucontrol, class:^com\.saivert\.pwvucontrol$"
375 "workspace special:easyeffects, class:^com\.github\.wwmm\.easyeffects$" 376 "workspace special:easyeffects, class:^com\.github\.wwmm\.easyeffects$"
376 "workspace special:blueman, class:^\.blueman-manager-wrapped$" 377 "workspace special:blueman, class:^\.blueman-manager-wrapped$"
377 "workspace special:keepass silent, class:^org\.keepassxc\.KeePassXC$, title:^(?!Unlock Database.*)(?!.*(Access Request|Passkey credentials))" 378 "workspace special:keepass silent, class:^org\.keepassxc\.KeePassXC$, title:^(?!Unlock Database.*)(?!.*(Access Request|Passkey credentials)).*$"
378 # "group set always lock invade, class:^Element$" 379 # "group set always lock invade, class:^Element$"
379 "workspace 2, class:^firefox$" 380 "workspace 2, class:^firefox$"
380 "workspace 4, class:^evince$" 381 "workspace 4, class:^evince$"
@@ -385,12 +386,12 @@ in {
385 "workspace 1, class:^thunderbird$" 386 "workspace 1, class:^thunderbird$"
386 "workspace 5, class:^virt-manager$" 387 "workspace 5, class:^virt-manager$"
387 "workspace 5, class:^qemu$" 388 "workspace 5, class:^qemu$"
388 "float, class:^org\.keepassxc\.KeePassXC$, title:Access Request$" 389 "float, class:^org\.keepassxc\.KeePassXC$, title:^.*Access Request$"
389 "center, class:^org\.keepassxc\.KeePassXC$, title:Access Request$" 390 "center, class:^org\.keepassxc\.KeePassXC$, title:^.*Access Request$"
390 "float, class:^org\.keepassxc\.KeePassXC$, title:Passkey credentials$" 391 "float, class:^org\.keepassxc\.KeePassXC$, title:^.*Passkey credentials$"
391 "center, class:^org\.keepassxc\.KeePassXC$, title:Passkey credentials$" 392 "center, class:^org\.keepassxc\.KeePassXC$, title:^.*Passkey credentials$"
392 "float, class:^org\.keepassxc\.KeePassXC$, title:^Unlock Database" 393 "float, class:^org\.keepassxc\.KeePassXC$, title:^Unlock Database.*$"
393 "center, class:^org\.keepassxc\.KeePassXC$, title:^Unlock Database" 394 "center, class:^org\.keepassxc\.KeePassXC$, title:^Unlock Database.*$"
394 "float, class:^xdg-desktop-portal-gtk$" 395 "float, class:^xdg-desktop-portal-gtk$"
395 "center, class:^xdg-desktop-portal-gtk$" 396 "center, class:^xdg-desktop-portal-gtk$"
396 397
diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix
index 33bf7ef2..c8400c28 100644
--- a/accounts/gkleen@sif/systemd.nix
+++ b/accounts/gkleen@sif/systemd.nix
@@ -322,6 +322,21 @@ in {
322 ExecStopPost = "${pkgs.coreutils}/bin/rm -rfv \"$CACHE_DIRECTORY\""; 322 ExecStopPost = "${pkgs.coreutils}/bin/rm -rfv \"$CACHE_DIRECTORY\"";
323 }; 323 };
324 }; 324 };
325 wpaperd = {
326 Install = {
327 WantedBy = ["graphical-session.target"];
328 };
329 Unit = {
330 BindsTo = ["graphical-session-pre.target"];
331 After = ["graphical-session-pre.target"];
332 };
333 Service = {
334 ExecStart = lib.getExe cfg.programs.wpaperd.package;
335 Type = "simple";
336 Restart = "always";
337 RestartSec = "2s";
338 };
339 };
325 } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" { 340 } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" {
326 Unit = { 341 Unit = {
327 Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; 342 Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"];
diff --git a/accounts/gkleen@sif/zshrc b/accounts/gkleen@sif/zshrc
index 75a4497c..e3f675a1 100644
--- a/accounts/gkleen@sif/zshrc
+++ b/accounts/gkleen@sif/zshrc
@@ -308,6 +308,7 @@ done < <(find ~/projects ~/uni -regextype posix-extended -maxdepth 2 -type d -re
308 308
309alias '..'='cd ..' 309alias '..'='cd ..'
310alias rzadm=$'tmpdir -i sh -c \'mkdir adm; sshfs gkleen@mgmt01:/adm adm\'' 310alias rzadm=$'tmpdir -i sh -c \'mkdir adm; sshfs gkleen@mgmt01:/adm adm\''
311alias mathcloud=$'tmpdir -i rclone mount --daemon mathcloud:// .'
311alias -g L='| less' 312alias -g L='| less'
312alias -g S='&> /dev/null' 313alias -g S='&> /dev/null'
313alias -g G='| grep' 314alias -g G='| grep'