-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
129 lines (106 loc) · 3.47 KB
/
flake.nix
File metadata and controls
129 lines (106 loc) · 3.47 KB
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
128
129
{
description = "NixOS System Configuration Management Flake for Multiple Hosts";
inputs = {
agenix.url = "github:ryantm/agenix";
attic.url = "github:zhaofengli/attic";
bongocat.url = "github:saatvik333/wayland-bongocat?ref=v1.3.2";
colmena.url = "github:zhaofengli/colmena";
llama-cpp.url = "github:ggml-org/llama.cpp?ref=b7541";
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable&shallow=1";
stablepkgs.url = "github:nixos/nixpkgs?ref=nixos-25.11&shallow=1";
vicinae.url = "github:vicinaehq/vicinae?ref=v0.20.9";
direnv-instant = {
url = "github:Mic92/direnv-instant";
inputs.nixpkgs.follows = "nixpkgs";
};
librepods = {
url = "github:Chrisbattarbee/librepods";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
nur = {
url = "github:nix-community/NUR?ref=95c043c";
inputs.nixpkgs.follows = "nixpkgs";
};
nixgl = {
url = "github:sreedevk/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
system-manager = {
url = "github:numtide/system-manager?ref=v1.0.0";
inputs.nixpkgs.follows = "nixpkgs";
};
quickshell = {
url = "github:outfoxxed/quickshell?ref=v0.2.1";
inputs.nixpkgs.follows = "nixpkgs";
};
noctalia = {
url = "github:noctalia-dev/noctalia-shell?ref=v4.7.2";
inputs.nixpkgs.follows = "nixpkgs";
};
niri = {
url = "github:sodiboo/niri-flake?ref=9c4cb4a";
inputs.nixpkgs.follows = "nixpkgs";
};
pam = {
url = "github:Cu3PO42/pam_shim?ref=next";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ self, ... } @ inputs:
let
inherit (self) outputs;
opts = import ./nixos/opts.nix;
systems = {
x86 = "x86_64-linux";
arm64 = "aarch64-linux";
};
inherit (import ./lib { inherit inputs outputs opts systems; })
mkSystems
mkHomes
mkFormatters
mkNonNixSystems
mkColmenaFromNixOSConfigurations
forEachSystem;
in
{
# Colmena Deployments
colmenaHive = mkColmenaFromNixOSConfigurations self.nixosConfigurations;
# Formatters for Nix Files
formatter = mkFormatters systems;
# checks
checks = forEachSystem (pkgs: {
lint = pkgs.runCommand "nixlint" { nativeBuildInputs = with pkgs; [ deadnix statix ]; } ''
deadnix --fail ${./.}
statix check ${./.}
touch $out
'';
});
# Operating System Level Configurations
nixosConfigurations =
mkSystems [
];
# Arch linux system configs
systemConfigs =
mkNonNixSystems [
{ host = "phoenix"; system = systems.x86; }
];
# User Level Home Manager Configurations
homeConfigurations =
mkHomes [
{ user = "sreedev"; host = "phoenix"; system = systems.x86; }
];
};
}