feat(nixos): add host sops helper
This commit is contained in:
@@ -103,6 +103,13 @@ in
|
||||
body = builtins.readFile ./functions/deploy-to.fish;
|
||||
};
|
||||
|
||||
sops-host = {
|
||||
description = "Run sops with the host age key";
|
||||
body = ''
|
||||
sudo env SOPS_AGE_KEY_FILE=/var/lib/sops-nix/key.txt nix shell nixpkgs#sops -c sops $argv
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
# Rendered by home-manager into ~/.config/fish/config.fish.
|
||||
|
||||
Reference in New Issue
Block a user