-
Notifications
You must be signed in to change notification settings - Fork 0
/
ucph.nix
40 lines (32 loc) · 888 Bytes
/
ucph.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
{
pkgs,
system,
inputs,
lib,
...
}:
let
username = "jga";
# Import the exported lists from packages.nix
packages = import ./packages.nix { inherit pkgs system lib inputs; };
dotfiles = import ./dotfiles.nix { inherit pkgs; };
in
{
home.username = "${username}";
home.homeDirectory = "/home/${username}";
home.stateVersion = "24.05";
nixpkgs.config.allowUnfree = true;
programs.home-manager.enable = true;
# Correct usage of home.file
home.file = dotfiles.emacsConfig // dotfiles.mediaConfig // dotfiles.sshConfig;
home.packages =
packages.corePackages
++ packages.devPackages
++ packages.guiPackages
++ packages.customScripts
++ packages.emacsPackages;
# Include session variables from dotfiles.nix
home.sessionVariables = dotfiles.sessionVariables;
# Fonts configuration if required
fonts = dotfiles.fontsConfig;
}