Compare commits

..

4 commits

Author SHA1 Message Date
39bf79e334
ci: make checks actually do something
All checks were successful
/ check (pull_request) Successful in 38s
/ check (push) Successful in 1m59s
2025-06-02 20:14:14 +02:00
31f689ebfa
services/paperless: init 2025-06-02 20:14:14 +02:00
f7e0a81ff2
modules/system/builder: init remote-builder module 2025-06-02 20:14:14 +02:00
bd462ef842
treewide: fix breakages 2025-06-02 20:14:14 +02:00
5 changed files with 14 additions and 10 deletions

View file

@ -37,6 +37,8 @@
}; };
certificateScheme = "acme-nginx"; certificateScheme = "acme-nginx";
stateVersion = 2;
}; };
# TODO: Remove once SNM gets their shit together # TODO: Remove once SNM gets their shit together

View file

@ -1,16 +1,16 @@
{ config, lib, ... }: { config, lib, ... }:
let let
builderUsers = lib.pipe config.assets.sshKeys.system [ builderUsers = lib.fp.pipe [
(lib.filterAttrs ( (lib.attrs.filter (
name: _: name: _:
!lib.elem name [ !builtins.elem name [
"youko" "youko"
"kazuki" "kazuki"
"ude" "ude"
] ]
)) ))
lib.attrValues builtins.attrValues
]; ] config.assets.sshKeys.system;
in in
{ {
config.systems.nixos.youko.module = config.systems.nixos.youko.module =

View file

@ -88,7 +88,7 @@
darwin-systems' = map (system: system.result.config.system.build.toplevel) darwin-systems; darwin-systems' = map (system: system.result.config.system.build.toplevel) darwin-systems;
all-drvs = all-packages' ++ nixos-systems' ++ darwin-systems'; all-drvs = all-packages' ++ nixos-systems' ++ darwin-systems';
all-drvs' = lib.strings.concatMapSep "\n" builtins.unsafeDiscardStringContext all-drvs; all-drvs' = builtins.concatStringsSep "\n" all-drvs;
in in
mkPackage ( mkPackage (
{ runCommand }: { runCommand }:
@ -104,7 +104,7 @@
system, system,
}: }:
writeShellScript "ci-check" '' writeShellScript "ci-check" ''
nix-instantiate --eval -E 'import ./nilla.nix {}' -A packages.__allPackages.result.${system}.outPath nix-instantiate --strict --eval -E 'import ./nilla.nix {}' -A packages.__allPackages.result.${system}.outPath
"${lib.getExe config.packages.formatter.result.${system}}" --ci "${lib.getExe config.packages.formatter.result.${system}}" --ci
'' ''
); );
@ -128,6 +128,7 @@
config.packages.agenix.result.${system} config.packages.agenix.result.${system}
config.packages.attic-client.result.${system} config.packages.attic-client.result.${system}
config.packages.nh.result.${system} config.packages.nh.result.${system}
config.packages.formatter.result.${system}
]; ];
}; };
}; };

View file

@ -13,7 +13,8 @@ rustPlatform.buildRustPackage {
inherit src; inherit src;
strictDeps = true; strictDeps = true;
cargoLock.lockFile = "${src}/Cargo.lock"; useFetchCargoVendor = true;
cargoHash = "sha256-gNcpB2LMZU18RIxVu+mJfa4+lB5rNIRcZ2DJPvZCdQo=";
nativeBuildInputs = [ rustPlatform.bindgenHook ]; nativeBuildInputs = [ rustPlatform.bindgenHook ];

View file

@ -1,8 +1,8 @@
{ {
services.paperless = { config.services.paperless = {
host = "youko"; host = "youko";
ports = [ 28981 ]; ports = [ 28981 ];
config = module =
{ config, ... }: { config, ... }:
{ {
age.secrets.rab-lol-cf = { age.secrets.rab-lol-cf = {