-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
55 lines (54 loc) · 1.67 KB
/
flake.nix
File metadata and controls
55 lines (54 loc) · 1.67 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
{
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 = "";
};
SHID = {
url = "github:Notarin/SHID";
inputs.nixpkgs.follows = "nixpkgs";
inputs.treefmt-nix.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.snix.follows = "";
inputs.stylix.follows = "";
inputs.treefmt-nix.follows = "";
};
};
outputs = {
nixpkgs,
self,
SHID,
...
}: let
systems = ["x86_64-linux"];
buildAllSystems = output: builtins.foldl' nixpkgs.lib.recursiveUpdate {} (builtins.map output systems);
in
buildAllSystems (
system: let
pkgs = import nixpkgs {
inherit system;
};
in {
packages.x86_64-linux.installer = self.nixosConfigurations.installer.config.system.build.isoImage;
formatter.${system} = pkgs.callPackage ./formatter.nix {};
checks.${system}.formatting = pkgs.callPackage ./formatter.nix {checkDir = self;};
devShells.${system}.default = SHID.devShells.${system}.default;
nixosConfigurations = import ./NixOS {inherit self;};
}
);
}