-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
139 lines (121 loc) · 3.99 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
description = "Living description of personal life support systems";
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://hurricanehrndz.cachix.org"
"https://cache.nixos.org "
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"hurricanehrndz.cachix.org-1:rKwB3P3FZ0T0Ck1KierCaO5PITp6njsQniYlXPVhFuA="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
};
inputs = {
# Package sets
nixpkgs.follows = "nixos-unstable";
nixos-stable.url = "github:NixOS/nixpkgs/nixos-24.11";
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs-pr259776.url = "github:Leixb/nixpkgs/rustdesk-123";
# software
# flatpaks.url = "github:GermanBread/declarative-flatpak/stable";
# flatpaks.inputs.nixpkgs.follows = "nixpkgs";
# flake helpers
flake-parts.url = "github:hercules-ci/flake-parts";
haumea = {
url = "github:nix-community/haumea/v0.2.2";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
darwin.url = "github:lnl7/nix-darwin/master";
darwin.inputs.nixpkgs.follows = "nixpkgs-master";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# devshell
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
devshell.url = "github:numtide/devshell";
devenv.url = "github:cachix/devenv";
# others
git-fat.url = "github:hurricanehrndz/git-fat";
# git-fat.inputs.nixpkgs.follows = "nixpkgs";
# System tools
snapraid-runner.url = "github:hurricanehrndz/snapraid-runner/hrndz";
snapraid-runner.inputs.nixpkgs.follows = "nixpkgs";
# personal dev environment
pdenv.url = "github:hurricanehrndz/pdenv";
# tmux
extrakto-src.url = "github:laktak/extrakto";
extrakto-src.flake = false;
tmux-catppuccin-src.url = "github:catppuccin/tmux";
tmux-catppuccin-src.flake = false;
};
outputs = inputs @ {
self,
flake-parts,
nixpkgs,
haumea,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
./flake-modules/homeConfigurations.nix
./flake-modules/sharedProfiles.nix
./darwin/configurations.nix
./nixos/configurations.nix
./home/configuration.nix
./packages
./lib
inputs.devshell.flakeModule
];
systems = ["aarch64-darwin" "x86_64-linux"];
perSystem = {
system,
inputs',
self',
...
}: let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
config.permittedInsecurePackages = [
"aspnetcore-runtime-6.0.36"
"aspnetcore-runtime-wrapped-6.0.36"
"dotnet-sdk-6.0.428"
"dotnet-sdk-wrapped-6.0.428"
];
overlays = [
inputs.agenix.overlays.default
inputs.devshell.overlays.default
inputs.snapraid-runner.overlays.default
# (final: prev: {
# pam_ssh_agent_auth = inputs.nixpkgs-master.legacyPackages.${system}.pam_ssh_agent_auth;
# })
];
};
in {
_module.args = {
inherit pkgs;
};
formatter = inputs'.nixpkgs.legacyPackages.alejandra;
devShells = haumea.lib.load {
src = ./shells;
inputs = {
inherit inputs inputs' pkgs;
flake = self';
};
};
};
flake = {
# shared importables :: may be used within system configurations for any
# supported operating system (e.g. nixos, nix-darwin).
sharedProfiles = self.lib.rakeLeaves ./profiles;
};
};
}