nix/.drone.yml.disable

42 lines
1.5 KiB
Plaintext

---
kind: pipeline
name: default
steps:
- name: thinkpad
image: nixos/nix:latest
commands:
- nix-channel --add https://nixos.org/channels/nixos-unstable nixos
- nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
- nix-channel --update
- nix-build '<nixpkgs/nixos>' -j4 -A config.system.build.toplevel -I nixos-config=thinkpad/configuration.nix
- name: framework
image: nixos/nix:latest
commands:
- nix-channel --add https://nixos.org/channels/nixos-unstable nixos
- nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
- nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
- nix-channel --update
- nix-build '<nixpkgs/nixos>' -j4 -A config.system.build.toplevel -I nixos-config=framework/configuration.nix
- name: nas
image: nixos/nix:latest
commands:
- nix-channel --add https://nixos.org/channels/nixos-unstable nixos
- nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
- nix-channel --update
- nix-build '<nixpkgs/nixos>' -j4 -A config.system.build.toplevel -I nixos-config=nas/configuration.nix
- name: notify
image: drillster/drone-email
settings:
host: smtp.soverin.net
username:
from_secret: email_username
password:
from_secret: email_password
from: drone@sijman.nl
when:
status: [failure]