From 5e362f92ab396ac92a1780c34e0e9529b712d64d Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 25 Sep 2025 18:35:00 -0400 Subject: [PATCH] gotty again --- configurations/nixos/pureintent/default.nix | 10 +++++++++- modules/home/all/gotty.nix | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/configurations/nixos/pureintent/default.nix b/configurations/nixos/pureintent/default.nix index bcfe525..f935bd1 100644 --- a/configurations/nixos/pureintent/default.nix +++ b/configurations/nixos/pureintent/default.nix @@ -1,4 +1,4 @@ -{ flake, ... }: +{ config, flake, pkgs, lib, ... }: let inherit (flake) inputs; @@ -17,6 +17,14 @@ in home-manager.sharedModules = [ (self + /modules/home/all/dropbox.nix) (self + /modules/home/all/vira.nix) + { + services.gotty = { + enable = true; + port = 9999; + command = "${lib.getExe config.programs.tmux.package} new-session -A -s gotty"; + write = true; + }; + } ]; nix.settings.sandbox = "relaxed"; diff --git a/modules/home/all/gotty.nix b/modules/home/all/gotty.nix index a596487..e136020 100644 --- a/modules/home/all/gotty.nix +++ b/modules/home/all/gotty.nix @@ -1,3 +1,5 @@ +# Limitations: +# - tmux session must be launched first outside of systemd. { config, lib, pkgs, ... }: with lib;