diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2025-08-30 13:23:56 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2025-08-30 13:38:55 +0200 |
| commit | 230bc2319c9e068638ca2191759617b9a331f357 (patch) | |
| tree | 2371a3d7ed295750b479aa94a2a5ecb9d9e47b8d | |
| parent | 4b295a2639f68a18843bc45039b9c7a7fbbfa075 (diff) | |
nixos: add domain name to window names
| -rw-r--r-- | modules/nixos/personal/environment.nix | 19 | ||||
| -rw-r--r-- | modules/nixos/personal/networking/default.nix | 3 |
2 files changed, 12 insertions, 10 deletions
diff --git a/modules/nixos/personal/environment.nix b/modules/nixos/personal/environment.nix index 5014f14..3b07a69 100644 --- a/modules/nixos/personal/environment.nix +++ b/modules/nixos/personal/environment.nix @@ -29,13 +29,18 @@ in }; }; - programs.starship.enable = true; - programs.bash.shellInit = '' - function set_win_title(){ - echo -ne "\033]0;$(whoami)@$(hostname --long):$(dirs)\a" - } - starship_precmd_user_func="set_win_title" - ''; + programs = { + starship.enable = true; + bash = { + shellInit = '' + function set_win_title(){ + echo -ne "\033]0;$(whoami)@$(hostname).$(domainname):$(dirs)\a" + } + starship_precmd_user_func="set_win_title" + ''; + }; + }; + } (lib.mkIf cfg.locale.enable { time.timeZone = "Europe/Paris"; diff --git a/modules/nixos/personal/networking/default.nix b/modules/nixos/personal/networking/default.nix index cef72eb..03356f1 100644 --- a/modules/nixos/personal/networking/default.nix +++ b/modules/nixos/personal/networking/default.nix @@ -62,9 +62,6 @@ in services = lib.mkIf cfg.ssh.enable { openssh = { enable = true; - extraConfig = '' - AcceptEnv PS1 - ''; } // ( if options.services.openssh ? settings then |
