-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathflake.nix
94 lines (85 loc) · 2.48 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
{
description = "An alright configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
nixpkgs-darwin.url = "github:NixOS/nixpkgs/nixpkgs-24.11-darwin";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nil.url = "github:oxalica/nil";
darwin = {
url = "github:lnl7/nix-darwin/nix-darwin-24.11";
inputs.nixpkgs.follows = "nixpkgs-darwin";
};
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
# For using new modules before the realease of the next nixos version
home-manager-master = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
ante = {
url = "github:jfecher/ante";
inputs = {
nixpkgs.follows = "nixpkgs";
parts.follows = "flake-parts";
};
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
ez-configs = {
url = "github:ehllie/ez-configs";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
};
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs: inputs.flake-parts.lib.mkFlake
{ inherit inputs; }
{
imports = [
inputs.ez-configs.flakeModule
];
systems = [
"aarch64-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
# see https://github.com/ehllie/ez-configs/blob/main/README.md
ezConfigs = {
root = ./.;
globalArgs = { inherit inputs; };
nixos.hosts.dell-builder.importDefault = false;
darwin.hosts.EllMBP.userHomeModules = [ "root" ];
home.users.root.importDefault = false;
};
perSystem = { pkgs, lib, system, ... }: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ inputs.sops-nix.overlays.default ];
};
formatter = pkgs.nixpkgs-fmt;
packages.foundryvtt = pkgs.callPackage ./packages/foundry-vtt { };
devShells.default = pkgs.mkShell {
name = "default-shell";
packages = lib.attrValues {
inherit (pkgs)
age
cloudflared
nixos-rebuild
sops
ssh-to-age
;
};
};
};
};
}