home: Modularise

restic-rest-server
Simon Bruder 2020-11-07 14:32:31 +01:00
parent 0dff0b89c8
commit b2f6f52e7e
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
4 changed files with 40 additions and 32 deletions

View File

@ -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
'';
};
};
}

View 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
'';
};
}

View File

@ -0,0 +1,7 @@
{
home.file = {
".config/htop/htoprc".text = ''
color_scheme=6
'';
};
}

View File

@ -0,0 +1,10 @@
{
xdg.mimeApps = {
enable = true;
defaultApplications = {
"application/pdf" = "org.pwmt.zathura.desktop";
"image/png" = "mpv.desktop";
"image/jpeg" = "mpv.desktop";
};
};
}