Update gnome.nix
This commit is contained in:
parent
153cc02e67
commit
4f019e03db
1 changed files with 42 additions and 31 deletions
|
|
@ -1,35 +1,46 @@
|
|||
# gnome.nix
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config = lib.mkIf (config.networking.hostName == "FredOS-Gaming" || config.networking.hostName == "FredOS-Macbook") {
|
||||
# Enable Gnome
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.gdm.enable = true;
|
||||
services.desktopManager.gnome.enable = true;
|
||||
|
||||
# Add extensions and packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnomeExtensions.blur-my-shell
|
||||
gnomeExtensions.just-perfection
|
||||
gnomeExtensions.appindicator
|
||||
gnomeExtensions.hot-edge
|
||||
gnomeExtensions.rounded-window-corners-reborn
|
||||
adwaita-icon-theme
|
||||
gnome-themes-extra # This includes Adwaita cursor theme
|
||||
];
|
||||
|
||||
# Set cursor theme
|
||||
environment.sessionVariables = {
|
||||
XCURSOR_THEME = "Adwaita";
|
||||
XCURSOR_SIZE = "24";
|
||||
XCURSOR_PATH = lib.mkForce [
|
||||
"${pkgs.adwaita-icon-theme}/share/icons"
|
||||
"$HOME/.icons"
|
||||
"$HOME/.local/share/icons"
|
||||
];
|
||||
};
|
||||
|
||||
programs.xwayland.enable = true;
|
||||
programs.dconf.enable = true;
|
||||
};
|
||||
config = lib.mkIf (config.networking.hostName == "FredOS-Gaming" || config.networking.hostName == "FredOS-Macbook") {
|
||||
# Enable Gnome
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.gdm.enable = true;
|
||||
services.desktopManager.gnome.enable = true;
|
||||
|
||||
# Add extensions and packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnomeExtensions.blur-my-shell
|
||||
gnomeExtensions.just-perfection
|
||||
gnomeExtensions.appindicator
|
||||
gnomeExtensions.hot-edge
|
||||
gnomeExtensions.rounded-window-corners-reborn
|
||||
adwaita-icon-theme
|
||||
gnome-themes-extra # This includes Adwaita cursor theme
|
||||
papirus-icon-theme # Add Papirus icon theme
|
||||
];
|
||||
|
||||
# Set cursor theme
|
||||
environment.sessionVariables = {
|
||||
XCURSOR_THEME = "Adwaita";
|
||||
XCURSOR_SIZE = "24";
|
||||
XCURSOR_PATH = lib.mkForce [
|
||||
"${pkgs.adwaita-icon-theme}/share/icons"
|
||||
"$HOME/.icons"
|
||||
"$HOME/.local/share/icons"
|
||||
];
|
||||
};
|
||||
|
||||
# Set icon theme via dconf
|
||||
programs.dconf.profiles.user.databases = [{
|
||||
settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
icon-theme = "Papirus"; # Use Papirus
|
||||
cursor-theme = "Adwaita";
|
||||
};
|
||||
};
|
||||
}];
|
||||
|
||||
programs.xwayland.enable = true;
|
||||
programs.dconf.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue