add nixos CI
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Vivian 2022-06-12 17:06:32 +02:00
parent 878334bed7
commit 08b8e24c8c
2 changed files with 7 additions and 1 deletions

View file

@ -6,3 +6,7 @@ steps:
image: registry.gitlab.com/pipeline-components/yamllint
commands:
- yamllint -c .yamllint.yaml .
- name: nix flake check
image: nixos/nix:master
commands:
- nix --extra-experimental-features nix-command --extra-experimental-features flakes flake check --no-build

View file

@ -86,7 +86,9 @@
nixosConfigurations = lib.foldr (el: acc: acc // mkConfig el) { } nixHosts;
deploy.nodes = lib.foldr (el: acc: acc // mkDeploy el) { } nixHosts;
apps.${system} = {
apps.${system} = rec {
default = deploy;
deploy = {
type = "app";
program = "${deploy-rs.packages.${system}.deploy-rs}/bin/deploy";