aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: bab54d88c0050d069d3dc0575815940b75328ed4 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
  description = "Nix configuration";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";

    nix-darwin.url = "github:nix-darwin/nix-darwin";
    nix-darwin.inputs.nixpkgs.follows = "nixpkgs";

    home-manager.url = "github:nix-community/home-manager";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";

    site.url = "github:schererleander/site";

    neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";

    spicetify-nix.url = "github:Gerg-L/spicetify-nix";

    nixcord.url = "github:kaylorben/nixcord";

    firefox-addons.url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
  };

  outputs =
    { ... }@inputs:
    let
      linux-system = "x86_64-linux";
      darwin-system = "aarch64-darwin";
      username = "schererleander";
      overlays = [
        inputs.neovim-nightly-overlay.overlays.default
      ];
      lib = import ./lib { inherit inputs; };
    in
    {
      nixosConfigurations = {
        adam = lib.mkSystem {
          host = "adam";
          username = "schererleander";
          system = linux-system;
          overlays = overlays;
        };
        sachiel = lib.mkSystem {
          host = "sachiel";
          username = "administrator";
          system = linux-system;
          useHomeManager = false;
          extraModules = [
            inputs.site.nixosModules.default
          ];
        };
      };
      darwinConfigurations.lilith = lib.mkSystem {
        host = "lilith";
        username = username;
        system = darwin-system;
        overlays = overlays;
      };
    };
}