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