From 3a3d0b9b4955ab06b49ce6793e15542d5d0c4df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A7=84=EC=9A=B0=20=EC=A1=B0?= Date: Mon, 1 Dec 2025 04:57:26 +0000 Subject: [PATCH] =?UTF-8?q?configuration.nix=20=ED=8E=B8=EC=A7=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configuration.nix | 74 ++++++++++++++++++++--------------------------- 1 file changed, 31 insertions(+), 43 deletions(-) diff --git a/configuration.nix b/configuration.nix index 4fd410a..4690eac 100644 --- a/configuration.nix +++ b/configuration.nix @@ -110,48 +110,6 @@ NIXOS_OZONE_WL = "1"; }; - environment.etc = { - "greetd/niri.kdl" = { - text = '' - hotkey-overlay { - skip-at-startup - } - - environment { - DMS_RUN_GREETER "1" - } - - gestures { - hot-corners { - off - } - } - - layout { - background-color "#000000" - } - ''; - - # The UNIX file mode bits - mode = "0644"; - }; - "greetd/config.toml" = { - text = '' - [terminal] - vt = 1 - - [default_session] - user = "greeter" - command = "dms-greeter --command niri -C /etc/greetd/niri.kdl" - ### Uncomment the below line to run the greeter on Hyprland - # command = "dms-greeter --command Hyprland" - ### Uncomment to run the greeter on sway - # command = "dms-greeter --command sway" - ''; - mode = "0644"; - }; - }; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Some programs need SUID wrappers, can be configured further or are @@ -179,7 +137,37 @@ programs.dankMaterialShell.greeter = { enable = true; - compositor.name = "niri"; + compositor = { + name = "niri"; # Required. Can be also "hyprland" or "sway" + customConfig = '' + hotkey-overlay { + skip-at-startup + } + + environment { + DMS_RUN_GREETER "1" + } + + gestures { + hot-corners { + off + } + } + + layout { + background-color "#000000" + } + output "Virtual-1" { + mode "1920x1080@60" // Set resolution and refresh rate + scale 1 // No scaling (use 2 for HiDPI) + } + + cursor { + xcursor-theme "Transparent" + xcursor-size 25 + } + ''; + }; configHome = "/home/bangae1"; configFiles = [ "/home/bangae1/.config/DankMaterialShell/settings.json"