-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
80 lines (72 loc) · 2.31 KB
/
Copy pathflake.nix
File metadata and controls
80 lines (72 loc) · 2.31 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
{
description = "axseem's NixOS Config";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# Codex releases faster than they reach the main unstable channel.
codex-pkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
# Temporary FreeCAD fallback: gdal-minimal 3.13.1 fails its Zarr test.
fallback-pkgs.url = "github:NixOS/nixpkgs/65179426c83bb3f6bc14898b42ea1c6f01d374b0";
# Pinned to a known-working revision for neovim plugins.
# Bump when nixos-unstable catches up.
nvim-stable-pkgs.url = "github:NixOS/nixpkgs/70801e06d9730c4f1704fbd3bbf5b8e11c03a2a7";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nvim = {
url = "github:axseem/nvim";
inputs.nixpkgs.follows = "nvim-stable-pkgs";
};
opencode-config = {
url = "git+https://codeberg.org/axseem/opencode-config";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
pre-commit-hooks = {
url = "github:cachix/pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
nixpkgs,
nix-darwin,
...
} @ inputs: let
systems = ["x86_64-linux" "aarch64-darwin" "aarch64-linux"];
forAllSystems = nixpkgs.lib.genAttrs systems;
devFor = system:
import ./nix/dev.nix {
pkgs = nixpkgs.legacyPackages.${system};
inherit inputs;
};
in {
formatter = forAllSystems (system: (devFor system).formatter);
checks = forAllSystems (system: (devFor system).checks);
devShells = forAllSystems (system: (devFor system).devShells);
nixosConfigurations.ideapad = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs;
username = "axseem";
};
modules = [
./hosts/nixos/ideapad/configuration.nix
];
};
darwinConfigurations.macbook = nix-darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = {
inherit inputs;
username = "max";
};
modules = [
./hosts/darwin/macbook/default.nix
];
};
};
}