nix: Make nixos-hardware work for pindakaas

This commit is contained in:
Geoffrey Frogeye 2023-11-22 13:38:25 +01:00
parent c7e2263d64
commit 9a18827cbc
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
2 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# TODO Surely there's more elegant? # TODO Surely there's more elegant?
nix-channel --add https://nixos.org/channels/nixos-23.05 nixpkgs 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/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

View file

@ -1,9 +1,12 @@
{ ... }: { pkgs, config, ... }:
{ {
imports = [ imports = [
# <nixos-hardware/pine64/pinebook-pro> <nixos-hardware/pine64/pinebook-pro>
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix> <nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>
./os/loader.nix ./os/loader.nix
]; ];
networking.hostName = "pindakaas"; 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;
} }