configuration.nix 편집

This commit is contained in:
2025-12-01 04:57:26 +00:00
parent fea45e90cf
commit 3a3d0b9b49

View File

@@ -110,48 +110,6 @@
NIXOS_OZONE_WL = "1"; 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" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
@@ -179,7 +137,37 @@
programs.dankMaterialShell.greeter = { programs.dankMaterialShell.greeter = {
enable = true; 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"; configHome = "/home/bangae1";
configFiles = [ configFiles = [
"/home/bangae1/.config/DankMaterialShell/settings.json" "/home/bangae1/.config/DankMaterialShell/settings.json"