sshAuthSock: use enable flag instead of nullable submodule

This commit is contained in:
Benedikt Rips
2026-06-02 14:30:57 +02:00
committed by Austin Horstman
parent dc641330e2
commit efe95f113a
9 changed files with 179 additions and 135 deletions

View File

@@ -1,3 +1,4 @@
{
sshAuthSock-initialization = ./initialization.nix;
sshAuthSock-disabled = ./disabled.nix;
sshAuthSock-enabled = ./enabled.nix;
}

View File

@@ -0,0 +1,23 @@
{
programs.bash.enable = true;
programs.fish.enable = true;
programs.nushell.enable = true;
programs.zsh.enable = true;
sshAuthSock.enable = false;
nmt.script = ''
assertFileNotRegex \
home-files/.profile \
'SSH_AUTH_SOCK'
assertFileNotRegex \
home-files/.config/fish/config.fish \
'SSH_AUTH_SOCK'
assertFileNotRegex \
home-files/.config/nushell/config.nu \
'SSH_AUTH_SOCK'
assertFileNotRegex \
home-files/.zshenv \
'SSH_AUTH_SOCK'
'';
}

View File

@@ -4,10 +4,13 @@
programs.nushell.enable = true;
programs.zsh.enable = true;
sshAuthSock.initialization = {
bash = "echo bash/zsh";
fish = "echo fish";
nushell = "echo nushell";
sshAuthSock = {
enable = true;
initialization = {
bash = "echo bash/zsh";
fish = "echo fish";
nushell = "echo nushell";
};
};
nmt.script = ''