make this a configuration directory
This commit is contained in:
parent
f8054b3bfb
commit
2065e91789
7
.envrc
Normal file
7
.envrc
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/result
|
22
krops.nix
Normal file
22
krops.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user