-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
39 lines (36 loc) · 1.08 KB
/
flake.nix
File metadata and controls
39 lines (36 loc) · 1.08 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
{
description = "Nixos configuration flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
kmonad = {
url = "github:kmonad/kmonad?dir=nix&ref=dccd498de1ffbc221a3b95c29fb9ea70168673a6";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, ... } @inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
devToolsLib = import ./modules/dev-tools.nix { inherit pkgs inputs; };
in
{
packages.${system}.dev-tools = devToolsLib.dev-tools;
nixosConfigurations = nixpkgs.lib.genAttrs
[
"nixos"
"nixstation"
] # do not change this manually
(hostname: nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; inherit (devToolsLib) devTools; system = "x86_64-linux"; };
modules = [
./modules/configuration.nix
./hosts/${hostname} { networking.hostName = hostname; }
inputs.kmonad.nixosModules.default
];
});
};
}