mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 22:11:54 -05:00
match nixos and home alyraffauf.desktop.enable state by default
This commit is contained in:
parent
17880c1460
commit
24efb8c72c
|
@ -14,24 +14,15 @@ inputs: self: {
|
||||||
./theme.nix
|
./theme.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
config = lib.mkIf config.alyraffauf.desktop.enable {
|
||||||
config = {
|
dconf = {
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.userDirs = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
createDirectories = true;
|
settings = {
|
||||||
desktop = lib.mkDefault "${config.home.homeDirectory}/dsktp";
|
"org/virt-manager/virt-manager/connections" = {
|
||||||
documents = lib.mkDefault "${config.home.homeDirectory}/docs";
|
autoconnect = ["qemu:///system"];
|
||||||
download = lib.mkDefault "${config.home.homeDirectory}/dwnlds";
|
uris = ["qemu:///system"];
|
||||||
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";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk.gtk3.bookmarks = [
|
gtk.gtk3.bookmarks = [
|
||||||
|
@ -44,14 +35,20 @@ inputs: self: {
|
||||||
"file://${config.home.homeDirectory}/sync"
|
"file://${config.home.homeDirectory}/sync"
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.dataFile."backgrounds/".source = ../files/wallpapers;
|
xdg = {
|
||||||
|
dataFile."backgrounds/".source = ../files/wallpapers;
|
||||||
dconf = {
|
userDirs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
createDirectories = true;
|
||||||
"org/virt-manager/virt-manager/connections" = {
|
desktop = lib.mkDefault "${config.home.homeDirectory}/dsktp";
|
||||||
autoconnect = ["qemu:///system"];
|
documents = lib.mkDefault "${config.home.homeDirectory}/docs";
|
||||||
uris = ["qemu:///system"];
|
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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -184,6 +184,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
desktop = {
|
desktop = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
description = "Graphical desktop.";
|
||||||
|
default = osConfig.alyraffauf.desktop.enable;
|
||||||
|
type = lib.types.bool;
|
||||||
|
};
|
||||||
cinnamon.enable = lib.mkOption {
|
cinnamon.enable = lib.mkOption {
|
||||||
description = "Cinnamon with sane defaults";
|
description = "Cinnamon with sane defaults";
|
||||||
default = osConfig.alyraffauf.desktop.cinnamon.enable;
|
default = osConfig.alyraffauf.desktop.cinnamon.enable;
|
||||||
|
|
Loading…
Reference in a new issue