-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
100 lines (84 loc) · 2.23 KB
/
flake.nix
File metadata and controls
100 lines (84 loc) · 2.23 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
{
# comment
description = "Aaron’s NixOS configurations";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-25.11-darwin";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
nix-darwin.url = "github:nix-darwin/nix-darwin/nix-darwin-25.11";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
home-manager = {
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
jujutsu = {
url = "github:jj-vcs/jj";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
zig = {
url = "github:mitchellh/zig-overlay";
inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems";
};
};
outputs =
{
nix-darwin,
home-manager,
nixpkgs,
nixpkgs-unstable,
jujutsu,
self,
systems,
...
}@inputs:
let
overlays = [
inputs.neovim-nightly-overlay.overlays.default
inputs.jujutsu.overlays.default
];
mkSystem = import ./lib/mksystem.nix {
inherit
inputs
overlays
;
};
eachSystem = nixpkgs.lib.genAttrs (import systems);
in
{
darwinConfigurations.lovelace = mkSystem "macbook-pro-mx" {
system = "aarch64-darwin";
user = "aaron";
darwin = true;
};
nixosConfigurations.ritchie = mkSystem "dell-precision-3430" {
system = "x86_64-linux";
user = "aaron";
};
devShells = eachSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
default = pkgs.mkShell {
packages = builtins.attrValues {
inherit (pkgs)
nix-output-monitor
;
};
};
}
);
formatter = eachSystem (system: (import nixpkgs { inherit system; }).nixfmt-tree);
};
}