diff --git a/modules/desktop/sway.nix b/modules/desktop/sway.nix index bc04db3..7e6615a 100644 --- a/modules/desktop/sway.nix +++ b/modules/desktop/sway.nix @@ -1,4 +1,14 @@ { config, pkgs, lib, ... }: +let + swayConfig = pkgs.writeText "greetd-sway-config" '' + exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l; swaymsg exit" + bindsym Mod4+shift+e exec swaynag \ + -t warning \ + -m "what you want do :3" \ + -b "Poweroff" "systemctl poweroff" \ + -b "Reboot" "systemctl reboot" + ''; +in { environment.systemPackages = with pkgs; [ grim @@ -18,8 +28,9 @@ enable = true; settings = { default_session = { - command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway --unsupported-gpu"; - user = "greeter"; + command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd 'sway --unsupported-gpu'"; + #command = "${pkgs.sway}/bin/sway --unsupported-gpu --config ${swayConfig}"; + user = "regent"; }; }; }; diff --git a/services/forgejo.nix b/services/forgejo.nix index 2bd55bd..09936e5 100644 --- a/services/forgejo.nix +++ b/services/forgejo.nix @@ -18,6 +18,9 @@ in ROOT_URL = "https://git.nekomimi.pet"; LANDING_PAGE = "explore"; HTTP_PORT = 5000; + SSH_LISTEN_PORT = 2222; + SSH_PORT = 2222; + START_SSH_SERVER = true; }; # service.DISABLE_REGISTRATION = true; actions = {