Update nixos-desktop to gnome

This commit is contained in:
iFargle 2024-01-01 20:42:30 +09:00
parent 0db7be2eaf
commit 2b0008cb3c
4 changed files with 18 additions and 71 deletions

View file

@ -50,7 +50,7 @@
osaka-linode-01 = libx.mkHost { hostname = "osaka-linode-01"; type = "small"; };
framework-server = libx.mkHost { hostname = "framework-server"; };
nuc-server = libx.mkHost { hostname = "nuc-server"; };
nixos-desktop = libx.mkHost { hostname = "nixos-desktop"; desktop = "plasma6"; gpu = "nvidia"; };
nixos-desktop = libx.mkHost { hostname = "nixos-desktop"; desktop = "gnome"; gpu = "nvidia"; };
nixos-framework = libx.mkHost { hostname = "nixos-framework"; desktop = "hyprland"; gpu = "amd"; theme = "green"; };
backups-rpi4 = libx.mkHost { hostname = "backups-rpi4"; platform = "aarch64-linux"; type = "small"; };
piaware-rpi4 = libx.mkHost { hostname = "piaware-rpi4"; platform = "aarch64-linux"; type = "small"; };
@ -60,7 +60,7 @@
"albert@osaka-linode-01" = libx.mkHome { hostname = "osaka-linode-01"; };
"albert@framework-server" = libx.mkHome { hostname = "framework-server"; };
"albert@nuc-server" = libx.mkHome { hostname = "nuc-server"; };
"albert@nixos-desktop" = libx.mkHome { hostname = "nixos-desktop"; desktop = "plasma6"; };
"albert@nixos-desktop" = libx.mkHome { hostname = "nixos-desktop"; desktop = "gnome"; };
"albert@nixos-framework" = libx.mkHome { hostname = "nixos-framework"; desktop = "hyprland"; theme = "green"; };
"albert@backups-rpi4" = libx.mkHome { hostname = "backups-rpi4"; platform = "aarch64-linux"; type = "small"; };
"albert@piaware-rpi4" = libx.mkHome { hostname = "piaware-rpi4"; platform = "aarch64-linux"; type = "small"; };

View file

@ -1,63 +1,4 @@
# Generated via dconf2nix: https://github.com/gvolpe/dconf2nix
{ lib, hostname, username, ... }: with lib.hm.gvariant;
let
# General Theming
font = "FontAwesome Bold 11";
font-doc = "FontAwesome Regular 11";
font-mono = "JetBrainsMono Nerd Font Propo Medium 11";
{ lib, hostname, username, ... }: with lib.hm.gvariant; {
# Day Variant
day-wallpaper = "file:///etc/nixos/git/wallpapers/default/wallpaper1.png";
day-gtk-theme = "Fluent-Light-compact";
day-shell-theme = "Fluent-compact";
day-icon-theme = "Papirus";
# Night Variant
night-wallpaper = "file:///etc/nixos/git/wallpapers/default/wallpaper1.png";
night-gtk-theme = "Fluent-Dark-compact";
night-shell-theme = "Fluent-Dark-compact";
night-icon-theme = "Papirus-Dark";
in {
# Gnome GTK Settings
gtk.theme = "${night-gtk-theme}";
# Gnome DCONF Settings
dconf.settings = {
"org/gnome/desktop/background" = {
picture-uri = "${day-wallpaper}";
picture-uri-dark = "${night-wallpaper}";
};
"org/gnome/shell/extensions/nightthemeswitcher/gtk-variants" = {
enabled = true;
day = "${day-gtk-theme}";
night = "${night-gtk-theme}";
};
"org/gnome/shell/extensions/nightthemeswitcher/icon-variants" = {
enabled = true;
day = "${day-icon-theme}";
night = "${night-icon-theme}";
};
"org/gnome/shell/extensions/nightthemeswitcher/shell-variants" = {
enabled = true;
day = "${day-shell-theme}";
night = "${night-shell-theme}";
};
"org/gnome/desktop/interface" = {
clock-show-date = true;
clock-show-weekday = false;
color-scheme = "prefer-light";
font-antialiasing = "rgba";
font-hinting = "slight";
gtk-theme = "${day-gtk-theme}";
icon-theme = "${night-icon-theme}";
monospace-font-name = "${font-mono}";
font-name = "${font}";
document-font-name = "${font-doc}";
show-battery-percentage = false;
};
};
}

View file

@ -67,7 +67,7 @@
environment.systemPackages = with pkgs; [
# Gnome Extensions
gnomeExtensions.tiling-assistant
gnomeExtensions.forge
gnomeExtensions.dash-to-dock
gnomeExtensions.blur-my-shell
gnomeExtensions.vitals
@ -82,19 +82,20 @@
papirus-icon-theme
dconf2nix # https://github.com/gvolpe/dconf2nix
# Tweak libadwaita themes
# gradience
# adw-gtk3
gradience
adw-gtk3
gnome.gnome-session
];
imports = [
# Gnome Themes
./themes/gruvbox.nix
./themes/tokyo-night.nix
./themes/nordic.nix
./themes/vimix.nix
./themes/fluent.nix
./themes/arc.nix
# ./themes/gruvbox.nix
# ./themes/tokyo-night.nix
# ./themes/nordic.nix
# ./themes/vimix.nix
# ./themes/fluent.nix
# You may need to edit which theme you're using in dconf.nix if you remove themes
];
}

View file

@ -0,0 +1,5 @@
{ config, pkgs, ... }: {
environment.systemPackages = with pkgs; [
arc-theme
];
}