diff options
Diffstat (limited to 'modules/nixos/common.nix')
| -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 = { |
