about summary refs log tree commit diff stats
path: root/flake.nix
blob: 0389bd863bac73934c95f70ef50007e6a94d53f2 (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
34
# vim: ts=2
{
  description = "Nixos system config";

  inputs = {
    strip_js_comments = {
      url = "git+https://codeberg.org/ene/strip_js_comments.git";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    home-manager = {
      url = "github:nix-community/home-manager/master";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = {
    self,
    nixpkgs,
    strip_js_comments,
    ...
  } @ attrs: {
    nixosConfigurations.Tiamat = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = attrs;
      modules = [./hosts/Tiamat/configuration.nix];
    };
    nixosConfigurations.Apzu = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = attrs;
      modules = [./hosts/Apzu/configuration.nix];
    };
  };
}