1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-31 03:57:44 +00:00

Use greetd

This commit is contained in:
RGBCube 2023-11-28 19:00:22 +03:00
parent 7df423ec61
commit cbba9fdb09
No known key found for this signature in database
4 changed files with 37 additions and 4 deletions

1
.gitignore vendored
View file

@ -10,6 +10,7 @@
!machines/enka/firefox/
!machines/enka/fuzzel/
!machines/enka/git/
!machines/enka/greetd/
!machines/enka/gtk/
!machines/enka/helix/
!machines/enka/hyprland/

View file

@ -24,6 +24,7 @@
./firefox
./fuzzel
./git
./greetd
./gtk
./helix
./hyprland

View file

@ -0,0 +1,35 @@
{ pkgs, upkgs, systemConfiguration, enabled, ... }:
let
hyprlandBin = "${upkgs.hyprland}/bin";
hyprlandConfig = pkgs.writeText "hyprland.conf" ''
misc {
force_default_wallpaper = 0
}
animations {
enabled = 0
first_launch_animation = 0
}
workspace = 1, default: true, gapsout: 0, gapsin: 0, border: false, decorate: false
exec-once = systemctl --user stop waybar.service
exec-once = [workspace 1; fullscreen; noanim] ${pkgs.greetd.gtkgreet}/bin/gtkgreet --layer-shell --command Hyprland; ${hyprlandBin}}/bin/hyprctl dispatch exit
exec-once = ${hyprlandBin}/bin/hyprctl dispatch focuswindow gtkgreet
'';
in systemConfiguration {
services.greetd = enabled {
settings.default_session = {
command = "${hyprlandBin}/Hyprland --config ${hyprlandConfig}";
user = "nixos";
};
};
environment.etc."greetd/environments".text = ''
Hyprland
'';
}

View file

@ -1,7 +1,3 @@
if (tty) == /dev/tty1 {
Hyprland
}
$env.config = {
bracketed_paste: true
buffer_editor: ""