nix fmt
This commit is contained in:
parent
a9b4fab153
commit
c4cda77be8
7 changed files with 15 additions and 17 deletions
8
.github/workflows/build-and-cache.yml
vendored
8
.github/workflows/build-and-cache.yml
vendored
|
@ -1,9 +1,7 @@
|
||||||
name: build and cache random stuff
|
name: build and cache random stuff
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -13,27 +11,21 @@ jobs:
|
||||||
- .#attic-server
|
- .#attic-server
|
||||||
- .#eza
|
- .#eza
|
||||||
- .#conduwuit
|
- .#conduwuit
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
with:
|
with:
|
||||||
logger: pretty
|
logger: pretty
|
||||||
|
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
|
|
||||||
- uses: cachix/cachix-action@v15
|
- uses: cachix/cachix-action@v15
|
||||||
with:
|
with:
|
||||||
name: cything
|
name: cything
|
||||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
- name: Setup Attic cache
|
- name: Setup Attic cache
|
||||||
uses: ryanccn/attic-action@v0
|
uses: ryanccn/attic-action@v0
|
||||||
with:
|
with:
|
||||||
endpoint: ${{ vars.ATTIC_ENDPOINT }}
|
endpoint: ${{ vars.ATTIC_ENDPOINT }}
|
||||||
cache: ${{ vars.ATTIC_CACHE }}
|
cache: ${{ vars.ATTIC_CACHE }}
|
||||||
token: ${{ secrets.ATTIC_TOKEN }}
|
token: ${{ secrets.ATTIC_TOKEN }}
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: nix build '${{ matrix.package }}'
|
- run: nix build '${{ matrix.package }}'
|
||||||
|
|
|
@ -116,7 +116,7 @@
|
||||||
checks = forEachSystem (pkgs: {
|
checks = forEachSystem (pkgs: {
|
||||||
formatting = treefmtEval.${pkgs.system}.config.build.check self;
|
formatting = treefmtEval.${pkgs.system}.config.build.check self;
|
||||||
});
|
});
|
||||||
# lets us build overlayed packages with `nix build .#<package>`
|
# lets us build overlaid packages with `nix build .#<package>`
|
||||||
packages = pkgsFor;
|
packages = pkgsFor;
|
||||||
|
|
||||||
nixosConfigurations =
|
nixosConfigurations =
|
||||||
|
|
|
@ -37,7 +37,10 @@
|
||||||
# shortcut to command mode
|
# shortcut to command mode
|
||||||
action = ":";
|
action = ":";
|
||||||
key = ";";
|
key = ";";
|
||||||
mode = ["n" "x"];
|
mode = [
|
||||||
|
"n"
|
||||||
|
"x"
|
||||||
|
];
|
||||||
options.silent = true;
|
options.silent = true;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,10 @@
|
||||||
experimental-features = "nix-command flakes";
|
experimental-features = "nix-command flakes";
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
flake-registry = "";
|
flake-registry = "";
|
||||||
trusted-users = [ "root" "@wheel" ];
|
trusted-users = [
|
||||||
|
"root"
|
||||||
|
"@wheel"
|
||||||
|
];
|
||||||
trusted-public-keys = [ "central:uWhjva6m6dhC2hqNisjn2hXGvdGBs19vPkA1dPEuwFg=" ];
|
trusted-public-keys = [ "central:uWhjva6m6dhC2hqNisjn2hXGvdGBs19vPkA1dPEuwFg=" ];
|
||||||
substituters = [ "https://cache.cything.io/central" ];
|
substituters = [ "https://cache.cything.io/central" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue