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
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
|
@ -13,27 +11,21 @@ jobs:
|
|||
- .#attic-server
|
||||
- .#eza
|
||||
- .#conduwuit
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
logger: pretty
|
||||
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
|
||||
- uses: cachix/cachix-action@v15
|
||||
with:
|
||||
name: cything
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
|
||||
- name: Setup Attic cache
|
||||
uses: ryanccn/attic-action@v0
|
||||
with:
|
||||
endpoint: ${{ vars.ATTIC_ENDPOINT }}
|
||||
cache: ${{ vars.ATTIC_CACHE }}
|
||||
token: ${{ secrets.ATTIC_TOKEN }}
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- run: nix build '${{ matrix.package }}'
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
checks = forEachSystem (pkgs: {
|
||||
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;
|
||||
|
||||
nixosConfigurations =
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ...}:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
|
@ -37,7 +37,10 @@
|
|||
# shortcut to command mode
|
||||
action = ":";
|
||||
key = ";";
|
||||
mode = ["n" "x"];
|
||||
mode = [
|
||||
"n"
|
||||
"x"
|
||||
];
|
||||
options.silent = true;
|
||||
}
|
||||
{
|
||||
|
|
|
@ -143,7 +143,7 @@
|
|||
home = "/var/lib/forgejo";
|
||||
group = "git";
|
||||
};
|
||||
users.groups.git = {};
|
||||
users.groups.git = { };
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{...}:
|
||||
{ ... }:
|
||||
{
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
|
|
|
@ -5,7 +5,10 @@
|
|||
experimental-features = "nix-command flakes";
|
||||
auto-optimise-store = true;
|
||||
flake-registry = "";
|
||||
trusted-users = [ "root" "@wheel" ];
|
||||
trusted-users = [
|
||||
"root"
|
||||
"@wheel"
|
||||
];
|
||||
trusted-public-keys = [ "central:uWhjva6m6dhC2hqNisjn2hXGvdGBs19vPkA1dPEuwFg=" ];
|
||||
substituters = [ "https://cache.cything.io/central" ];
|
||||
};
|
||||
|
@ -21,8 +24,8 @@
|
|||
options = "--delete-older-than 14d";
|
||||
};
|
||||
extraOptions = ''
|
||||
builders-use-substitutes = true
|
||||
'';
|
||||
builders-use-substitutes = true
|
||||
'';
|
||||
};
|
||||
time.timeZone = "America/Toronto";
|
||||
networking.firewall.logRefusedConnections = false;
|
||||
|
|
|
@ -5,4 +5,4 @@ let
|
|||
];
|
||||
importedOverlays = map (m: import m) overlays;
|
||||
in
|
||||
importedOverlays
|
||||
importedOverlays
|
||||
|
|
Loading…
Add table
Reference in a new issue