refactor
This commit is contained in:
parent
01e9ae7271
commit
ca413f4079
3 changed files with 38 additions and 35 deletions
|
@ -3,9 +3,10 @@ _: {
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
|
|
||||||
xdg.enable = true;
|
xdg = {
|
||||||
xdg.mime.enable = true;
|
enable = true;
|
||||||
xdg.mimeApps = {
|
mime.enable = true;
|
||||||
|
mimeApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultApplications = {
|
defaultApplications = {
|
||||||
"application/pdf" = ["org.gnome.Evince.desktop"];
|
"application/pdf" = ["org.gnome.Evince.desktop"];
|
||||||
|
@ -15,11 +16,12 @@ _: {
|
||||||
"image/webp" = ["org.gnome.eog.desktop"];
|
"image/webp" = ["org.gnome.eog.desktop"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
xdg.userDirs.enable = true;
|
userDirs.enable = true;
|
||||||
|
|
||||||
xdg.desktopEntries."nixos-manual" = {
|
desktopEntries."nixos-manual" = {
|
||||||
name = "NixOS Manual";
|
name = "NixOS Manual";
|
||||||
exec = "nixos-help";
|
exec = "nixos-help";
|
||||||
noDisplay = true;
|
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,12 +3,14 @@
|
||||||
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;
|
||||||
|
lanzaboote = {
|
||||||
enable = true;
|
enable = true;
|
||||||
pkiBundle = "/etc/secureboot";
|
pkiBundle = "/etc/secureboot";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
sbctl
|
sbctl
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue