31 lines
714 B
Nix
31 lines
714 B
Nix
{
|
|
|
|
description = "my krops file";
|
|
|
|
inputs = {
|
|
secrets = {
|
|
url = "path:/home/palo/dev/secrets";
|
|
flake = false;
|
|
};
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.05";
|
|
krops = {
|
|
url = "github:Mic92/krops";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, krops, secrets, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
writeCommand = krops.packages.${system}.writeCommand;
|
|
in
|
|
{
|
|
# deploy like this:
|
|
# nix run ".#deploy.sterni"
|
|
apps.${system}.deploy = pkgs.callPackage ./nixos/krops.nix {
|
|
inherit writeCommand secrets;
|
|
lib = krops.lib;
|
|
};
|
|
};
|
|
}
|