-
Notifications
You must be signed in to change notification settings - Fork 0
/
wsl.nix
43 lines (34 loc) · 951 Bytes
/
wsl.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
{
config,
pkgs,
lib,
inputs,
system,
...
}:
let
# Import the exported lists from packages.nix
packages = import ./packages.nix { inherit pkgs system inputs; };
dotfiles = import ./dotfiles.nix { inherit pkgs lib; };
sshConfigOverride = {
".ssh/config".text = ''
Include ~/.ssh/local_config
Host *
AddKeysToAgent yes'';
};
in
{
# allow unfree packages
nixpkgs.config.allowUnfree = true;
# Override user-specific configurations
home.username = "fuzie";
home.homeDirectory = "/home/fuzie";
home.stateVersion = "24.05";
# Override to not include gui packages
home.packages =
packages.corePackages ++ packages.devPackages ++ packages.customScripts ++ packages.emacsPackages;
# Override the `sshConfig`
home.file = sshConfigOverride // (dotfiles.emacsConfig // dotfiles.mediaConfig);
programs.home-manager.enable = true;
home.sessionVariables = dotfiles.sessionVariables;
}