mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 13:11:53 -05:00
Aly Raffauf
1e1a02a5b3
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
70 lines
2.1 KiB
Nix
70 lines
2.1 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
osConfig,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./gnome
|
|
./hyprland
|
|
./sway
|
|
./wayland
|
|
];
|
|
|
|
config =
|
|
lib.mkIf (
|
|
config.ar.home.desktop.gnome.enable
|
|
|| config.ar.home.desktop.hyprland.enable
|
|
|| 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;
|
|
|
|
"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 = builtins.fetchGit {
|
|
url = "https://github.com/alyraffauf/wallpapers.git";
|
|
rev = "db4365ee8007970e0b52936e210f0a3d14b4d95f";
|
|
ref = "master";
|
|
};
|
|
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
}
|