From 5b93ec1e849ef619a5732306c219517a2fa512a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Wed, 2 Mar 2022 22:46:45 +0000 Subject: [PATCH] fix bootstrap --- flake.nix | 7 +++++-- nixos/boxes/bootstrap/default.nix | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 56361dcb..08922fe9 100644 --- a/flake.nix +++ b/flake.nix @@ -56,12 +56,15 @@ vultr1 = mkServer nixpkgs-stable "x86_64-linux" "vultr1"; rpi4_8 = mkRaspi nixpkgs-stable "rpi4-8"; - bootstrap = nixpkgs-stable.lib.nixosSystem { + bootstrap = nixpkgs-stable.lib.nixosSystem rec { system = "x86_64-linux"; modules = [ (./. + "/nixos/boxes/bootstrap") ]; - specialArgs = { inherit inputs; }; + specialArgs = { + inherit inputs system; + nixpkgs-nixos-unstable-and-unfree = import nixpkgs-nixos-unstable { inherit system; config = { allowUnfree = true; }; }; + }; }; # nix build .#nixosConfigurations.raspiimage.config.system.build.sdImage # sudo dd if=result/sd-image/nixos-sd-image-21.11.20211201.a640d83-aarch64-linux.img of=/dev/sda bs=4M conv=fsync status=progress diff --git a/nixos/boxes/bootstrap/default.nix b/nixos/boxes/bootstrap/default.nix index 62661270..e334b791 100644 --- a/nixos/boxes/bootstrap/default.nix +++ b/nixos/boxes/bootstrap/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, inputs, ... }: +{ config, pkgs, inputs, nixpkgs-nixos-unstable-and-unfree, ... }: { networking.hostName = "fixme";