nix: Make nixos-hardware work for pindakaas
This commit is contained in:
parent
c7e2263d64
commit
9a18827cbc
|
@ -1,6 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# TODO Surely there's more elegant?
|
||||
|
||||
nix-channel --add https://nixos.org/channels/nixos-23.05 nixpkgs
|
||||
nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz home-manager
|
||||
nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
|
||||
# First commit before 23.05 release date:
|
||||
nix-channel --add https://github.com/NixOS/nixos-hardware/archive/468a7a108108908c7a35d6549f1e1f0236a9448a.tar.gz nixos-hardware
|
||||
nix-channel --update
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
{ ... }:
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
# <nixos-hardware/pine64/pinebook-pro>
|
||||
<nixos-hardware/pine64/pinebook-pro>
|
||||
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>
|
||||
./os/loader.nix
|
||||
];
|
||||
networking.hostName = "pindakaas";
|
||||
# nixos-hardware use latest kernel by default. This obviously runs quickly out of sync with zfs packages.
|
||||
# zfs packages are included despite me asking anything zfs, probably they're in the image for installation purposes?
|
||||
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue