diff --git a/.gitignore b/.gitignore index f0d296f..ac4c66b 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ diff --git a/machines/enka/default.nix b/machines/enka/default.nix index 3471797..919956d 100644 --- a/machines/enka/default.nix +++ b/machines/enka/default.nix @@ -24,6 +24,7 @@ ./firefox ./fuzzel ./git + ./greetd ./gtk ./helix ./hyprland diff --git a/machines/enka/greetd/default.nix b/machines/enka/greetd/default.nix new file mode 100644 index 0000000..cb26cec --- /dev/null +++ b/machines/enka/greetd/default.nix @@ -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 + ''; +} diff --git a/machines/enka/nushell/configuration.nu b/machines/enka/nushell/configuration.nu index 85afec9..88a07e1 100644 --- a/machines/enka/nushell/configuration.nu +++ b/machines/enka/nushell/configuration.nu @@ -1,7 +1,3 @@ -if (tty) == /dev/tty1 { - Hyprland -} - $env.config = { bracketed_paste: true buffer_editor: ""