From 4608d5ba14e003007e70da97fb2ca98a6b3defc9 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Tue, 26 Nov 2024 22:42:49 +0800 Subject: [PATCH] home(gnome): link monitors.xml --- home/gnome/impl/home.nix | 7 +++++++ home/gnome/impl/nixos.nix | 2 -- home/profile.nix | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/home/gnome/impl/home.nix b/home/gnome/impl/home.nix index 8e034b20..ff5b9eba 100644 --- a/home/gnome/impl/home.nix +++ b/home/gnome/impl/home.nix @@ -22,4 +22,11 @@ in mkIf cfg.enable { catppuccin.enable = mkForce false; home.pointerCursor = mkForce null; gtk.enable = false; + + home.persistence."/nix/persist/home/${config.home.username}" = { + removePrefixDirectory = true; + files = [ + (if config.specialisation != {} then "gnome/.config/monitors.xml" else "extern/.config/monitors.xml") + ]; + }; } diff --git a/home/gnome/impl/nixos.nix b/home/gnome/impl/nixos.nix index 56835110..e49c6ad2 100644 --- a/home/gnome/impl/nixos.nix +++ b/home/gnome/impl/nixos.nix @@ -46,6 +46,4 @@ in mkIf cfg.enable { ]); users.home.persist.directories = [ ".config/dconf" ]; - users.home.persist.files = [ ".config/monitors.xml" ]; - environment.persistence."/nix/persist/fhs".directories = [ ]; } diff --git a/home/profile.nix b/home/profile.nix index 6cf374df..ee64c439 100644 --- a/home/profile.nix +++ b/home/profile.nix @@ -139,6 +139,7 @@ in { home-manager.users = mapAttrs (name: opts: { imports = with inputs; cfg.homeModules ++ [ + impermanence.homeManagerModules.impermanence catppuccin.homeManagerModules.catppuccin ]; home.file.".face" = mkIf (opts.picture != null) {