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