-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
69 lines (68 loc) · 2.11 KB
/
Copy pathflake.nix
File metadata and controls
69 lines (68 loc) · 2.11 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
{
inputs = {
nixpkgs.follows = "home-manager/nixpkgs";
impermanence.url = "github:nix-community/impermanence";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
snix-bot = {
url = "github:Notarin/Snix-Bot";
inputs.nixpkgs.follows = "nixpkgs";
inputs.treefmt-nix.follows = "";
inputs.SHID.follows = "";
};
# Pinning my home-manager so I may follow this flake to its nixpkgs
home-manager = {
url = "github:Notarin/home-manager";
# Nuke every input besides exactly what I need
inputs.home-manager.follows = "";
inputs.nix-vscode-extensions.follows = "";
inputs.nixcord.follows = "";
inputs.stylix.follows = "";
};
};
outputs = {
nixpkgs,
self,
...
}: let
systems = ["x86_64-linux"];
buildAllSystems = output: builtins.foldl' nixpkgs.lib.recursiveUpdate {} (map output systems);
in
nixpkgs.lib.recursiveUpdate (buildAllSystems (
system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages.${system}.sillytavern = pkgs.callPackage ./packages/sillytavern.nix {};
formatter.${system} = pkgs.callPackage ./formatter.nix {};
checks.${system}.formatting = pkgs.callPackage ./formatter.nix {checkDir = self;};
}
)) {
packages.x86_64-linux.installer = self.nixosConfigurations.installer.config.system.build.isoImage;
nixosConfigurations = {
uriel = nixpkgs.lib.nixosSystem {
specialArgs = {inherit self;};
modules = [
./nixosModules
{hostname = "uriel";}
];
};
gabriel = nixpkgs.lib.nixosSystem {
specialArgs = {inherit self;};
modules = [
./nixosModules
{hostname = "gabriel";}
];
};
installer = nixpkgs.lib.nixosSystem {
specialArgs = {inherit self;};
modules = [
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
./nixosModules
{hostname = "installer";}
];
};
};
};
}