Rename misc
to config
and change:
- GTK2 config is now placed in XDG config dir - XDG user dirs is overridden
This commit is contained in:
parent
0fc1d15c35
commit
594b3f986d
18
home/config/gtk.nix
Normal file
18
home/config/gtk.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
gtk = pkgs.lib.mkIf (!config.machineVars.headless) {
|
||||
enable = true;
|
||||
font = {
|
||||
name = "Droid Sans";
|
||||
};
|
||||
iconTheme = {
|
||||
package = pkgs.papirus-icon-theme;
|
||||
name = "Papirus";
|
||||
};
|
||||
theme = {
|
||||
package = pkgs.vimix-gtk-themes;
|
||||
name = "VimixDark";
|
||||
};
|
||||
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
||||
};
|
||||
}
|
18
home/config/xdg/default.nix
Normal file
18
home/config/xdg/default.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
imports = [ ./mimetypes.nix ];
|
||||
xdg = {
|
||||
enable = true;
|
||||
userDirs = {
|
||||
enable = true;
|
||||
desktop = "${config.home.homeDirectory}/Desktop";
|
||||
documents = "${config.home.homeDirectory}/Documents";
|
||||
download = "${config.home.homeDirectory}/Downloads";
|
||||
music = "${config.home.homeDirectory}/music";
|
||||
pictures = "${config.home.homeDirectory}/Pictures";
|
||||
publicShare = "${config.home.homeDirectory}/public";
|
||||
templates = "${config.home.homeDirectory}/templates";
|
||||
videos = "${config.home.homeDirectory}/Videos";
|
||||
};
|
||||
};
|
||||
}
|
@ -7,7 +7,8 @@ in {
|
||||
./shellOptions.nix
|
||||
./packages.nix
|
||||
|
||||
./misc/ssh/hosts/pvv.nix
|
||||
./config/ssh/hosts/pvv.nix
|
||||
./config/xdg
|
||||
|
||||
./programs/comma.nix
|
||||
./programs/firefox.nix
|
||||
@ -23,7 +24,7 @@ in {
|
||||
|
||||
inputs.secrets.outputs.nixosModule
|
||||
] ++ optionals graphics [
|
||||
./misc/mimetypes.nix
|
||||
./config/gtk.nix
|
||||
|
||||
./programs/alacritty.nix
|
||||
./programs/emacs
|
||||
@ -121,23 +122,6 @@ in {
|
||||
json.enable = true;
|
||||
};
|
||||
|
||||
xdg.enable = true;
|
||||
|
||||
gtk = mkIf graphics {
|
||||
enable = true;
|
||||
font = {
|
||||
name = "Droid Sans";
|
||||
};
|
||||
iconTheme = {
|
||||
package = pkgs.papirus-icon-theme;
|
||||
name = "Papirus";
|
||||
};
|
||||
theme = {
|
||||
package = pkgs.vimix-gtk-themes;
|
||||
name = "VimixDark";
|
||||
};
|
||||
};
|
||||
|
||||
qt = mkIf graphics {
|
||||
enable = true;
|
||||
platformTheme = "gtk";
|
||||
|
Loading…
Reference in New Issue
Block a user