-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
127 lines (121 loc) · 3.53 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
description = "My systems configs. Following the patterns of github:Misterio77/nix-starter-configs";
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://helix.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
];
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
helix.url = "github:helix-editor/helix/";
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
ags.url = "github:kiike/ags/wip/rectangular-progress";
autofirma-nix.url = "git+https://github.com/nilp0inter/autofirma-nix/";
niri.url = "git+https://github.com/sodiboo/niri-flake";
};
outputs =
{
self,
nixpkgs,
home-manager,
nix-index-database,
niri,
autofirma-nix,
...
}@inputs:
let
inherit (self) outputs;
systems = [
"aarch64-linux"
"x86_64-linux"
];
lib = nixpkgs.lib // home-manager.lib;
forEachSystem = f: lib.genAttrs systems (system: f pkgsFor.${system});
pkgsFor = lib.genAttrs systems (
system:
import nixpkgs {
inherit system;
config.allowUnfree = true;
}
);
in
{
inherit lib;
packages = forEachSystem (pkgs: import ./packages { inherit pkgs; });
overlays = import ./overlays { inherit inputs; };
nixosConfigurations = {
dhalsim = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs;
};
modules = [ ./hosts/dhalsim ];
};
balrog = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs;
};
modules = [
inputs.niri.nixosModules.niri
./hosts/balrog
];
};
ehonda = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs;
};
modules = [ ./hosts/ehonda ];
};
};
homeConfigurations = {
"kiike@dhalsim" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {
inherit inputs outputs;
};
modules = [
nix-index-database.hmModules.nix-index
autofirma-nix.homeManagerModules.default
./home/kiike/dhalsim
./home/features/nvidia.nix
];
};
"kiike" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {
inherit inputs outputs;
};
modules = [
nix-index-database.hmModules.nix-index
./home/kiike/ehonda
];
};
"kiike@balrog" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {
inherit inputs outputs;
};
modules = [
autofirma-nix.homeManagerModules.default
nix-index-database.hmModules.nix-index
niri.homeModules.config
./home/kiike/balrog
];
};
};
};
}