-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
100 lines (98 loc) · 2.77 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
{
description = "Quinn's personal infra hub";
inputs = {
nixpkgs-master.url = "github:nixos/nixpkgs/master";
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/nixos-24.05";
nixos-hardware.url = "github:nixos/nixos-hardware";
nix-latest.url = "github:nixos/nix/latest-release";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-generators.url = "github:nix-community/nixos-generators";
secrix.url = "github:Platonic-Systems/secrix";
mobile-nixos = {
url = "github:nixos/mobile-nixos";
flake = false;
};
doom = {
url = "github:doomemacs/doomemacs";
flake = false;
};
emacs-overlay = {
url = "github:nix-community/emacs-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
hercules-ci-agent.url = "github:hercules-ci/hercules-ci-agent";
hercules-ci-effects = {
url = "github:hercules-ci/hercules-ci-effects";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs-master,
nixpkgs,
nixpkgs-stable,
nixos-hardware,
nix-latest,
home-manager,
nixos-generators,
secrix,
mobile-nixos,
doom,
emacs-overlay,
treefmt-nix,
hercules-ci-agent,
hercules-ci-effects,
}@inputs:
with import ./machines { inherit inputs; };
let
website = with common; import ./website/soupault.nix { inherit pkgs self; };
operations =
let
machines = {
inherit
laptop
server
uptime
phone
ubuntu
common
;
};
in
import ./operations.nix {
inherit self machines treefmt-nix;
server-deploy = server.deploymenteffect;
uptime-deploy = uptime.deploymenteffect;
};
utils = import ./machines/utils.nix;
immobiles = [
laptop
server
uptime
];
mobiles = [ ]; # [ phone ];
nonNixos = [ ubuntu ];
in
with operations;
{
nixosConfigurations = utils.osForAll (immobiles ++ mobiles);
homeConfigurations = utils.hmForAll (nonNixos ++ [ laptop ]);
packages.${common.system} = {
inherit website;
} // (utils.packagesFromAllOs { inherit immobiles mobiles nonNixos; });
devShells.${laptop.system} = {
"${laptop.drv-name-prefix}:homeshell" = laptop.homeshell;
} // (with common; import ./shells { inherit pkgs pkgs-stable; });
apps.${laptop.system}.secrix = secrix.secrix self;
inherit formatter checks herculesCI;
};
}