about summary refs log tree commit diff stats
path: root/flake.nix
blob: 7514aecaf7df5342b27c7983ed2df9786bf977fb (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
35
# 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,
    home-manager,
    strip_js_comments,
    ...
  } @ inputs: {
    nixosConfigurations.Tiamat = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = inputs;
      modules = [./hosts/desktop/configuration.nix (import ./home-manager/home.nix {})];
    };
    #    nixosConfigurations.Apzu = nixpkgs.lib.nixosSystem {
    #      system = "x86_64-linux";
    #      specialArgs = inputs;
    #      modules = [./hosts/laptop/configuration.nix];
    #    };
  };
}