From d60aab3becb7ab94da057fc0127690919a8872f5 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 21 Jun 2024 21:29:40 -0400 Subject: [PATCH] home: relocate basic desktop settings to desktop/defualt.nix --- homeManagerModules/default.nix | 39 -------------------------- homeManagerModules/desktop/default.nix | 39 ++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/homeManagerModules/default.nix b/homeManagerModules/default.nix index 80b094cf..acfc821c 100644 --- a/homeManagerModules/default.nix +++ b/homeManagerModules/default.nix @@ -13,43 +13,4 @@ inputs: self: { ./services ./theme.nix ]; - - config = lib.mkIf config.alyraffauf.desktop.enable { - dconf = { - enable = true; - settings = { - "org/virt-manager/virt-manager/connections" = { - autoconnect = ["qemu:///system"]; - uris = ["qemu:///system"]; - }; - }; - }; - - gtk.gtk3.bookmarks = [ - "file://${config.xdg.userDirs.documents}" - "file://${config.xdg.userDirs.download}" - "file://${config.xdg.userDirs.music}" - "file://${config.xdg.userDirs.videos}" - "file://${config.xdg.userDirs.pictures}" - "file://${config.home.homeDirectory}/src" - "file://${config.home.homeDirectory}/sync" - ]; - - xdg = { - dataFile."backgrounds/".source = ../files/wallpapers; - userDirs = { - enable = true; - createDirectories = true; - desktop = lib.mkDefault "${config.home.homeDirectory}/dsktp"; - documents = lib.mkDefault "${config.home.homeDirectory}/docs"; - download = lib.mkDefault "${config.home.homeDirectory}/dwnlds"; - extraConfig = {XDG_SRC_DIR = "${config.home.homeDirectory}/src";}; - music = lib.mkDefault "${config.home.homeDirectory}/music"; - pictures = lib.mkDefault "${config.home.homeDirectory}/pics"; - publicShare = lib.mkDefault "${config.home.homeDirectory}/pub"; - templates = lib.mkDefault "${config.home.homeDirectory}/tmplts"; - videos = lib.mkDefault "${config.home.homeDirectory}/vids"; - }; - }; - }; } diff --git a/homeManagerModules/desktop/default.nix b/homeManagerModules/desktop/default.nix index 07e2b7df..c29039df 100644 --- a/homeManagerModules/desktop/default.nix +++ b/homeManagerModules/desktop/default.nix @@ -12,4 +12,43 @@ ./startupApps.nix ./waylandComp.nix ]; + + config = lib.mkIf config.alyraffauf.desktop.enable { + dconf = { + enable = true; + settings = { + "org/virt-manager/virt-manager/connections" = { + autoconnect = ["qemu:///system"]; + uris = ["qemu:///system"]; + }; + }; + }; + + gtk.gtk3.bookmarks = [ + "file://${config.xdg.userDirs.documents}" + "file://${config.xdg.userDirs.download}" + "file://${config.xdg.userDirs.music}" + "file://${config.xdg.userDirs.videos}" + "file://${config.xdg.userDirs.pictures}" + "file://${config.home.homeDirectory}/src" + "file://${config.home.homeDirectory}/sync" + ]; + + xdg = { + dataFile."backgrounds/".source = ../../files/wallpapers; + userDirs = { + enable = true; + createDirectories = true; + desktop = lib.mkDefault "${config.home.homeDirectory}/dsktp"; + documents = lib.mkDefault "${config.home.homeDirectory}/docs"; + download = lib.mkDefault "${config.home.homeDirectory}/dwnlds"; + extraConfig = {XDG_SRC_DIR = "${config.home.homeDirectory}/src";}; + music = lib.mkDefault "${config.home.homeDirectory}/music"; + pictures = lib.mkDefault "${config.home.homeDirectory}/pics"; + publicShare = lib.mkDefault "${config.home.homeDirectory}/pub"; + templates = lib.mkDefault "${config.home.homeDirectory}/tmplts"; + videos = lib.mkDefault "${config.home.homeDirectory}/vids"; + }; + }; + }; }