Update gnome.nix
This commit is contained in:
parent
66596f6d36
commit
e006634621
1 changed files with 3 additions and 112 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
# gnome.nix
|
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) {
|
config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) {
|
||||||
|
|
@ -17,8 +16,8 @@
|
||||||
gnomeExtensions.hot-edge
|
gnomeExtensions.hot-edge
|
||||||
gnomeExtensions.rounded-window-corners-reborn
|
gnomeExtensions.rounded-window-corners-reborn
|
||||||
adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
gnome-themes-extra # This includes Adwaita cursor theme
|
gnome-themes-extra
|
||||||
papirus-icon-theme # Add Papirus icon theme
|
papirus-icon-theme
|
||||||
];
|
];
|
||||||
|
|
||||||
# Set cursor theme
|
# Set cursor theme
|
||||||
|
|
@ -36,7 +35,7 @@
|
||||||
programs.dconf.profiles.user.databases = [{
|
programs.dconf.profiles.user.databases = [{
|
||||||
settings = {
|
settings = {
|
||||||
"org/gnome/desktop/interface" = {
|
"org/gnome/desktop/interface" = {
|
||||||
icon-theme = "Papirus"; # Use Papirus
|
icon-theme = "Papirus";
|
||||||
cursor-theme = "Adwaita";
|
cursor-theme = "Adwaita";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -45,112 +44,4 @@
|
||||||
programs.xwayland.enable = true;
|
programs.xwayland.enable = true;
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Download wallpaper from GitHub repo and symlink it
|
|
||||||
home.file.".local/share/backgrounds/wallpaper.png".source =
|
|
||||||
let
|
|
||||||
wallpaperRepo = builtins.fetchGit {
|
|
||||||
url = "https://github.com/ediblerope/nixos-config";
|
|
||||||
ref = "main";
|
|
||||||
};
|
|
||||||
in "${wallpaperRepo}/walls/wallpaper.png";
|
|
||||||
|
|
||||||
# GNOME dconf
|
|
||||||
dconf.settings = {
|
|
||||||
# Interface / theme
|
|
||||||
"org/gnome/desktop/interface" = {
|
|
||||||
color-scheme = "prefer-dark";
|
|
||||||
gtk-theme = "Adwaita-dark";
|
|
||||||
enable-hot-corners = false;
|
|
||||||
accent-color = "purple";
|
|
||||||
cursor-theme = "Adwaita";
|
|
||||||
cursor-size = 24;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Wallpaper settings
|
|
||||||
"org/gnome/desktop/background" = {
|
|
||||||
picture-uri = "file://${config.home.homeDirectory}/.local/share/backgrounds/wallpaper.png";
|
|
||||||
picture-uri-dark = "file://${config.home.homeDirectory}/.local/share/backgrounds/wallpaper.png";
|
|
||||||
picture-options = "zoom";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Keyboard input sources
|
|
||||||
"org/gnome/desktop/input-sources" = {
|
|
||||||
sources = [
|
|
||||||
(lib.hm.gvariant.mkTuple [ "xkb" "gb" ])
|
|
||||||
(lib.hm.gvariant.mkTuple [ "xkb" "no" ])
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Window manager keybindings
|
|
||||||
"org/gnome/desktop/wm/keybindings" = {
|
|
||||||
close = ["<Super>q"];
|
|
||||||
toggle-fullscreen = ["<Super>f"];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Shell keybindings
|
|
||||||
"org/gnome/shell/keybindings" = {
|
|
||||||
show-screenshot-ui = ["<Shift><Super>s"];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Custom keybindings
|
|
||||||
"org/gnome/settings-daemon/plugins/media-keys" = {
|
|
||||||
home = ["<Super>e"];
|
|
||||||
control-center = ["<Super>i"];
|
|
||||||
custom-keybindings = [
|
|
||||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
|
|
||||||
name = "Terminal";
|
|
||||||
command = "kgx";
|
|
||||||
binding = "<Super>t";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Mouse acceleration
|
|
||||||
"org/gnome/desktop/peripherals/mouse" = {
|
|
||||||
accel-profile = "flat";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Just Perfection extension
|
|
||||||
"org/gnome/shell/extensions/just-perfection" = {
|
|
||||||
window-demands-attention-focus = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Rounded Window Corners extension
|
|
||||||
"org/gnome/shell/extensions/rounded-window-corners-reborn" = let
|
|
||||||
# Helpers to keep the config clean
|
|
||||||
mkUint32 = lib.hm.gvariant.mkUint32;
|
|
||||||
mkVariant = lib.hm.gvariant.mkVariant;
|
|
||||||
mkTuple = lib.hm.gvariant.mkTuple;
|
|
||||||
|
|
||||||
# Helper to create a Dictionary Entry from a key and value
|
|
||||||
mkEntry = name: value: lib.hm.gvariant.mkDictionaryEntry [name value];
|
|
||||||
|
|
||||||
# Helper to create a Variant containing a Dictionary (a{sv} or similar)
|
|
||||||
# Usage: mkDict { key = value; key2 = value2; }
|
|
||||||
mkDict = attrs: mkVariant (
|
|
||||||
lib.mapAttrsToList (name: value: mkEntry name value) attrs
|
|
||||||
);
|
|
||||||
|
|
||||||
in {
|
|
||||||
global-rounded-corner-settings = [
|
|
||||||
(mkEntry "padding" (mkDict {
|
|
||||||
left = mkUint32 4;
|
|
||||||
right = mkUint32 4;
|
|
||||||
top = mkUint32 4;
|
|
||||||
bottom = mkUint32 4;
|
|
||||||
}))
|
|
||||||
(mkEntry "keepRoundedCorners" (mkDict {
|
|
||||||
maximized = true;
|
|
||||||
fullscreen = true;
|
|
||||||
}))
|
|
||||||
(mkEntry "borderRadius" (mkVariant (mkUint32 7)))
|
|
||||||
(mkEntry "smoothing" (mkVariant 0.0))
|
|
||||||
(mkEntry "borderColor" (mkVariant (mkTuple [ 0.5 0.5 0.5 1.0 ])))
|
|
||||||
(mkEntry "enabled" (mkVariant true))
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue