Change sudo calling
This commit is contained in:
parent
baaf651a46
commit
f17a3be347
2 changed files with 8 additions and 11 deletions
|
@ -111,9 +111,13 @@ programs = {
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
BROWSER="${pkgs.firefox}/bin/firefox";
|
BROWSER = "${pkgs.firefox}/bin/firefox";
|
||||||
EDITOR="${pkgs.neovim}/bin/nvim";
|
EDITOR = "${pkgs.neovim}/bin/nvim";
|
||||||
TERMINAL=config.m-0.terminal;
|
TERMINAL = config.m-0.terminal;
|
||||||
|
SUDO_ASKPASS = let
|
||||||
|
print-pw = pkgs.writeShellScriptBin "print-pw" "pass eu/m-0/$HOST";
|
||||||
|
in
|
||||||
|
"${print-pw}/bin/print-pw";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.startServices = true;
|
systemd.user.startServices = true;
|
||||||
|
|
|
@ -9,14 +9,7 @@ programs = {
|
||||||
save = 100000;
|
save = 100000;
|
||||||
size = 100000;
|
size = 100000;
|
||||||
};
|
};
|
||||||
initExtra = let
|
initExtra = builtins.readFile ./zshrc;
|
||||||
print-pw = pkgs.writeShellScriptBin "print-pw" ''
|
|
||||||
pass space/olymp/apollo
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
''
|
|
||||||
export SUDO_ASKPASS="${print-pw}"/bin/print-pw
|
|
||||||
'' + builtins.readFile ./zshrc;
|
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [ "colored-man-pages" "git-prompt" ];
|
plugins = [ "colored-man-pages" "git-prompt" ];
|
||||||
|
|
Loading…
Reference in a new issue