1
0
Fork 0
dotfiles/system/flakes/adsb-antenna.nix

63 lines
1.3 KiB
Nix
Raw Normal View History

2023-06-26 15:29:32 +02:00
{ nixpkgs, nixos-hardware, deploy-rs, home-manager, inputs, ... }:
2022-08-01 22:39:14 +02:00
let
default-system = "aarch64-linux";
2023-04-07 18:28:01 +02:00
overlay-attic = inputs.attic.overlays.default;
2023-09-17 00:53:55 +02:00
overlay-deploy-rs = _: _: { inherit (inputs.deploy-rs.packages.${default-system}) deploy-rs; };
2022-08-01 22:39:14 +02:00
overlay-nifoc = inputs.nifoc-overlay.overlay;
nixpkgsConfig = {
overlays = [
2023-04-07 18:28:01 +02:00
overlay-attic
2023-09-17 00:53:55 +02:00
overlay-deploy-rs
2022-08-01 22:39:14 +02:00
overlay-nifoc
];
config = {
allowUnfree = true;
allowBroken = true;
2023-05-20 13:35:13 +02:00
permittedInsecurePackages = [
"openssl-1.1.1t"
];
2022-08-01 22:39:14 +02:00
};
};
in
2023-05-14 12:55:56 +02:00
rec {
2022-08-01 22:39:14 +02:00
system = nixpkgs.lib.nixosSystem {
system = default-system;
2022-08-01 22:39:14 +02:00
modules = [
../hosts/adsb-antenna.nix
2023-06-26 15:29:32 +02:00
nixos-hardware.nixosModules.raspberry-pi-4
2022-08-01 22:39:14 +02:00
home-manager.nixosModules.home-manager
2023-05-14 12:55:56 +02:00
2022-08-01 22:39:14 +02:00
{
nixpkgs = nixpkgsConfig;
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
2023-04-23 01:21:04 +02:00
nix.registry.nixpkgs.flake = nixpkgs;
2023-09-17 00:53:55 +02:00
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.daniel = import ../../home/hosts/adsb-antenna.nix;
};
2022-08-01 22:39:14 +02:00
}
];
};
2023-05-14 12:55:56 +02:00
deployment = {
hostname = "adsb-antenna";
sshUser = "root";
remoteBuild = true;
2023-05-24 13:02:56 +02:00
autoRollback = false;
magicRollback = false;
2023-05-14 12:55:56 +02:00
profiles.system = {
path = deploy-rs.lib.${default-system}.activate.nixos system;
};
};
2022-08-01 22:39:14 +02:00
}