-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
111 lines (97 loc) · 3.07 KB
/
flake.nix
File metadata and controls
111 lines (97 loc) · 3.07 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
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
{
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://nixpkgs-unfree.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nixpkgs-unfree.cachix.org-1:hqvoInulhbV4nJ9yJOEr+4wxhDV4xq2d1DK7S6Nj6rs="
];
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
stable.url = "github:nixos/nixpkgs/release-25.11";
flake-utils.url = "github:numtide/flake-utils";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-gl = {
# url = "github:nix-community/nixgl";
url = "github:KeeTraxx/nixgl/fix-nvidia-kernel-param"; # https://github.com/nix-community/nixGL/pull/221
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
helium = {
url = "github:schembriaiden/helium-browser-nix-flake";
inputs.nixpkgs.follows = "nixpkgs";
inputs.utils.follows = "flake-utils";
};
dank-pinentry = {
url = "github:Pacman99/DankPinentry";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs@{
nixpkgs,
stable,
home-manager,
nix-gl,
darwin,
...
}:
let
inherit (darwin.lib) darwinSystem;
inherit (home-manager.lib) homeManagerConfiguration;
homeModules = import ./modules/home;
darwinModules = import ./modules/darwin;
in
rec {
formatter = {
x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt;
aarch64-darwin = nixpkgs.legacyPackages.aarch64-darwin.nixfmt;
};
overlays = {
additions = final: _: {
helium = inputs.helium.packages.${final.stdenv.hostPlatform.system}.default;
tbsm = final.callPackage ./pkgs/tbsm { };
spmd = final.callPackage ./pkgs/spmd { };
};
stable = final: _: {
stablepkgs = import stable {
system = final.system;
config = final.config;
};
};
};
darwinConfigurations = {
"frontify" = darwinSystem {
pkgs = nixpkgs.legacyPackages.aarch64-darwin;
system = "aarch64-darwin";
modules = darwinModules ++ [ ./hosts/frontify/system.nix ];
};
};
homeConfigurations = {
"caronte" = homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs nix-gl overlays; };
modules = homeModules ++ [ ./hosts/caronte.nix ];
};
"frontify" = homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.aarch64-darwin;
extraSpecialArgs = { inherit inputs overlays; };
modules = homeModules ++ [ ./hosts/frontify/home.nix ];
};
};
};
}