diff options
| author | 2026-09-24 09:13:19 +0000 | |
|---|---|---|
| committer | 2026-09-24 09:13:19 +0000 | |
| commit | 8ac87f0b609b8f30b83382d1e4913ddc89e0893e (patch) | |
| tree | eff3a1eaedb59adabc7500fee95b2fe1d97f09af /modules/nixos | |
| parent | 2ec5dfa25cef3c4fea72336e4142e5c3b5981cc3 (diff) | |
| download | desktop-flake-8ac87f0b609b8f30b83382d1e4913ddc89e0893e.tar.gz desktop-flake-8ac87f0b609b8f30b83382d1e4913ddc89e0893e.tar.bz2 desktop-flake-8ac87f0b609b8f30b83382d1e4913ddc89e0893e.zip | |
Add Ghostty, GNOME Tweaks, and a GNOME dark-mode default
Ghostty joins the cross-platform desktop app list (Linux-only in nixpkgs
today, filtered out on darwin by the existing availableOn check).
GNOME Tweaks is gated on osConfig.services.desktopManager.gnome.enable
rather than plain isLinux, since modules/home/desktop-apps.nix is also
consumed by the standalone, non-NixOS tom@linux home-manager profile,
which has no GNOME involved. Every NixOS host now also gets a dconf
default of org/gnome/desktop/interface color-scheme=prefer-dark, left
unlocked so GNOME Settings can still switch back to light mode.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HngxrvqEzq8oBEBDtrYJyB
Diffstat (limited to 'modules/nixos')
| -rw-r--r-- | modules/nixos/common.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix index 1b34e4e..a219850 100644 --- a/modules/nixos/common.nix +++ b/modules/nixos/common.nix | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | { pkgs, lib, ... }: | 1 | { pkgs, lib, ... }: |
| 2 | { | 2 | { |
| 3 | nix.settings.experimental-features = [ "nix-command" "flakes" ]; | 3 | nix.settings.experimental-features = [ |
| 4 | "nix-command" | ||
| 5 | "flakes" | ||
| 6 | ]; | ||
| 4 | 7 | ||
| 5 | nix.gc = { | 8 | nix.gc = { |
| 6 | automatic = true; | 9 | automatic = true; |
| @@ -43,6 +46,14 @@ | |||
| 43 | services.displayManager.gdm.enable = true; | 46 | services.displayManager.gdm.enable = true; |
| 44 | services.desktopManager.gnome.enable = true; | 47 | services.desktopManager.gnome.enable = true; |
| 45 | 48 | ||
| 49 | # Defaults GNOME to dark mode without locking it - GNOME Settings' | ||
| 50 | # Appearance toggle still writes to the user's own dconf database, which | ||
| 51 | # is searched before this default database. | ||
| 52 | programs.dconf.enable = true; | ||
| 53 | programs.dconf.profiles.user.databases = [ | ||
| 54 | { settings."org/gnome/desktop/interface".color-scheme = "prefer-dark"; } | ||
| 55 | ]; | ||
| 56 | |||
| 46 | networking.networkmanager.enable = true; | 57 | networking.networkmanager.enable = true; |
| 47 | 58 | ||
| 48 | services.pipewire = { | 59 | services.pipewire = { |
