57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{ nixpkgs, nixos-hardware, deploy-rs, home-manager, inputs, ... }:
|
|
|
|
let
|
|
default-system = "aarch64-linux";
|
|
|
|
overlay-attic = inputs.attic.overlays.default;
|
|
overlay-nifoc = inputs.nifoc-overlay.overlay;
|
|
|
|
nixpkgsConfig = {
|
|
overlays = [
|
|
overlay-attic
|
|
overlay-nifoc
|
|
];
|
|
|
|
config = {
|
|
allowUnfree = true;
|
|
allowBroken = true;
|
|
|
|
permittedInsecurePackages = [
|
|
"openssl-1.1.1t"
|
|
];
|
|
};
|
|
};
|
|
in
|
|
rec {
|
|
system = nixpkgs.lib.nixosSystem {
|
|
system = default-system;
|
|
modules = [
|
|
../hosts/adsb-antenna.nix
|
|
|
|
nixos-hardware.nixosModules.raspberry-pi-4
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
nixpkgs = nixpkgsConfig;
|
|
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
|
|
nix.registry.nixpkgs.flake = nixpkgs;
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.daniel = import ../../home/hosts/adsb-antenna.nix;
|
|
}
|
|
];
|
|
};
|
|
|
|
deployment = {
|
|
hostname = "adsb-antenna";
|
|
sshUser = "root";
|
|
remoteBuild = true;
|
|
autoRollback = false;
|
|
magicRollback = false;
|
|
|
|
profiles.system = {
|
|
path = deploy-rs.lib.${default-system}.activate.nixos system;
|
|
};
|
|
};
|
|
}
|