2023-10-25 13:58:11 +00:00
|
|
|
{ nixpkgs, nixos-hardware, home-manager, inputs, ... }:
|
2022-08-01 20:39:14 +00:00
|
|
|
|
|
|
|
let
|
2023-05-03 18:06:30 +00:00
|
|
|
default-system = "aarch64-linux";
|
|
|
|
|
2022-08-01 20:39:14 +00:00
|
|
|
overlay-nifoc = inputs.nifoc-overlay.overlay;
|
|
|
|
|
|
|
|
nixpkgsConfig = {
|
|
|
|
overlays = [
|
|
|
|
overlay-nifoc
|
|
|
|
];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
allowBroken = true;
|
2023-05-20 11:35:13 +00:00
|
|
|
|
|
|
|
permittedInsecurePackages = [
|
|
|
|
"openssl-1.1.1t"
|
|
|
|
];
|
2022-08-01 20:39:14 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
2024-07-23 20:03:30 +00:00
|
|
|
{
|
|
|
|
arch = default-system;
|
|
|
|
|
2022-08-01 20:39:14 +00:00
|
|
|
system = nixpkgs.lib.nixosSystem {
|
2023-05-03 18:06:30 +00:00
|
|
|
system = default-system;
|
2022-08-01 20:39:14 +00:00
|
|
|
modules = [
|
|
|
|
../hosts/adsb-antenna.nix
|
|
|
|
|
2023-06-26 13:29:32 +00:00
|
|
|
nixos-hardware.nixosModules.raspberry-pi-4
|
|
|
|
|
2022-08-01 20:39:14 +00:00
|
|
|
home-manager.nixosModules.home-manager
|
2023-05-14 10:55:56 +00:00
|
|
|
|
2022-08-01 20:39:14 +00:00
|
|
|
{
|
|
|
|
nixpkgs = nixpkgsConfig;
|
|
|
|
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
|
2023-04-22 23:21:04 +00:00
|
|
|
nix.registry.nixpkgs.flake = nixpkgs;
|
2023-09-16 22:53:55 +00:00
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
users.daniel = import ../../home/hosts/adsb-antenna.nix;
|
|
|
|
};
|
2022-08-01 20:39:14 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-05-14 10:55:56 +00:00
|
|
|
|
2024-07-23 20:03:30 +00:00
|
|
|
deployment = {
|
|
|
|
hostname = "adsb-antenna";
|
|
|
|
sshUser = "root";
|
|
|
|
remoteBuild = false;
|
|
|
|
autoRollback = false;
|
|
|
|
magicRollback = false;
|
2023-10-25 13:58:11 +00:00
|
|
|
|
2024-07-23 20:03:30 +00:00
|
|
|
activationTimeout = 600;
|
2023-05-14 10:55:56 +00:00
|
|
|
};
|
2022-08-01 20:39:14 +00:00
|
|
|
}
|