2023-06-14 19:55:35 +00:00
|
|
|
{ nixpkgs, deploy-rs, home-manager, agenix, inputs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
default-system = "aarch64-linux";
|
|
|
|
|
|
|
|
overlay-attic = inputs.attic.overlays.default;
|
2023-09-16 22:53:55 +00:00
|
|
|
overlay-deploy-rs = _: _: { inherit (inputs.deploy-rs.packages.${default-system}) deploy-rs; };
|
2023-06-14 19:55:35 +00:00
|
|
|
overlay-nifoc = inputs.nifoc-overlay.overlay;
|
|
|
|
|
|
|
|
nixpkgsConfig = {
|
|
|
|
overlays = [
|
|
|
|
overlay-attic
|
2023-09-16 22:53:55 +00:00
|
|
|
overlay-deploy-rs
|
2023-06-14 19:55:35 +00:00
|
|
|
overlay-nifoc
|
|
|
|
];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
allowBroken = true;
|
|
|
|
|
|
|
|
permittedInsecurePackages = [
|
|
|
|
"openssl-1.1.1t"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
system = nixpkgs.lib.nixosSystem {
|
|
|
|
system = default-system;
|
|
|
|
modules = [
|
|
|
|
../hosts/weather-sdr.nix
|
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
|
|
|
|
agenix.nixosModules.default
|
|
|
|
|
|
|
|
{
|
|
|
|
nixpkgs = nixpkgsConfig;
|
|
|
|
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
|
|
|
|
nix.registry.nixpkgs.flake = nixpkgs;
|
2023-09-16 22:53:55 +00:00
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
users.daniel = import ../../home/hosts/weather-sdr.nix;
|
|
|
|
};
|
2023-06-14 19:55:35 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
hostname = "weather-sdr";
|
|
|
|
sshUser = "root";
|
|
|
|
remoteBuild = true;
|
|
|
|
autoRollback = false;
|
|
|
|
magicRollback = false;
|
|
|
|
|
|
|
|
profiles.system = {
|
|
|
|
path = deploy-rs.lib.${default-system}.activate.nixos system;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|