nixos-config/flake.nix

42 lines
984 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 = {
2022-01-15 09:32:59 +01:00
url = "git+ssh://gitea@git.ingolf-wagner.de/palo/nixos-secrets.git?ref=main";
2021-09-25 11:07:09 +02:00
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-11-01 12:16:18 +01:00
# deployment
apps.${system} = {
# nix run ".#deploy.sterni"
deploy = pkgs.callPackage ./nixos/krops.nix {
inherit writeCommand secrets;
lib = krops.lib;
};
# nix run ".#test.sterni"
test = pkgs.callPackage ./nixos/krops.nix {
inherit writeCommand secrets;
lib = krops.lib;
nixosRebuildCommand = "test";
};
2021-09-24 06:09:20 +02:00
};
2021-11-01 12:16:18 +01:00
2021-09-25 20:28:25 +02:00
};
2021-09-24 06:09:20 +02:00
}