aboutsummaryrefslogtreecommitdiff
path: root/systems/zoldene/flake.nix
blob: 7b7b4b768713b38fdcd013c7e33460d65d495a9b (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
{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    impermanence.url = "github:nix-community/impermanence/master";
    my-lib.url = "path:../../flakes/lib";
    public-secrets.url = "path:../../flakes/secrets";
    private-environment.url = "path:../../flakes/private/environment";
    private-system.url = "path:../../flakes/private/system";
  };
  outputs = inputs@{ self, nixpkgs, my-lib, ... }:
    my-lib.lib.mkColmenaFlake {
      name = "zoldene";
      inherit self nixpkgs;
      system = "x86_64-linux";
      targetHost = "88.198.39.152";
      targetUser = "root";
      moduleArgs = {
        pkgs-no-overlay = inputs.nixpkgs.legacyPackages.x86_64-linux;
      };
      nixosModules = with inputs; {
        impermanence = impermanence.nixosModule;
        base = ./base.nix;
        disko = ./disko.nix;
        logging = ./logging.nix;

        secrets = public-secrets.nixosModule;

        environment = private-environment.nixosModule;
        system = private-system.nixosModule;
      };
    };
}