-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdefault.nix
More file actions
34 lines (32 loc) · 897 Bytes
/
default.nix
File metadata and controls
34 lines (32 loc) · 897 Bytes
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
{ ext_config # see bin/hm-install for the structure
, system ? builtins.currentSystem
, ...
}:
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs {
inherit system;
overlays = [
# Pin VSCode to a specific nixpkgs hash, as it often breaks with updates
(_final: _prev: {
vscode = (import sources.vscode-nixpkgs-pin { inherit system; }).vscode;
})
# Pin Claude Code to latest nixpkgs to get the latest version
(_final: _prev: {
claude-code = (import sources.claude-code-nixpkgs-pin { inherit system; }).claude-code;
})
];
};
config = {
paths = {
nixpkgs = pkgs.path;
home-manager = (import sources.home-manager { }).path;
};
user = "";
git = {
name = "";
email = "";
};
} // ext_config; # should override the empty fields
in
import ./hm { inherit pkgs config; }