match nixos and home alyraffauf.desktop.enable state by default

This commit is contained in:
Aly Raffauf 2024-06-21 19:48:29 -04:00
parent 17880c1460
commit 24efb8c72c
2 changed files with 37 additions and 35 deletions

View file

@ -14,24 +14,15 @@ inputs: self: {
./theme.nix
];
nixpkgs = {
config = {
allowUnfree = true;
};
};
xdg.userDirs = {
config = lib.mkIf config.alyraffauf.desktop.enable {
dconf = {
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";
settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
};
gtk.gtk3.bookmarks = [
@ -44,14 +35,20 @@ inputs: self: {
"file://${config.home.homeDirectory}/sync"
];
xdg.dataFile."backgrounds/".source = ../files/wallpapers;
dconf = {
xdg = {
dataFile."backgrounds/".source = ../files/wallpapers;
userDirs = {
enable = true;
settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
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";
};
};
};

View file

@ -184,6 +184,11 @@
};
};
desktop = {
enable = lib.mkOption {
description = "Graphical desktop.";
default = osConfig.alyraffauf.desktop.enable;
type = lib.types.bool;
};
cinnamon.enable = lib.mkOption {
description = "Cinnamon with sane defaults";
default = osConfig.alyraffauf.desktop.cinnamon.enable;