-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
105 lines (101 loc) · 2.52 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
description = "josh's home";
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixGL = {
url = "github:nix-community/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
};
networkmanager-nixpkgs = {
url = "github:NixOS/nixpkgs/22.05";
};
nix-analyzer = {
url = "github:jm8/nix-analyzer";
inputs.nixpkgs.follows = "nixpkgs";
};
canvas-cli = {
url = "github:mbund/canvas-cli";
};
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-vscode-extensions = {
url = "github:nix-community/nix-vscode-extensions";
};
};
outputs = {
nixpkgs,
home-manager,
nix-index-database,
networkmanager-nixpkgs,
nixGL,
...
} @ attrs: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfreePredicate = pkg:
builtins.elem (nixpkgs.lib.getName pkg) [
"zoom"
"ngrok"
"code"
"vscode"
"terraform"
];
overlays = [
(
final: prev: let
nmpkgs = networkmanager-nixpkgs.legacyPackages.x86_64-linux;
in {
inherit (nmpkgs) wpa_supplicant;
}
)
];
};
in {
homeConfigurations."josh@stryver" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = attrs;
modules = [
./home
./home/gui.nix
nix-index-database.hmModules.nix-index
{home.username = "josh";}
{home.stateVersion = "24.05";}
{home.homeDirectory = "/var/home/josh";}
{
nixGL.packages = nixGL.packages;
nixGL.vulkan.enable = true;
nixGL.defaultWrapper = "mesa";
}
];
};
homeConfigurations."josh@darnay" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = attrs;
modules = [
./home
nix-index-database.hmModules.nix-index
{home.username = "josh";}
{home.stateVersion = "22.11";}
{programs.firefox.enable = true;}
{home.homeDirectory = "/home/josh";}
];
};
nixosConfigurations.darnay = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
modules = [
./sys/darnay.nix
./sys/common.nix
];
};
};
}