-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
executable file
·112 lines (110 loc) · 2.7 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
{
description = "NixOS configuration that follows fuyu-no-kosei.";
outputs = inputs @ {
flake-utils,
nixpkgs,
...
}: let
inherit (inputs.nixpkgs) lib;
in
flake-utils.lib.eachDefaultSystemPassThrough (system: let
basePkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
pkgs =
basePkgs.appendOverlays
[
inputs.fuyuvim.overlays.default
inputs.nur.overlays.default
];
in {
nixosConfigurations = let
loadSystems = inputs.haumea.lib.load {
src = ./src/systems;
loader = inputs.haumea.lib.loaders.verbatim;
};
systemNames = builtins.attrNames loadSystems;
in
lib.attrsets.genAttrs systemNames
(systemName:
import ./src/systems/${systemName}/${systemName}.nix {inherit inputs lib pkgs;});
})
// flake-utils.lib.eachDefaultSystem (system: let
pkgs = inputs.nixpkgs.legacyPackages.${system};
in {
devShells = import ./src/dev/shell.nix {inherit pkgs;};
});
inputs = {
assets = {
url = "github:TahlonBrahic/assets";
flake = false;
};
kosei = {
url = "github:TahlonBrahic/fuyu-no-kosei";
inputs.nixpkgs.follows = "nixpkgs";
};
fuyu-no-nur = {
url = "github:TahlonBrahic/fuyu-no-nur";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
fuyuvim = {
url = "github:TahlonBrahic/fuyu-no-neovim";
inputs = {
nixpkgs.follows = "nixpkgs";
fuyu-no-nur.follows = "fuyu-no-nur";
};
};
haumea = {
url = "github:nix-community/haumea/v0.2.2";
};
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
impermanence = {
url = "github:nix-community/impermanence";
};
jeezyvim = {
url = "github:LGUG2Z/JeezyVim";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
nur = {
url = "github:nix-community/NUR";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
stylix = {
url = "github:danth/stylix/release-24.11";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
nixos-wsl = {
url = "github:nix-community/NixOS-WSL";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
};
}