nixos/home-manager/home.nix

68 lines
1.8 KiB
Nix
Raw Normal View History

2025-12-04 11:31:38 +00:00
# settings/home.nix
{ config, pkgs, ... }:
{
# 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 ---
# These are packages installed for the user only, not system-wide.
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";
};
# Wallpaper settings
"org/gnome/desktop/background" = {
2025-12-05 19:13:16 +00:00
picture-uri = "file:///home/fred/.local/share/backgrounds/wallpaper.png";
picture-uri-dark = "file:///home/fred/.local/share/backgrounds/wallpaper.png";
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-04 11:31:38 +00:00
}