This commit is contained in:
cy 2025-01-10 23:17:27 -05:00
parent a9b4fab153
commit c4cda77be8
7 changed files with 15 additions and 17 deletions

View file

@ -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 }}'

View file

@ -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 =

View file

@ -1,4 +1,4 @@
{ pkgs, ...}: { pkgs, ... }:
{ {
programs.nixvim = { programs.nixvim = {
enable = true; enable = true;
@ -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;
} }
{ {

View file

@ -143,7 +143,7 @@
home = "/var/lib/forgejo"; home = "/var/lib/forgejo";
group = "git"; group = "git";
}; };
users.groups.git = {}; users.groups.git = { };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim vim

View file

@ -1,4 +1,4 @@
{...}: { ... }:
{ {
services.forgejo = { services.forgejo = {
enable = true; enable = true;

View file

@ -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" ];
}; };
@ -21,8 +24,8 @@
options = "--delete-older-than 14d"; options = "--delete-older-than 14d";
}; };
extraOptions = '' extraOptions = ''
builders-use-substitutes = true builders-use-substitutes = true
''; '';
}; };
time.timeZone = "America/Toronto"; time.timeZone = "America/Toronto";
networking.firewall.logRefusedConnections = false; networking.firewall.logRefusedConnections = false;

View file

@ -5,4 +5,4 @@ let
]; ];
importedOverlays = map (m: import m) overlays; importedOverlays = map (m: import m) overlays;
in in
importedOverlays importedOverlays