2025-12-04 11:31:38 +00:00
|
|
|
# settings/home.nix
|
2025-12-08 12:10:52 +00:00
|
|
|
{ config, pkgs, lib, ... }: # Add lib here!
|
2025-12-04 11:31:38 +00:00
|
|
|
{
|
|
|
|
|
# Define the state version for Home Manager
|
2025-12-05 19:06:47 +00:00
|
|
|
home.stateVersion = "25.11";
|
|
|
|
|
|
2025-12-04 11:31:38 +00:00
|
|
|
# --- Packages for the user ---
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
|
#
|
|
|
|
|
];
|
2025-12-04 12:41:17 +00:00
|
|
|
|
2025-12-05 19:13:16 +00:00
|
|
|
# --- Download wallpaper from your GitHub repo ---
|
|
|
|
|
home.file.".local/share/backgrounds/wallpaper.png".source =
|
|
|
|
|
"${builtins.fetchGit {
|
|
|
|
|
url = "https://github.com/ediblerope/nixos-config";
|
|
|
|
|
ref = "main";
|
|
|
|
|
}}/walls/wallpaper.png";
|
2025-12-04 13:46:20 +00:00
|
|
|
|
2025-12-05 19:06:47 +00:00
|
|
|
# --- GNOME/dconf Settings via Home Manager ---
|
|
|
|
|
dconf.settings = {
|
|
|
|
|
# Interface / theme
|
|
|
|
|
"org/gnome/desktop/interface" = {
|
|
|
|
|
color-scheme = "prefer-dark";
|
|
|
|
|
gtk-theme = "Adwaita-dark";
|
|
|
|
|
enable-hot-corners = false;
|
|
|
|
|
accent-color = "purple";
|
2025-12-10 23:12:53 +00:00
|
|
|
cursor-theme = "default";
|
2025-12-10 20:11:50 +00:00
|
|
|
cursor-size = 24;
|
2025-12-05 19:06:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Wallpaper settings
|
|
|
|
|
"org/gnome/desktop/background" = {
|
2025-12-05 19:59:39 +00:00
|
|
|
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";
|
2025-12-08 12:10:52 +00:00
|
|
|
};
|
2025-12-05 19:06:47 +00:00
|
|
|
|
|
|
|
|
# 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";
|
|
|
|
|
};
|
2025-12-08 12:10:52 +00:00
|
|
|
|
2025-12-10 13:24:22 +00:00
|
|
|
# Just Perfection extension
|
|
|
|
|
"org/gnome/shell/extensions/just-perfection" = {
|
|
|
|
|
window-demands-attention-focus = true;
|
|
|
|
|
};
|
|
|
|
|
|
2025-12-08 12:10:52 +00:00
|
|
|
# Rounded Window Corners extension
|
2025-12-08 13:53:12 +00:00
|
|
|
"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 {
|
2025-12-09 12:25:34 +00:00
|
|
|
left = mkUint32 4;
|
|
|
|
|
right = mkUint32 4;
|
|
|
|
|
top = mkUint32 4;
|
|
|
|
|
bottom = mkUint32 4;
|
2025-12-08 13:53:12 +00:00
|
|
|
}))
|
|
|
|
|
(mkEntry "keepRoundedCorners" (mkDict {
|
2025-12-08 13:46:57 +00:00
|
|
|
maximized = true;
|
|
|
|
|
fullscreen = true;
|
2025-12-08 13:53:12 +00:00
|
|
|
}))
|
|
|
|
|
(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))
|
|
|
|
|
];
|
2025-12-08 13:46:57 +00:00
|
|
|
};
|
2025-12-05 19:06:47 +00:00
|
|
|
};
|
2025-12-04 11:31:38 +00:00
|
|
|
}
|