-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
31 lines (28 loc) · 845 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
{
description = "GDWR's Nix Configs";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ self, nixpkgs, home-manager, ... }: {
homeConfigurations = {
gdwr = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # This should be inherited from the caller machine?
extraSpecialArgs = { inherit inputs; };
modules = [
./homes/gdwr
];
};
};
nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [ ./hosts/desktop ];
};
};
};
}