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

View File

@@ -1,22 +0,0 @@
{ config, pkgs, ... }:
{
wayland.windowManager.hyprland = {
enable = true;
settings = {
monitor = ",preferred,auto,1";
exec-once = "hyprpaper & waybar";
input = {
kb_layout = "de";
follow_mouse = 1;
};
bind = [
"SUPER,Return,exec,alacritty"
"SUPER,q,killactive"
"SUPER,space,togglefloating"
];
decoration.rounding = 8;
misc.vfr = true;
};
};
}

View File

@@ -2,7 +2,7 @@
imports = [ imports = [
./hardware.nix ./hardware.nix
../../users/lukas.nix ../../users/lukas.nix
../../modules/desktop/plasma.nix ../../modules/desktop/gnome.nix
../../modules/input/katana.nix ../../modules/input/katana.nix
../../modules/networking/networkmanager.nix ../../modules/networking/networkmanager.nix
../../modules/system/locale.nix ../../modules/system/locale.nix

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";
}