mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:13:55 -05:00
match nixos and home alyraffauf.desktop.enable state by default
This commit is contained in:
parent
17880c1460
commit
24efb8c72c
|
@ -14,44 +14,41 @@ inputs: self: {
|
||||||
./theme.nix
|
./theme.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
config = lib.mkIf config.alyraffauf.desktop.enable {
|
||||||
config = {
|
dconf = {
|
||||||
allowUnfree = true;
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
"org/virt-manager/virt-manager/connections" = {
|
||||||
|
autoconnect = ["qemu:///system"];
|
||||||
|
uris = ["qemu:///system"];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
xdg.userDirs = {
|
gtk.gtk3.bookmarks = [
|
||||||
enable = true;
|
"file://${config.xdg.userDirs.documents}"
|
||||||
createDirectories = true;
|
"file://${config.xdg.userDirs.download}"
|
||||||
desktop = lib.mkDefault "${config.home.homeDirectory}/dsktp";
|
"file://${config.xdg.userDirs.music}"
|
||||||
documents = lib.mkDefault "${config.home.homeDirectory}/docs";
|
"file://${config.xdg.userDirs.videos}"
|
||||||
download = lib.mkDefault "${config.home.homeDirectory}/dwnlds";
|
"file://${config.xdg.userDirs.pictures}"
|
||||||
extraConfig = {XDG_SRC_DIR = "${config.home.homeDirectory}/src";};
|
"file://${config.home.homeDirectory}/src"
|
||||||
music = lib.mkDefault "${config.home.homeDirectory}/music";
|
"file://${config.home.homeDirectory}/sync"
|
||||||
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 = [
|
xdg = {
|
||||||
"file://${config.xdg.userDirs.documents}"
|
dataFile."backgrounds/".source = ../files/wallpapers;
|
||||||
"file://${config.xdg.userDirs.download}"
|
userDirs = {
|
||||||
"file://${config.xdg.userDirs.music}"
|
enable = true;
|
||||||
"file://${config.xdg.userDirs.videos}"
|
createDirectories = true;
|
||||||
"file://${config.xdg.userDirs.pictures}"
|
desktop = lib.mkDefault "${config.home.homeDirectory}/dsktp";
|
||||||
"file://${config.home.homeDirectory}/src"
|
documents = lib.mkDefault "${config.home.homeDirectory}/docs";
|
||||||
"file://${config.home.homeDirectory}/sync"
|
download = lib.mkDefault "${config.home.homeDirectory}/dwnlds";
|
||||||
];
|
extraConfig = {XDG_SRC_DIR = "${config.home.homeDirectory}/src";};
|
||||||
|
music = lib.mkDefault "${config.home.homeDirectory}/music";
|
||||||
xdg.dataFile."backgrounds/".source = ../files/wallpapers;
|
pictures = lib.mkDefault "${config.home.homeDirectory}/pics";
|
||||||
|
publicShare = lib.mkDefault "${config.home.homeDirectory}/pub";
|
||||||
dconf = {
|
templates = lib.mkDefault "${config.home.homeDirectory}/tmplts";
|
||||||
enable = true;
|
videos = lib.mkDefault "${config.home.homeDirectory}/vids";
|
||||||
settings = {
|
|
||||||
"org/virt-manager/virt-manager/connections" = {
|
|
||||||
autoconnect = ["qemu:///system"];
|
|
||||||
uris = ["qemu:///system"];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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