-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpi.nix
46 lines (37 loc) · 1011 Bytes
/
pi.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
{
config,
pkgs,
lib,
inputs,
system,
...
}:
let
# Import the exported lists from packages.nix
packages = import ./packages.nix { inherit pkgs system lib; };
dotfiles = import ./dotfiles.nix { inherit pkgs; };
sshConfigOverride = {
".ssh/config".text = ''
Host *
AddKeysToAgent yes
'';
};
packagesToExclude = with pkgs; [
texlive.combined.scheme-full
texlivePackages.fontawesome5
];
piPackages = lib.filter (pkg: !(lib.elem pkg packagesToExclude)) (
packages.corePackages ++ packages.devPackages ++ packages.customScripts
);
in
{
home.username = "pi";
home.homeDirectory = "/home/pi";
home.stateVersion = "24.05"; # Please read the comment before changing.
home.packages = piPackages;
home.file = sshConfigOverride // (dotfiles.emacsConfig // dotfiles.mediaConfig);
home.sessionVariables = dotfiles.sessionVariables;
programs.home-manager.enable = true;
nixpkgs.config.allowUnfree = true;
fonts = dotfiles.fontsConfig;
}