created mkHost and mkHomeConfiguration

This commit is contained in:
William 2026-02-19 08:08:27 -03:00
parent 1f9812fea0
commit 9b6a6f54d6
8 changed files with 178 additions and 191 deletions

View file

@ -1,31 +1,18 @@
{ inputs, lib, ... }:
{
flake.nixosConfigurations.trantor = inputs.nixpkgs-stable.lib.nixosSystem {
system = "aarch64-linux";
specialArgs = { inherit inputs; };
modules = [
inputs.agenix.nixosModules.default
{ networking.hostName = "trantor"; }
{
nixpkgs.overlays = [
inputs.agenix.overlays.default
inputs.self.overlays.default
];
}
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_trantor)
(inputs.self.factory.ephemeral {
rootDevice = "/dev/disk/by-id/scsi-360b207ed25d84372a95d1ecf842f8e20-part2";
})
]
++ (with inputs.self.modules.nixos; [
# system aspects
base
cli
server
{ inputs, ... }:
# user aspects
user
root
]);
let
mkHost = inputs.self.lib.mkHost;
in
{
flake.nixosConfigurations.trantor = mkHost {
hostname = "trantor";
system = "aarch64-linux";
nixpkgs = inputs.nixpkgs-stable;
ephemeral = "/dev/disk/by-id/scsi-360b207ed25d84372a95d1ecf842f8e20-part2";
extraModules = with inputs.self.modules.nixos; [
# base aspects
server
];
};
}