nixos-config/flake.nix

32 lines
714 B
Nix
Raw Normal View History

2021-09-24 06:09:20 +02:00
{
description = "my krops file";
inputs = {
2021-09-25 11:07:09 +02:00
secrets = {
url = "path:/home/palo/dev/secrets";
flake = false;
};
2021-09-24 06:09:20 +02:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.05";
krops = {
url = "github:Mic92/krops";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2021-09-25 20:28:25 +02:00
outputs = { self, nixpkgs, krops, secrets, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
writeCommand = krops.packages.${system}.writeCommand;
2021-11-01 09:20:42 +01:00
in
{
2021-09-25 20:28:25 +02:00
# deploy like this:
# nix run ".#deploy.sterni"
apps.${system}.deploy = pkgs.callPackage ./nixos/krops.nix {
inherit writeCommand secrets;
lib = krops.lib;
2021-09-24 06:09:20 +02:00
};
2021-09-25 20:28:25 +02:00
};
2021-09-24 06:09:20 +02:00
}