mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
sshAuthSock: use enable flag instead of nullable submodule
This commit is contained in:
committed by
Austin Horstman
parent
dc641330e2
commit
efe95f113a
@@ -1,3 +1,4 @@
|
||||
{
|
||||
sshAuthSock-initialization = ./initialization.nix;
|
||||
sshAuthSock-disabled = ./disabled.nix;
|
||||
sshAuthSock-enabled = ./enabled.nix;
|
||||
}
|
||||
|
||||
23
tests/modules/misc/ssh-auth-sock/disabled.nix
Normal file
23
tests/modules/misc/ssh-auth-sock/disabled.nix
Normal 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'
|
||||
'';
|
||||
}
|
||||
@@ -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 = ''
|
||||
Reference in New Issue
Block a user