refactor
This commit is contained in:
parent
01e9ae7271
commit
ca413f4079
3 changed files with 38 additions and 35 deletions
|
@ -3,23 +3,25 @@ _: {
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
|
|
||||||
xdg.enable = true;
|
xdg = {
|
||||||
xdg.mime.enable = true;
|
|
||||||
xdg.mimeApps = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultApplications = {
|
mime.enable = true;
|
||||||
"application/pdf" = ["org.gnome.Evince.desktop"];
|
mimeApps = {
|
||||||
"image/gif" = ["org.gnome.eog.desktop"];
|
enable = true;
|
||||||
"image/jpeg" = ["org.gnome.eog.desktop"];
|
defaultApplications = {
|
||||||
"image/png" = ["org.gnome.eog.desktop"];
|
"application/pdf" = ["org.gnome.Evince.desktop"];
|
||||||
"image/webp" = ["org.gnome.eog.desktop"];
|
"image/gif" = ["org.gnome.eog.desktop"];
|
||||||
|
"image/jpeg" = ["org.gnome.eog.desktop"];
|
||||||
|
"image/png" = ["org.gnome.eog.desktop"];
|
||||||
|
"image/webp" = ["org.gnome.eog.desktop"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
userDirs.enable = true;
|
||||||
|
|
||||||
|
desktopEntries."nixos-manual" = {
|
||||||
|
name = "NixOS Manual";
|
||||||
|
exec = "nixos-help";
|
||||||
|
noDisplay = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
xdg.userDirs.enable = true;
|
|
||||||
|
|
||||||
xdg.desktopEntries."nixos-manual" = {
|
|
||||||
name = "NixOS Manual";
|
|
||||||
exec = "nixos-help";
|
|
||||||
noDisplay = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
27
home/gtk.nix
27
home/gtk.nix
|
@ -21,8 +21,19 @@
|
||||||
package = pkgs.bibata-cursors;
|
package = pkgs.bibata-cursors;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
gtk.enable = true;
|
gtk = {
|
||||||
gtk.theme = gtkTheme;
|
enable = true;
|
||||||
|
theme = gtkTheme;
|
||||||
|
inherit cursorTheme;
|
||||||
|
inherit iconTheme;
|
||||||
|
gtk3.extraConfig = {
|
||||||
|
gtk-application-prefer-dark-theme = true;
|
||||||
|
};
|
||||||
|
gtk4.extraConfig = {
|
||||||
|
gtk-application-prefer-dark-theme = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home.sessionVariables.GTK_THEME = gtkTheme.name;
|
home.sessionVariables.GTK_THEME = gtkTheme.name;
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"gtk-4.0/assets".source = "${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/assets";
|
"gtk-4.0/assets".source = "${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/assets";
|
||||||
|
@ -30,18 +41,6 @@ in {
|
||||||
"gtk-4.0/gtk-dark.css".source = "${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/gtk-dark.css";
|
"gtk-4.0/gtk-dark.css".source = "${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/gtk-dark.css";
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk.cursorTheme = cursorTheme;
|
|
||||||
|
|
||||||
gtk.iconTheme = iconTheme;
|
|
||||||
|
|
||||||
gtk.gtk3.extraConfig = {
|
|
||||||
gtk-application-prefer-dark-theme = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
gtk.gtk4.extraConfig = {
|
|
||||||
gtk-application-prefer-dark-theme = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
dconf.settings = {
|
dconf.settings = {
|
||||||
"org/gnome/desktop/interface" = {
|
"org/gnome/desktop/interface" = {
|
||||||
color-scheme = "prefer-dark";
|
color-scheme = "prefer-dark";
|
||||||
|
|
|
@ -3,11 +3,13 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
boot.bootspec.enable = true;
|
boot = {
|
||||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
bootspec.enable = true;
|
||||||
boot.lanzaboote = {
|
loader.systemd-boot.enable = lib.mkForce false;
|
||||||
enable = true;
|
lanzaboote = {
|
||||||
pkiBundle = "/etc/secureboot";
|
enable = true;
|
||||||
|
pkiBundle = "/etc/secureboot";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
sbctl
|
sbctl
|
||||||
|
|
Loading…
Reference in a new issue