File tree Expand file tree Collapse file tree 11 files changed +580
-1693
lines changed
Expand file tree Collapse file tree 11 files changed +580
-1693
lines changed Original file line number Diff line number Diff line change 1+ # Generated by editorconfig.timseverien.com
2+ # https://editor.timseverien.com/#config
3+ root = true
4+
5+ [* ]
6+ charset = utf-8
7+ end_of_line = lf
8+ indent_style = space
9+ insert_final_newline = true
10+ tab_width = 2
11+ trim_trailing_whitespace = true
12+
13+ [* .sh ]
14+ indent_style = tab
15+ tab_width = 4
Original file line number Diff line number Diff line change 11{
2- $schema : 'https://docs.renovatebot.com/renovate-schema.json' ,
3- extends : [
4- 'config:recommended' ,
5- ] ,
2+ $schema : "https://docs.renovatebot.com/renovate-schema.json" ,
3+ extends : [ "config:recommended" ] ,
64 nix : {
75 enabled : true ,
86 } ,
97 lockFileMaintenance : {
108 enabled : true ,
11- extends : [ ' schedule:daily' ] ,
9+ extends : [ " schedule:daily" ] ,
1210 } ,
1311}
Original file line number Diff line number Diff line change 1+ name : Build nixos system
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ nix-matrix :
11+ runs-on : ubuntu-latest
12+ outputs :
13+ matrix : ${{ steps.set-matrix.outputs.matrix }}
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : cachix/install-nix-action@v30
17+ - uses : cachix/cachix-action@v15
18+ with :
19+ name : kidibox
20+ authToken : " ${{ secrets.CACHIX_AUTH_TOKEN }}"
21+ - id : set-matrix
22+ name : Generate Nix Matrix
23+ run : |
24+ nix build .nixosConfigurations.nixos.config.system.build.toplevel
Original file line number Diff line number Diff line change 1414 steps :
1515 - uses : actions/checkout@v4
1616 - uses : cachix/install-nix-action@v30
17+ - uses : cachix/cachix-action@v15
18+ with :
19+ name : kidibox
20+ authToken : " ${{ secrets.CACHIX_AUTH_TOKEN }}"
1721 - id : set-matrix
1822 name : Generate Nix Matrix
1923 run : |
Original file line number Diff line number Diff line change 1+ { inputs , ... } :
2+ builtins . mapAttrs ( _ : deployLib : deployLib . deployChecks inputs . self . deploy ) inputs . deploy-rs . lib
Original file line number Diff line number Diff line change 11{
22 inputs ,
33 pkgs ,
4+ config ,
45 ...
56} :
67let
7- inherit ( inputs ) git-hooks-nix ;
8+ inherit ( inputs ) git-hooks-nix treefmt-nix ;
9+ treefmt = treefmt-nix . lib . evalModule pkgs ../../treefmt.nix ;
810in
911git-hooks-nix . lib . ${ pkgs . system } . run {
1012 src = ./. ;
1113 hooks = {
12- # nixfmt-rfc-style = {
13- # enable = true;
14- # };
15-
16- deadnix = {
17- enable = true ;
18- # settings = {
19- # edit = true;
20- # };
21- } ;
22-
23- # git-cliff = {
24- # enable = false;
25- # };
26-
27- shfmt . enable = true ;
28-
29- statix . enable = true ;
30-
3114 treefmt = {
32- enable = false ;
33- packageOverrides . treefmt = inputs . treefmt-nix . lib . mkWrapper pkgs ../../../treefmt.nix ;
15+ enable = true ;
16+ package = treefmt . config . build . wrapper ;
3417 } ;
3518 } ;
3619}
Original file line number Diff line number Diff line change 1+ {
2+ inputs ,
3+ pkgs ,
4+ ...
5+ } :
6+ let
7+ inherit ( inputs ) treefmt-nix ;
8+ treefmt = treefmt-nix . lib . evalModule pkgs ../../treefmt.nix ;
9+ in
10+ treefmt . config . build . check inputs . self
Original file line number Diff line number Diff line change 122122
123123 outputs-builder = channels : {
124124 formatter = inputs . treefmt-nix . lib . mkWrapper channels . nixpkgs ./treefmt.nix ;
125+ # checks =
126+ # let
127+ # inherit (channels.nixpkgs) system;
128+ # # FIXME: need to filter on system
129+ # # deploy = inputs.deploy-rs.lib.${system}.deployChecks self.deploy;
130+ # nixosMachines = lib.mapAttrs' (
131+ # name: config: lib.nameValuePair "nixosConfiguration-${name}" config.config.system.build.toplevel
132+ # ) ((lib.filterAttrs (_: config: config.pkgs.system == system)) self.nixosConfigurations);
133+ # # devShells = lib.mapAttrs' (n: lib.nameValuePair "devShells-${n}") self.devShells;
134+ # in
135+ # nixosMachines;
125136 } ;
126137 } )
127138 // {
You can’t perform that action at this time.
0 commit comments