2024-03-28 19:52:15 -04:00
|
|
|
{
|
2024-04-07 22:16:33 -04:00
|
|
|
config,
|
|
|
|
lib,
|
2024-06-25 16:58:51 -04:00
|
|
|
osConfig,
|
2024-09-06 17:31:20 -04:00
|
|
|
self,
|
2024-04-07 22:16:33 -04:00
|
|
|
...
|
|
|
|
}: {
|
2024-05-10 19:09:48 -04:00
|
|
|
imports = [
|
2024-09-18 12:44:14 -04:00
|
|
|
./gnome
|
2024-05-26 01:45:46 -04:00
|
|
|
./hyprland
|
2024-05-10 19:09:48 -04:00
|
|
|
./sway
|
2024-07-21 20:59:03 -04:00
|
|
|
./wayland
|
2024-05-10 19:09:48 -04:00
|
|
|
];
|
2024-06-21 21:29:40 -04:00
|
|
|
|
2024-06-28 21:07:20 -04:00
|
|
|
config =
|
|
|
|
lib.mkIf (
|
2024-07-28 15:56:41 -04:00
|
|
|
config.ar.home.desktop.hyprland.enable
|
2024-06-28 21:07:20 -04:00
|
|
|
|| config.ar.home.desktop.sway.enable
|
|
|
|
) {
|
|
|
|
dconf = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
2024-09-18 12:44:14 -04:00
|
|
|
"org/gnome/desktop/wm/preferences".button-layout =
|
2024-10-25 15:05:48 -04:00
|
|
|
if (config.ar.home.desktop.gnome.enable || config.ar.home.desktop.kde.enable)
|
2024-09-18 12:44:14 -04:00
|
|
|
then "appmenu:minimize,maximize,close"
|
|
|
|
else "";
|
|
|
|
|
|
|
|
"org/gnome/nm-applet".disable-connected-notifications = true;
|
2024-06-28 21:07:20 -04:00
|
|
|
"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-21 21:29:40 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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 (
|
2024-07-08 00:58:52 -04:00
|
|
|
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-21 21:29:40 -04:00
|
|
|
|
2024-06-28 21:07:20 -04:00
|
|
|
xdg = {
|
2024-09-06 17:31:20 -04:00
|
|
|
dataFile."backgrounds".source = self.inputs.wallpapers;
|
2024-07-09 19:17:53 -04:00
|
|
|
|
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-06-21 21:29:40 -04:00
|
|
|
};
|
|
|
|
};
|
2024-03-28 19:52:15 -04:00
|
|
|
}
|