home(gnome): link monitors.xml

This commit is contained in:
514fpv 2024-11-26 22:42:49 +08:00
parent dead3b78d3
commit 29ca6c9a85
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
3 changed files with 8 additions and 2 deletions

View file

@ -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")
];
};
}

View file

@ -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 = [ ];
}

View file

@ -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) {