make this a configuration directory

This commit is contained in:
Motiejus Jakštys 2023-01-03 12:14:11 +02:00
parent f8054b3bfb
commit 2065e91789
7 changed files with 30 additions and 0 deletions

7
.envrc Normal file
View File

@ -0,0 +1,7 @@
_gpgconv="gpg2 -d --quiet --yes --compress-algo=none --no-encrypt-to"
if [ "$(git config diff.gpg.textconv)" != "$_gpgconv" ]; then
git config diff.gpg.binary true
git config diff.gpg.textconv "$_gpgconv"
fi
export PASSWORD_STORE_DIR=$PWD/secrets

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/result

22
krops.nix Normal file
View File

@ -0,0 +1,22 @@
let
krops = builtins.fetchGit {
url = "https://cgit.krebsco.de/krops/";
};
lib = import "${krops}/lib";
pkgs = import "${krops}/pkgs" {};
source = lib.evalSource [
{
nixpkgs.symlink = "/root/.nix-defexpr/channels/nixos";
nixos-config.file = toString ./configuration.nix;
}
];
in {
hel1a = pkgs.krops.writeDeploy "deploy-hel1a" {
source = source;
target = lib.mkTarget "motiejus@hel1-a.jakstys.lt" // {
sudo = true;
};
};
}