-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
78 lines (60 loc) · 2 KB
/
flake.nix
File metadata and controls
78 lines (60 loc) · 2 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
{
description = "I've nixed any chance I have at human interaction by building this config.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
home.url = "github:nix-community/home-manager";
home.inputs.nixpkgs.follows = "nixpkgs";
darwin.url = "github:nix-darwin/nix-darwin";
darwin.inputs.nixpkgs.follows = "nixpkgs";
impermanence.url = "github:nix-community/impermanence";
nixos-cli.url = "github:nix-community/nixos-cli";
optnix.url = "sourcehut:~watersucks/optnix";
sops-nix.url = "github:Mic92/sops-nix";
nixago.url = "github:nix-community/nixago";
nixago.inputs.nixpkgs.follows = "nixpkgs";
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-ai-tools.url = "github:numtide/nix-ai-tools";
nix-ai-tools.inputs.nixpkgs.follows = "nixpkgs";
sanjay-soup.url = "sourcehut:~watersucks/sanjay-soup";
sanjay-soup.inputs.nixpkgs.follows = "nixpkgs";
sanjay-soup.inputs.flake-parts.follows = "flake-parts";
};
outputs = {
self,
nixpkgs,
flake-parts,
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
# This is for nixd, a little bit of a misleading name
# but this exposes module options from flake-parts.
debug = true;
imports = [
./modules/shell.nix
./modules/nvfetcher.nix
./modules/ssh-keys.nix
./modules/options-doc.nix
./modules/srht.nix
./hosts/nixos
./hosts/darwin
./home
./pkgs
./templates
];
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin"];
perSystem = {system, ...}: {
_module.args = {
inherit self inputs;
pkgs = import nixpkgs {
inherit system;
overlays = [self.overlays.default];
config.allowUnfree = true;
};
};
};
};
}