home: Modularise
This commit is contained in:
parent
0dff0b89c8
commit
b2f6f52e7e
|
@ -32,40 +32,11 @@ in
|
|||
imports = [
|
||||
./modules/alacritty.nix
|
||||
./modules/ankisyncd.nix
|
||||
./modules/gtk.nix
|
||||
./modules/htop.nix
|
||||
./modules/sway.nix
|
||||
./modules/xdg.nix
|
||||
./modules/zathura.nix
|
||||
];
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
font.name = "sans-serif 10";
|
||||
theme = {
|
||||
package = pkgs.gnome-themes-extra;
|
||||
name = "Adwaita";
|
||||
};
|
||||
iconTheme = {
|
||||
package = pkgs.gnome3.adwaita-icon-theme;
|
||||
name = "Adwaita";
|
||||
};
|
||||
# Tooltips remain visible when switching to another workspace
|
||||
gtk2.extraConfig = ''
|
||||
gtk-enable-tooltips = 0
|
||||
'';
|
||||
};
|
||||
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"application/pdf" = "org.pwmt.zathura.desktop";
|
||||
"image/png" = "mpv.desktop";
|
||||
"image/jpeg" = "mpv.desktop";
|
||||
};
|
||||
};
|
||||
|
||||
home.file = {
|
||||
".config/htop/htoprc".text = ''
|
||||
color_scheme=6
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
20
users/simon/modules/gtk.nix
Normal file
20
users/simon/modules/gtk.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
gtk = {
|
||||
enable = true;
|
||||
font.name = "sans-serif 10";
|
||||
theme = {
|
||||
package = pkgs.gnome-themes-extra;
|
||||
name = "Adwaita";
|
||||
};
|
||||
iconTheme = {
|
||||
package = pkgs.gnome3.adwaita-icon-theme;
|
||||
name = "Adwaita";
|
||||
};
|
||||
# Tooltips remain visible when switching to another workspace
|
||||
gtk2.extraConfig = ''
|
||||
gtk-enable-tooltips = 0
|
||||
'';
|
||||
};
|
||||
}
|
7
users/simon/modules/htop.nix
Normal file
7
users/simon/modules/htop.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
home.file = {
|
||||
".config/htop/htoprc".text = ''
|
||||
color_scheme=6
|
||||
'';
|
||||
};
|
||||
}
|
10
users/simon/modules/xdg.nix
Normal file
10
users/simon/modules/xdg.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"application/pdf" = "org.pwmt.zathura.desktop";
|
||||
"image/png" = "mpv.desktop";
|
||||
"image/jpeg" = "mpv.desktop";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue