2023-10-25 13:58:11 +00:00
|
|
|
{ nixpkgs, disko, home-manager, agenix, attic, inputs, ... }:
|
2023-04-04 12:35:49 +00:00
|
|
|
|
|
|
|
let
|
2023-05-03 18:06:30 +00:00
|
|
|
default-system = "x86_64-linux";
|
|
|
|
|
2023-09-24 11:23:03 +00:00
|
|
|
# overlay-master = _: _: { pkgs-master = import inputs.nixpkgs-master { system = default-system; }; };
|
2023-12-14 20:39:22 +00:00
|
|
|
# overlay-unstable = _: _: { pkgs-unstable = import inputs.nixpkgs { system = default-system; }; };
|
2023-04-04 12:35:49 +00:00
|
|
|
overlay-nifoc = inputs.nifoc-overlay.overlay;
|
|
|
|
|
|
|
|
nixpkgsConfig = {
|
|
|
|
overlays = [
|
2023-09-24 11:23:03 +00:00
|
|
|
# overlay-master
|
2023-12-14 20:39:22 +00:00
|
|
|
# overlay-unstable
|
2023-04-04 12:35:49 +00:00
|
|
|
overlay-nifoc
|
|
|
|
];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
allowBroken = true;
|
2023-05-20 11:35:13 +00:00
|
|
|
|
|
|
|
permittedInsecurePackages = [
|
|
|
|
"openssl-1.1.1t"
|
|
|
|
];
|
2023-04-04 12:35:49 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
2023-05-12 15:39:09 +00:00
|
|
|
rec {
|
2023-04-04 12:35:49 +00:00
|
|
|
system = nixpkgs.lib.nixosSystem {
|
2023-05-03 18:06:30 +00:00
|
|
|
system = default-system;
|
2023-04-04 12:35:49 +00:00
|
|
|
modules = [
|
2023-06-21 12:21:40 +00:00
|
|
|
disko.nixosModules.disko
|
|
|
|
|
|
|
|
../hosts/tanker.nix
|
2023-04-04 12:35:49 +00:00
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
|
2023-04-14 08:23:54 +00:00
|
|
|
agenix.nixosModules.default
|
2023-04-04 12:35:49 +00:00
|
|
|
|
2023-04-04 15:20:09 +00:00
|
|
|
attic.nixosModules.atticd
|
|
|
|
|
2023-04-04 12:35:49 +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/tanker.nix;
|
|
|
|
};
|
2023-04-04 12:35:49 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-05-12 15:39:09 +00:00
|
|
|
|
2023-10-25 13:58:11 +00:00
|
|
|
colmena = {
|
|
|
|
deployment = {
|
|
|
|
targetHost = "tanker";
|
|
|
|
targetPort = 22;
|
|
|
|
targetUser = "root";
|
|
|
|
buildOnTarget = true;
|
2023-05-12 15:39:09 +00:00
|
|
|
};
|
2023-10-25 13:58:11 +00:00
|
|
|
|
|
|
|
nixpkgs.system = default-system;
|
|
|
|
imports = system._module.args.modules;
|
2023-05-12 15:39:09 +00:00
|
|
|
};
|
2023-04-04 12:35:49 +00:00
|
|
|
}
|