forked from Mic92/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
95 lines (79 loc) · 2.85 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
{
description = "NixOS configuration with flakes";
nixConfig.extra-substituters = [
"https://mic92.cachix.org"
];
nixConfig.extra-trusted-public-keys = [
"mic92.cachix.org-1:gi8IhgiT3CYZnJsaW7fxznzTkMUOn1RY4GmXdT/nXYQ="
];
# To update all inputs:
# $ nix flake update
inputs = {
flake-utils.url = "github:numtide/flake-utils";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs.follows = "nixpkgs";
#systemd.url = "git+file:///home/joerg/git/systemd";
#systemd.flake = false;
nixos-generators = {
#url = "github:nix-community/nixos-generators";
url = "github:Mic92/nixos-generators/fedf7136f27490402fe8ab93e67fafae80513e9b";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:Mic92/nixpkgs/main";
# for development
#nixpkgs.url = "/home/joerg/git/nixpkgs";
nur.url = "github:nix-community/NUR";
# for development
#sops-nix.url = "/home/joerg/git/sops-nix";
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
bme680-mqtt.url = "github:Mic92/bme680-mqtt";
bme680-mqtt.inputs.utils.follows = "flake-utils";
bme680-mqtt.inputs.nixpkgs.follows = "nixpkgs";
retiolum.url = "git+https://git.thalheim.io/Mic92/retiolum";
nixos-hardware.url = "github:NixOS/nixos-hardware";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
doom-emacs.url = "github:doomemacs/doomemacs/master";
doom-emacs.flake = false;
flake-registry.url = "github:NixOS/flake-registry";
flake-registry.flake = false;
nix-ld.url = "github:Mic92/nix-ld";
nix-ld.inputs.nixpkgs.follows = "nixpkgs";
nix-ld.inputs.utils.follows = "flake-utils";
envfs.url = "github:Mic92/envfs";
envfs.inputs.nixpkgs.follows = "nixpkgs";
envfs.inputs.utils.follows = "flake-utils";
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
deploykit.url = "github:numtide/deploykit";
deploykit.inputs.nixpkgs.follows = "nixpkgs";
deploykit.inputs.flake-parts.follows = "flake-parts";
};
#outputs = {...} @ args: import ./outputs.nix args;
outputs = {
self,
flake-parts,
...
}:
(flake-parts.lib.evalFlakeModule
{inherit self;}
{
imports = [
./nixos/configurations.nix
./nixos/images/default.nix
./nixpkgs-config/homes.nix
./terraform/flake-module.nix
./nixos/modules/xonsh/flake-module.nix
./shell.nix
./ci.nix
];
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin"];
perSystem = {inputs', ...}: {
# make pkgs available to all `perSystem` functions
_module.args.pkgs = inputs'.nixpkgs.legacyPackages;
};
})
.config
.flake;
}