-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
57 lines (47 loc) · 1.22 KB
/
Copy pathflake.nix
File metadata and controls
57 lines (47 loc) · 1.22 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
51
52
53
54
55
56
57
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nix-bitcoin.url = "github:fort-nix/nix-bitcoin/release";
};
outputs = {
self,
nixpkgs,
home-manager,
...
} @ inputs: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
username = "darksome";
specialArgs = {
inherit inputs username;
};
extraSpecialArgs = specialArgs;
in {
nixosConfigurations = {
x16 = nixpkgs.lib.nixosSystem {
inherit system specialArgs;
modules = [./nixos/x16.nix];
};
};
homeConfigurations = {
core = home-manager.lib.homeManagerConfiguration {
inherit pkgs extraSpecialArgs;
modules = [./home-manager/core.nix];
};
x16 = home-manager.lib.homeManagerConfiguration {
inherit pkgs extraSpecialArgs;
modules = [./home-manager/x16.nix];
};
};
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = with pkgs; [
pmbootstrap
];
};
};
}