mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 01:31:54 -05:00
Aly Raffauf
130ecad2a4
Some checks failed
nix-build / default-build (push) Has been cancelled
nix-build / fallarbor-build (push) Has been cancelled
nix-build / lavaridge-build (push) Has been cancelled
nix-build / mauville-build (push) Has been cancelled
nix-build / petalburg-build (push) Has been cancelled
nix-build / rustboro-build (push) Has been cancelled
nix-build / slateport-build (push) Has been cancelled
nix-check / fmt-check (push) Has been cancelled
nix-check / eval-check (push) Has been cancelled
73 lines
2.2 KiB
Nix
73 lines
2.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
osConfig,
|
|
self,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./gnome
|
|
./hyprland
|
|
./river
|
|
./sway
|
|
./wayland
|
|
];
|
|
|
|
config =
|
|
lib.mkIf (
|
|
config.ar.home.desktop.hyprland.enable
|
|
|| config.ar.home.desktop.sway.enable
|
|
) {
|
|
dconf = {
|
|
enable = true;
|
|
settings = {
|
|
"org/gnome/desktop/wm/preferences".button-layout =
|
|
if config.ar.home.desktop.gnome.enable
|
|
then "appmenu:minimize,maximize,close"
|
|
else "";
|
|
|
|
"org/gnome/nm-applet".disable-connected-notifications = true;
|
|
"org/gtk/gtk4/settings/file-chooser".sort-directories-first = true;
|
|
"org/gtk/settings/file-chooser".sort-directories-first = true;
|
|
|
|
"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"
|
|
]
|
|
++ lib.optional (
|
|
osConfig.ar.users.aly.syncthing.enable
|
|
&& (config.home.username == "aly")
|
|
) "file://${config.home.homeDirectory}/sync";
|
|
|
|
xdg = {
|
|
dataFile."backgrounds".source = self.inputs.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";
|
|
};
|
|
};
|
|
};
|
|
}
|