mirror of
https://github.com/RGBCube/ncc
synced 2025-07-31 03:57:44 +00:00
Use greetd
This commit is contained in:
parent
7df423ec61
commit
cbba9fdb09
4 changed files with 37 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -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/
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
./firefox
|
||||
./fuzzel
|
||||
./git
|
||||
./greetd
|
||||
./gtk
|
||||
./helix
|
||||
./hyprland
|
||||
|
|
35
machines/enka/greetd/default.nix
Normal file
35
machines/enka/greetd/default.nix
Normal 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
|
||||
'';
|
||||
}
|
|
@ -1,7 +1,3 @@
|
|||
if (tty) == /dev/tty1 {
|
||||
Hyprland
|
||||
}
|
||||
|
||||
$env.config = {
|
||||
bracketed_paste: true
|
||||
buffer_editor: ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue