summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-08-22 14:48:24 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-08-22 14:48:24 +0200
commit567c22812fe1fbe525f1732661d253b3902710a9 (patch)
treeb78ce8007f265ed9d542f7992beca14a12327dec /accounts/gkleen@sif
parentd88404d51a6acd082e9917467862105ff1266367 (diff)
downloadnixos-567c22812fe1fbe525f1732661d253b3902710a9.tar
nixos-567c22812fe1fbe525f1732661d253b3902710a9.tar.gz
nixos-567c22812fe1fbe525f1732661d253b3902710a9.tar.bz2
nixos-567c22812fe1fbe525f1732661d253b3902710a9.tar.xz
nixos-567c22812fe1fbe525f1732661d253b3902710a9.zip
...
Diffstat (limited to 'accounts/gkleen@sif')
-rw-r--r--accounts/gkleen@sif/default.nix25
-rw-r--r--accounts/gkleen@sif/emacs.el6
-rw-r--r--accounts/gkleen@sif/hyprland.nix3
-rw-r--r--accounts/gkleen@sif/libvirt/default.nix13
4 files changed, 40 insertions, 7 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix
index 09864bb2..61769adb 100644
--- a/accounts/gkleen@sif/default.nix
+++ b/accounts/gkleen@sif/default.nix
@@ -99,6 +99,7 @@ in {
99 99
100 home-manager.users.${userName} = { 100 home-manager.users.${userName} = {
101 imports = [ 101 imports = [
102 ./libvirt
102 flakeInputs.nix-index-database.hmModules.nix-index 103 flakeInputs.nix-index-database.hmModules.nix-index
103 flakeInputs.impermanence.nixosModules.home-manager.impermanence 104 flakeInputs.impermanence.nixosModules.home-manager.impermanence
104 ]; 105 ];
@@ -171,7 +172,7 @@ in {
171 edit-server mediawiki editorconfig typescript-mode 172 edit-server mediawiki editorconfig typescript-mode
172 markdown-mode nftables-mode rustic lsp-mode lsp-ui 173 markdown-mode nftables-mode rustic lsp-mode lsp-ui
173 direnv company projectile tomorrow-night-paradise-theme 174 direnv company projectile tomorrow-night-paradise-theme
174 treesit-grammars.with-all-grammars 175 treesit-grammars.with-all-grammars magit-delta
175 ]; 176 ];
176 overrides = self: super: { 177 overrides = self: super: {
177 tomorrow-night-paradise-theme = super.trivialBuild { 178 tomorrow-night-paradise-theme = super.trivialBuild {
@@ -275,7 +276,7 @@ in {
275 output = "eDP-1"; 276 output = "eDP-1";
276 modules-left = [ "hyprland/workspaces" ]; 277 modules-left = [ "hyprland/workspaces" ];
277 modules-center = [ "hyprland/window" ]; 278 modules-center = [ "hyprland/window" ];
278 modules-right = [ "custom/weather" "custom/keymap" "clock" "privacy" "tray" "wireplumber" "backlight" "battery" "idle_inhibitor" ]; 279 modules-right = [ "custom/weather" "custom/keymap" "privacy" "tray" "wireplumber" "backlight" "battery" "idle_inhibitor" "clock" ];
279 280
280 "custom/weather" = { 281 "custom/weather" = {
281 format = "{}"; 282 format = "{}";
@@ -301,7 +302,7 @@ in {
301 if keymap == "English (programmer Dvorak)": 302 if keymap == "English (programmer Dvorak)":
302 short = "dvp" 303 short = "dvp"
303 elif keymap == "English (US)": 304 elif keymap == "English (US)":
304 short = "us" 305 short = "<span color=\"#ffffff\">us</span>"
305 print(json.dumps({'text': short, 'tooltip': keymap}, separators=(',', ':')), flush=True) # noqa: E501 306 print(json.dumps({'text': short, 'tooltip': keymap}, separators=(',', ':')), flush=True) # noqa: E501
306 307
307 308
@@ -471,6 +472,13 @@ in {
471 472
472 #custom-weather, #custom-keymap { 473 #custom-weather, #custom-keymap {
473 color: @grey; 474 color: @grey;
475 margin: 0 5px;
476 }
477 #custom-weather {
478 margin-right: 3px;
479 }
480 #custom-keymap {
481 margin-left: 3px;
474 } 482 }
475 483
476 #tray { 484 #tray {
@@ -480,6 +488,13 @@ in {
480 color: @grey; 488 color: @grey;
481 margin: 0 5px 0 2px; 489 margin: 0 5px 0 2px;
482 } 490 }
491 #idle_inhibitor {
492 margin-right: 2px;
493 margin-left: 3px;
494 }
495 #battery {
496 margin-right: 3px;
497 }
483 #battery.discharging { 498 #battery.discharging {
484 color: @white; 499 color: @white;
485 } 500 }
@@ -505,7 +520,7 @@ in {
505 margin: -1px 2px 0px 5px; 520 margin: -1px 2px 0px 5px;
506 } 521 }
507 #clock { 522 #clock {
508 margin-right: 5px; 523 /* margin-right: 5px; */
509 } 524 }
510 ''; 525 '';
511 }; 526 };
@@ -691,7 +706,6 @@ in {
691 ]; 706 ];
692 707
693 file = { 708 file = {
694 ".emacs.d/init.el".source = ./emacs.el;
695 ".backup-munin".source = ./backup-patterns; 709 ".backup-munin".source = ./backup-patterns;
696 ".mozilla/firefox/default/chrome/userChrome.css".source = ./firefox-chrome.css; 710 ".mozilla/firefox/default/chrome/userChrome.css".source = ./firefox-chrome.css;
697 ".mozilla/firefox/default/chrome/userContent.css".source = ./firefox-content.css; 711 ".mozilla/firefox/default/chrome/userContent.css".source = ./firefox-content.css;
@@ -757,6 +771,7 @@ in {
757 }; 771 };
758 }; 772 };
759 }; 773 };
774 "emacs/init.el".source = ./emacs.el;
760 }; 775 };
761 776
762 xdg.dataFile = { 777 xdg.dataFile = {
diff --git a/accounts/gkleen@sif/emacs.el b/accounts/gkleen@sif/emacs.el
index 7a8eb8f5..b1b1b198 100644
--- a/accounts/gkleen@sif/emacs.el
+++ b/accounts/gkleen@sif/emacs.el
@@ -38,6 +38,8 @@
38 38
39(evil-set-undo-system 'undo-tree) 39(evil-set-undo-system 'undo-tree)
40 40
41(add-hook 'magit-mode-hook (lambda () (magit-delta-mode +1)))
42
41(global-set-key (kbd "RET") 'newline-and-indent) 43(global-set-key (kbd "RET") 'newline-and-indent)
42(global-set-key (kbd "M-g") 'magit-status) 44(global-set-key (kbd "M-g") 'magit-status)
43(global-set-key (kbd "M-?") 'vc-git-grep) 45(global-set-key (kbd "M-?") 'vc-git-grep)
@@ -54,8 +56,8 @@
54 56
55(global-set-key (kbd "C-x K") 'kill-current-buffer) 57(global-set-key (kbd "C-x K") 'kill-current-buffer)
56 58
57(setq backup-directory-alist `(("." . "~/.saves"))) 59(setq backup-directory-alist `(("." . "~/.local/state/emacs/saves")))
58(setq undo-tree-history-directory-alist `(("." . "~/.undo"))) 60(setq undo-tree-history-directory-alist `(("." . "~/.local/state/emacs/undo")))
59(setq delete-old-versions t 61(setq delete-old-versions t
60 kept-new-versions 6 62 kept-new-versions 6
61 kept-old-versions 2 63 kept-old-versions 2
diff --git a/accounts/gkleen@sif/hyprland.nix b/accounts/gkleen@sif/hyprland.nix
index 9c33fda1..3b2f8879 100644
--- a/accounts/gkleen@sif/hyprland.nix
+++ b/accounts/gkleen@sif/hyprland.nix
@@ -297,6 +297,9 @@ in {
297 "workspace 4, class:^imv$" 297 "workspace 4, class:^imv$"
298 "workspace 4, class:^org\.pwmt\.zathura$" 298 "workspace 4, class:^org\.pwmt\.zathura$"
299 "workspace 10, class:^mpv$" 299 "workspace 10, class:^mpv$"
300 "workspace 1, class:^Element$"
301 "workspace 1, class:^thunderbird$"
302 "workspace 5, class:^virt-manager$"
300 "float, class:^org\.keepassxc\.KeePassXC$, title:Access Request$" 303 "float, class:^org\.keepassxc\.KeePassXC$, title:Access Request$"
301 "center, class:^org\.keepassxc\.KeePassXC$, title:Access Request$" 304 "center, class:^org\.keepassxc\.KeePassXC$, title:Access Request$"
302 "float, class:^org\.keepassxc\.KeePassXC$, title:^Unlock Database" 305 "float, class:^org\.keepassxc\.KeePassXC$, title:^Unlock Database"
diff --git a/accounts/gkleen@sif/libvirt/default.nix b/accounts/gkleen@sif/libvirt/default.nix
new file mode 100644
index 00000000..a93a2266
--- /dev/null
+++ b/accounts/gkleen@sif/libvirt/default.nix
@@ -0,0 +1,13 @@
1{ flakeInputs, ... }:
2
3with flakeInputs.nixVirt.lib;
4
5{
6 config = {
7 virtualisation.libvirt = {
8 enable = true;
9 connections."qemu:///session" = {
10 };
11 };
12 };
13}