diff --git a/nix/.gitignore b/nix/.gitignore new file mode 100644 index 0000000..750baeb --- /dev/null +++ b/nix/.gitignore @@ -0,0 +1,2 @@ +result +result-* diff --git a/nix/aarch64_be.nix b/nix/aarch64_be.nix new file mode 100644 index 0000000..08e0ce1 --- /dev/null +++ b/nix/aarch64_be.nix @@ -0,0 +1,15 @@ +let + flake = builtins.getFlake (toString ./..); + nixpkgs = flake.inputs.nixpkgs; + lib = nixpkgs.lib; + system = lib.nixosSystem { + modules = [ + "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64-new-kernel-no-zfs-installer.nix" + { + nixpkgs.hostPlatform.config = "aarch64_be-unknown-linux-gnu"; + nixpkgs.buildPlatform.system = "x86_64-linux"; + nixpkgs.config.allowUnsupportedSystem = true; + } + ]; + }; +in system.config.system.build.sdImage diff --git a/typst/labels.typ b/typst/labels.typ new file mode 100644 index 0000000..a2eadf3 --- /dev/null +++ b/typst/labels.typ @@ -0,0 +1,29 @@ +#{ + set page(width: 3.5in, height: 1.125in, margin: 0em) + set par(leading: 0.2em) + + let labels(contents) = { + for (idx, content) in contents.enumerate() { + if idx != 0 { + pagebreak() + } + place( + top + left, + dx: 12mm, + dy: 0in, + block( + width: 3.5in - 12mm, + height: 1in, + align( + center + horizon, + text( + font: "Bahnschrift", + size: 70pt, + content + "Ω")))) + } + } + + labels(( + "82", "27k" + )) +}