-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
executable file
·35 lines (32 loc) · 961 Bytes
/
flake.nix
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
{
description = "Maarten's Nix config";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let
inherit (self) outputs;
nixModules = [
./configuration.nix
home-manager.nixosModules.home-manager
{ home-manager.users.maarten = import ./home.nix; }
];
in {
nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
system = "x86_64-linux";
modules = [ ./hardware/laptop.nix ] ++ nixModules;
};
vm = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
system = "x86_64-linux";
modules = [ ./hardware/bm.nix ] ++ nixModules;
};
};
};
}