configuration.nix 편집
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user