Skip to content

Commit

Permalink
usr: cli: ssh: use include
Browse files Browse the repository at this point in the history
  • Loading branch information
xieby1 committed May 7, 2024
1 parent 031152c commit 3ca9eb6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions usr/cli.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,7 @@ in
'';
}{
programs.ssh.enable = true;
programs.ssh.extraConfig =
if builtins.pathExists ~/Gist/Config/ssh.conf
then
builtins.readFile ~/Gist/Config/ssh.conf
else
"";
programs.ssh.includes = lib.optional (builtins.pathExists ~/Gist/Config/ssh.conf) "~/Gist/Config/ssh.conf";
programs.bash.bashrcExtra = lib.optionalString config.isNixOnDroid ''
# start sshd
if [[ -z "$(pidof sshd-start)" ]]; then
Expand Down

0 comments on commit 3ca9eb6

Please sign in to comment.