2022-03-07 14:26:15 +00:00
|
|
|
# NixOps configuration for ceilidh
|
2021-10-20 06:22:09 +00:00
|
|
|
{
|
2022-03-07 14:26:15 +00:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2024-08-23 08:00:07 +00:00
|
|
|
imports = [../../hardware/raspberry_pi_4_model_B.nix];
|
2021-10-20 06:22:09 +00:00
|
|
|
|
|
|
|
# Comment out deployment when building the SD Image.
|
2022-03-07 14:26:15 +00:00
|
|
|
deployment.targetHost = "10.42.0.108";
|
2021-11-16 04:57:23 +00:00
|
|
|
networking.hostName = "ceilidh"; # Define your hostname.
|
2021-10-20 06:22:09 +00:00
|
|
|
|
|
|
|
# Ensure the right package architecture is used
|
|
|
|
nixpkgs = {
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
allowUnsupportedSystem = true;
|
|
|
|
};
|
|
|
|
localSystem = {
|
|
|
|
system = "aarch64-linux";
|
|
|
|
config = "aarch64-unknown-linux-gnu";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-03-07 14:26:15 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
gnupg # GPL OpenPGP implementation
|
|
|
|
];
|
2021-10-20 06:22:09 +00:00
|
|
|
|
2022-06-16 02:09:40 +00:00
|
|
|
system.stateVersion = "22.05"; # The version of NixOS originally installed
|
2021-10-20 06:22:09 +00:00
|
|
|
}
|