nixcfg/homeManagerModules/desktop/default.nix

68 lines
2.1 KiB
Nix
Raw Permalink Normal View History

2024-03-28 19:52:15 -04:00
{
2024-04-07 22:16:33 -04:00
config,
lib,
osConfig,
2024-04-07 22:16:33 -04:00
...
}: {
imports = [
./hyprland
./sway
./wayland
];
2024-06-28 21:07:20 -04:00
config =
lib.mkIf (
config.ar.home.desktop.hyprland.enable
2024-06-28 21:07:20 -04:00
|| config.ar.home.desktop.sway.enable
) {
dconf = {
enable = true;
settings = {
"org/gtk/gtk4/settings/file-chooser".sort-directories-first = true;
"org/gtk/settings/file-chooser".sort-directories-first = true;
2024-07-03 00:40:04 -04:00
2024-06-28 21:07:20 -04:00
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
};
2024-06-28 21:07:20 -04:00
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"
]
++ lib.optional (
osConfig.ar.users.aly.syncthing.enable
&& (config.home.username == "aly")
2024-06-28 21:07:20 -04:00
) "file://${config.home.homeDirectory}/sync";
2024-06-28 21:07:20 -04:00
xdg = {
dataFile."backgrounds".source = builtins.fetchGit {
url = "https://github.com/alyraffauf/wallpapers.git";
2024-08-29 21:37:56 -04:00
rev = "c7d61966e339dd7efdda5ff176b91778086ccb73";
ref = "master";
};
2024-06-28 21:07:20 -04:00
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";
};
};
};
2024-03-28 19:52:15 -04:00
}