summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accounts/gkleen@sif/default.nix37
-rw-r--r--accounts/gkleen@sif/niri/default.nix2
-rw-r--r--hosts/sif/default.nix15
-rw-r--r--hosts/sif/greetd/wallpaper.pngbin132 -> 6073128 bytes
4 files changed, 49 insertions, 5 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix
index 2d2e25cb..7a2095ad 100644
--- a/accounts/gkleen@sif/default.nix
+++ b/accounts/gkleen@sif/default.nix
@@ -504,6 +504,10 @@ in {
504 [Unit] 504 [Unit]
505 After=graphical-session.target 505 After=graphical-session.target
506 ''; 506 '';
507 "systemd/user/home-manager.service.d/before-graphical-session.conf".text = ''
508 [Unit]
509 Before=graphical-session-pre.target
510 '';
507 }; 511 };
508 512
509 xdg.dataFile = { 513 xdg.dataFile = {
@@ -645,6 +649,39 @@ in {
645 color-scheme = "prefer-dark"; 649 color-scheme = "prefer-dark";
646 }; 650 };
647 }; 651 };
652
653 home.persistence."/.bcachefs/home/gkleen" = {
654 directories = [
655 "documents" "scad" "projects" "screenshots" "Downloads"
656 "media"
657
658 { directory = ".local/share/Steam"; method = "symlink"; }
659
660 ".mozilla" ".local/share/direnv" ".local/share/nix"
661 ".local/share/libvirt" ".local/share/remmina"
662 ".local/share/documents.unison" ".local/share/etesync-dav"
663 ".pki" ".wallpapers" ".thunderbird" ".zoom" ".gnupg" ".cups"
664 ".ssh" ".config/sops" ".config/freerdp" ".config/libvirt"
665 ".config/rclone" ".config/OpenSCAD"
666 ".config/var/lib/swtpm-localca" ".config/xournalpp"
667 ".config/borg" ".config/keepassxc" ".config/obs-studio"
668 ".config/remmina" ".config/glab-cli" ".config/google-chrome"
669 ".config/google-chrome-rainbow" ".config/Element"
670 ".config/Element-lmu" ".config/worktime" ".config/gh"
671 ".config/Youtube Music Desktop App"
672 ".config/emacs/auto-save-list" ".cache/worktime"
673 ];
674 files = [
675 "store.kdbx" "rz.kdbx"
676
677 ".config/swtpm-localca.options" ".config/swtpm-localca.conf"
678 ".config/swtpm_setup.conf" ".config/synadm.yaml"
679 ".config/zoom.conf" ".config/zoomus.conf" ".netrc"
680 ".store.kdbx.json" ".zsh_history"
681 ".config/gtk-2.0/gtkfilechooser.ini"
682 ];
683 allowOther = true;
684 };
648 }; 685 };
649 }; 686 };
650} 687}
diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix
index 93acc7d7..bf124211 100644
--- a/accounts/gkleen@sif/niri/default.nix
+++ b/accounts/gkleen@sif/niri/default.nix
@@ -19,7 +19,7 @@ let
19 19
20 workspaces_json="$(niri msg -j workspaces)" 20 workspaces_json="$(niri msg -j workspaces)"
21 workspace_output="$(jq -r --arg workspace_name "$workspace_name" '.[] | select(.name == $workspace_name) | .output' <<<"$workspaces_json")" 21 workspace_output="$(jq -r --arg workspace_name "$workspace_name" '.[] | select(.name == $workspace_name) | .output' <<<"$workspaces_json")"
22 active_workspace="$(jq -r --arg workspace_output "$workspace_output" '.[] | select(.output == $workspace_output and .is_active) | .id' <<<"$workspaces_json")" 22 # active_workspace="$(jq -r --arg workspace_output "$workspace_output" '.[] | select(.output == $workspace_output and .is_active) | .id' <<<"$workspaces_json")"
23 active_output="$(jq -r '.[] | select(.is_focused) | .output' <<<"$workspaces_json")" 23 active_output="$(jq -r '.[] | select(.is_focused) | .output' <<<"$workspaces_json")"
24 if [[ $workspace_output != "$active_output" ]]; then 24 if [[ $workspace_output != "$active_output" ]]; then
25 niri msg action move-workspace-to-monitor --reference "$workspace_name" "$active_output" 25 niri msg action move-workspace-to-monitor --reference "$workspace_name" "$active_output"
diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix
index 9de16de3..1cc88034 100644
--- a/hosts/sif/default.nix
+++ b/hosts/sif/default.nix
@@ -470,16 +470,16 @@ in {
470 exportConfiguration = true; 470 exportConfiguration = true;
471 }; 471 };
472 libinput.enable = true; 472 libinput.enable = true;
473 };
474 473
475 programs.niri.enable = true; 474 envfs.enable = false;
475 };
476 476
477 systemd.tmpfiles.settings = { 477 systemd.tmpfiles.settings = {
478 "10-localtime"."/etc/localtime".L.argument = "/.bcachefs/etc/localtime"; 478 "10-localtime"."/etc/localtime".L.argument = "/.bcachefs/etc/localtime";
479 479
480 "10-regreet"."/var/cache/regreet/cache.toml".C.argument = toString ((pkgs.formats.toml {}).generate "cache.toml" { 480 "10-regreet"."/var/cache/regreet/cache.toml".C.argument = toString ((pkgs.formats.toml {}).generate "cache.toml" {
481 last_user = "gkleen"; 481 last_user = "gkleen";
482 user_to_last_sess.gkleen = "Niri"; 482 user_to_last_sess.gkleen = "niri";
483 }); 483 });
484 }; 484 };
485 485
@@ -680,6 +680,8 @@ in {
680 light.enable = true; 680 light.enable = true;
681 wireshark.enable = true; 681 wireshark.enable = true;
682 dconf.enable = true; 682 dconf.enable = true;
683 niri.enable = true;
684 fuse.userAllowOther = true;
683 }; 685 };
684 686
685 services.pcscd.enable = true; 687 services.pcscd.enable = true;
@@ -711,6 +713,12 @@ in {
711 }; 713 };
712 }; 714 };
713 715
716 systemd.user.services.home-manager = {
717 before = [ "basic.target" ];
718 requiredBy = [ "basic.target" ];
719 unitConfig.DefaultDependencies = false;
720 };
721
714 environment.persistence."/.bcachefs" = { 722 environment.persistence."/.bcachefs" = {
715 hideMounts = true; 723 hideMounts = true;
716 directories = [ 724 directories = [
@@ -720,7 +728,6 @@ in {
720 "/var/lib/sops-nix" 728 "/var/lib/sops-nix"
721 "/var/lib/nixos" 729 "/var/lib/nixos"
722 "/var/lib/systemd" 730 "/var/lib/systemd"
723 "/home"
724 "/var/lib/chrony" 731 "/var/lib/chrony"
725 "/var/lib/fprint" 732 "/var/lib/fprint"
726 "/var/lib/bluetooth" 733 "/var/lib/bluetooth"
diff --git a/hosts/sif/greetd/wallpaper.png b/hosts/sif/greetd/wallpaper.png
index f6f6c818..20fc761a 100644
--- a/hosts/sif/greetd/wallpaper.png
+++ b/hosts/sif/greetd/wallpaper.png
Binary files differ