commit aad0c4a7fd34ec48f850666ca8438d1e9fa7e269 Author: asonix Date: Thu Jan 12 18:41:24 2023 -0600 Build with latest kernel diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c4a847d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/result diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..0b74879 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1673563280, + "narHash": "sha256-27+ZVRylsm7HwI3rUt6TFh3lrgzrvToJscL44fFd25Q=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "e0c17a48c475a03775833892373777892a6b8ff6", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "master", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..fbd7742 --- /dev/null +++ b/flake.nix @@ -0,0 +1,37 @@ +{ + description = "Aarch64 image with latest kernel"; + inputs.nixpkgs.url = "github:nixos/nixpkgs/master"; + outputs = { self, nixpkgs }: rec { + nixosConfigurations.soquartz = nixpkgs.lib.nixosSystem { + system = "aarch64-linux"; + modules = [ + "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" + ({ ... }: + let + pkgs = import nixpkgs + { + system = "aarch64-linux"; + }; + in + { + nixpkgs.overlays = [ + (final: super: { + zfs = super.zfs.overrideAttrs (_: { + meta.platforms = [ ]; + }); + }) + ]; + + users.users.root.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICTz/raHvMluy7wPhO1P64ZgyVu7ZQrRgKL0CT8UcOdQ asonix@firestar" + ]; + + networking.hostName = "nixos-aarch64"; + boot.kernelPackages = pkgs.linuxKernel.packages.linux_testing; + system.stateVersion = "23.05"; + }) + ]; + }; + images.soquartz = nixosConfigurations.soquartz.config.system.build.sdImage; + }; +}