2024-03-20 23:23:44 +00:00
|
|
|
{ nixpkgs, nixos-hardware, home-manager, agenix, inputs, ... }:
|
2023-06-14 19:55:35 +00:00
|
|
|
|
|
|
|
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 = [
|
2024-03-20 23:23:44 +00:00
|
|
|
../hosts/neon.nix
|
|
|
|
|
|
|
|
nixos-hardware.nixosModules.raspberry-pi-4
|
2023-06-14 19:55:35 +00:00
|
|
|
|
|
|
|
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;
|
2024-03-20 23:23:44 +00:00
|
|
|
users.daniel = import ../../home/hosts/neon.nix;
|
2023-09-16 22:53:55 +00:00
|
|
|
};
|
2023-06-14 19:55:35 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-10-25 13:58:11 +00:00
|
|
|
colmena = {
|
|
|
|
deployment = {
|
2024-03-20 23:23:44 +00:00
|
|
|
targetHost = "neon";
|
2023-10-25 13:58:11 +00:00
|
|
|
targetPort = 22;
|
|
|
|
targetUser = "root";
|
2024-03-20 23:23:44 +00:00
|
|
|
buildOnTarget = true;
|
2024-03-20 23:24:16 +00:00
|
|
|
|
|
|
|
tags = [ "home" "rpi4" ];
|
2023-06-14 19:55:35 +00:00
|
|
|
};
|
2023-10-25 13:58:11 +00:00
|
|
|
|
|
|
|
nixpkgs.system = default-system;
|
|
|
|
imports = system._module.args.modules;
|
2023-06-14 19:55:35 +00:00
|
|
|
};
|
|
|
|
}
|