-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
50 lines (48 loc) · 1.41 KB
/
flake.nix
File metadata and controls
50 lines (48 loc) · 1.41 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
{
description = "System Flake";
inputs = {
home-manager = {
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
nix-darwin = {
url = "github:nix-darwin/nix-darwin/nix-darwin-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs:
let
inputs' = inputs // {
# From https://lix.systems/add-to-config/#flake-based-configurations
# Applies to both nix-darwin and nixos
lix-module =
{ pkgs, ... }:
{
nixpkgs.overlays = [
(final: prev: {
inherit (final.lixPackageSets.stable)
nixpkgs-review
# nix-direnv # Broken, instructions need to be updated probably
nix-eval-jobs
nix-fast-build
colmena
;
})
];
nix.package = pkgs.lixPackageSets.stable.lix;
};
};
importSubmodule = path: import path inputs';
submodules = [
./nix/hosts/hyper-v1
./nix/hosts/macbook-m4-pro
./nix/hosts/mammal
./nix/hosts/macbook-pro-2019
./nix/hosts/wsl
./nix/hosts/zephyrus
];
in
builtins.foldl' (inputs.nixpkgs.lib.recursiveUpdate) { } (builtins.map importSubmodule submodules);
}