Build with latest kernel
This commit is contained in:
commit
aad0c4a7fd
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/result
|
27
flake.lock
Normal file
27
flake.lock
Normal file
|
@ -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
|
||||
}
|
37
flake.nix
Normal file
37
flake.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue