This commit is contained in:
2025-06-24 18:11:42 +02:00
parent 7a538e379a
commit e3f46df30e
5 changed files with 22 additions and 55 deletions

21
modules/desktop/gnome.nix Normal file
View File

@@ -0,0 +1,21 @@
{ config, pkgs, lib, ... }:
{
# --- GNOME on Wayland --------------------------------------------------
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
# Electron/Chromium apps → Wayland
environment.sessionVariables.NIXOS_OZONE_WL = "1";
# # --- dconf service & keyboard repeat ----------------------------------
# programs.dconf.enable = true; # ← brings the `dconf` option into scope!
# dconf.settings = {
# "org/gnome/desktop/peripherals/keyboard" = {
# delay = lib.gvariant.mkUint32 200; # ms before first repeat
# repeat-interval = lib.gvariant.mkUint32 25; # ms between repeats ≈40 cps
# };
# };
}

View File

@@ -1,22 +0,0 @@
{ pkgs, lib, ... }:
{
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
services.greetd = {
enable = true;
settings.default_session = {
command = "Hyprland";
user = "lukas";
};
};
environment.systemPackages = with pkgs; [
hyprpicker hyprpaper hyprcursor
waybar swaylock grim slurp wl-clipboard kitty
];
}

View File

@@ -1,10 +0,0 @@
{ config, pkgs, ... }:
{
# gnome
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
# we use wayland -> hint electron apps to use wayland
environment.sessionVariables.NIXOS_OZONE_WL = "1";
}