add ci to the preo

This commit is contained in:
Jörg Thalheim 2023-09-19 13:49:18 +02:00
parent edd6df5b58
commit a3e71ae2ed
3 changed files with 20 additions and 10 deletions

View File

@ -0,0 +1,11 @@
name: checks
on:
pull_request:
push:
branches: main
jobs:
test:
runs-on: nix
steps:
- uses: actions/checkout@v3
- run: nix run --refresh github:Mic92/nix-fast-build/ae50c356c2f9e790f3d9d8e00bfa9f4b54f49bdd

View File

@ -19,16 +19,15 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1694703716, "lastModified": 1695123290,
"narHash": "sha256-J1nyeRArZlQPAnmJ1suKrhYOgVEixNGeqbpVTI+gilE=", "narHash": "sha256-6PgVtU2KruXu8LPVNjk4Obfjk/IRt1ZTwd8VEioQQrM=",
"ref": "lassulus-pass-secrets", "ref": "refs/heads/main",
"rev": "1c07f990a89edfd3f268cad4155f29b86a554484", "rev": "06bb3c52bf18096c38e2747b0ca1c8d2d2273a74",
"revCount": 665, "revCount": 700,
"type": "git", "type": "git",
"url": "https://git.clan.lol/clan/clan-core" "url": "https://git.clan.lol/clan/clan-core"
}, },
"original": { "original": {
"ref": "lassulus-pass-secrets",
"type": "git", "type": "git",
"url": "https://git.clan.lol/clan/clan-core" "url": "https://git.clan.lol/clan/clan-core"
} }

View File

@ -24,7 +24,7 @@
# Use the version of nixpkgs that has been tested to work with SrvOS # Use the version of nixpkgs that has been tested to work with SrvOS
srvos.inputs.nixpkgs.follows = "nixpkgs"; srvos.inputs.nixpkgs.follows = "nixpkgs";
clan-core.url = "git+https://git.clan.lol/clan/clan-core?ref=lassulus-pass-secrets"; clan-core.url = "git+https://git.clan.lol/clan/clan-core";
clan-core.inputs.flake-parts.follows = "flake-parts"; clan-core.inputs.flake-parts.follows = "flake-parts";
clan-core.inputs.nixpkgs.follows = "nixpkgs"; clan-core.inputs.nixpkgs.follows = "nixpkgs";
clan-core.inputs.treefmt-nix.follows = "treefmt-nix"; clan-core.inputs.treefmt-nix.follows = "treefmt-nix";
@ -32,7 +32,7 @@
}; };
outputs = inputs@{ flake-parts, ... }: outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } { flake-parts.lib.mkFlake { inherit inputs; } ({ self, ... }: {
systems = [ systems = [
"x86_64-linux" "x86_64-linux"
"aarch64-linux" "aarch64-linux"
@ -44,7 +44,7 @@
./modules/flake-module.nix ./modules/flake-module.nix
./pkgs/flake-module.nix ./pkgs/flake-module.nix
]; ];
perSystem = ({ lib, self', ... }: { perSystem = ({ lib, self', system, ... }: {
treefmt = { treefmt = {
projectRootFile = ".git/config"; projectRootFile = ".git/config";
programs.terraform.enable = true; programs.terraform.enable = true;
@ -65,5 +65,5 @@
in in
nixosMachines // packages // devShells // homeConfigurations; nixosMachines // packages // devShells // homeConfigurations;
}); });
}; });
} }