Compare commits

..

2 commits

Author SHA1 Message Date
1a4f685c16
services/paperless: init
Some checks failed
/ check (pull_request) Failing after 2s
2025-06-02 19:40:24 +02:00
4d21f49551
modules/system/builder: init remote-builder module 2025-06-02 19:40:24 +02:00
5 changed files with 10 additions and 14 deletions

View file

@ -37,8 +37,6 @@
}; };
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.fp.pipe [ builderUsers = lib.pipe config.assets.sshKeys.system [
(lib.attrs.filter ( (lib.filterAttrs (
name: _: name: _:
!builtins.elem name [ !lib.elem name [
"youko" "youko"
"kazuki" "kazuki"
"ude" "ude"
] ]
)) ))
builtins.attrValues lib.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' = builtins.concatStringsSep "\n" all-drvs; all-drvs' = lib.strings.concatMapSep "\n" builtins.unsafeDiscardStringContext all-drvs;
in in
mkPackage ( mkPackage (
{ runCommand }: { runCommand }:
@ -104,7 +104,7 @@
system, system,
}: }:
writeShellScript "ci-check" '' writeShellScript "ci-check" ''
nix-instantiate --strict --eval -E 'import ./nilla.nix {}' -A packages.__allPackages.result.${system}.outPath nix-instantiate --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,7 +128,6 @@
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,8 +13,7 @@ rustPlatform.buildRustPackage {
inherit src; inherit src;
strictDeps = true; strictDeps = true;
useFetchCargoVendor = true; cargoLock.lockFile = "${src}/Cargo.lock";
cargoHash = "sha256-gNcpB2LMZU18RIxVu+mJfa4+lB5rNIRcZ2DJPvZCdQo=";
nativeBuildInputs = [ rustPlatform.bindgenHook ]; nativeBuildInputs = [ rustPlatform.bindgenHook ];

View file

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