-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
61 lines (58 loc) · 1.49 KB
/
flake.nix
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
61
{
description = "Personal flake for system configurations";
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
hardware = {
url = "github:nixos/nixos-hardware";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-colors = {
url = "github:misterio77/nix-colors";
};
hyprland = {
url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
};
nixgl = {
url = "github:nix-community/nixGL";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
nix-ld-rs = {
url = "github:nix-community/nix-ld-rs";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};
outputs = inputs:
let
args = {
inherit inputs;
inherit (inputs.self) outputs;
settings = import (./settings) (inputs);
};
inherit (args.settings) src arch pkgs;
in
{
formatter.${arch} = pkgs.nixpkgs-fmt;
nixosConfigurations = {
fw13 = inputs.nixpkgs.lib.nixosSystem ({
inherit pkgs;
modules = [ "${src}/systems/${arch}/fw13" ];
specialArgs = args;
});
};
homeConfigurations = {
"tvo@fw13" = inputs.home-manager.lib.homeManagerConfiguration ({
inherit pkgs;
modules = [ "${src}/users/${arch}/tvo@fw13" ];
extraSpecialArgs = args;
});
};
};
}