summaryrefslogtreecommitdiff
path: root/hosts/utm/default.nix
blob: 95fb11cc68f11cb061b2528355a09864523883fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  inputs,
  kansaiPkgs,
  self,
  lib,
  ...
}:
let
  pkgs =
    (kansaiPkgs {
      nixpkgsExtraConfig = {
        allowUnsupportedSystem = true;
      };
    })."aarch64-linux";
in
{
  flake.nixosConfigurations.utm = lib.nixosSystem {
    inherit pkgs;

    specialArgs = {
      inherit self;
    };

    modules = with inputs; [
      ./configuration.nix
      ./hardware-configuration.nix
      "${self}/disks/utm.nix"
      "${self}/modules/core/networking/tailscale.nix"
      disko.nixosModules.disko
      sops-nix.nixosModules.sops
    ];
  };
}