-
Notifications
You must be signed in to change notification settings - Fork 0
/
yoga.nix
39 lines (31 loc) · 875 Bytes
/
yoga.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
{
pkgs,
system,
inputs,
...
}:
let
username = "jga";
# Import the exported lists from packages.nix
packages = import ./packages.nix { inherit pkgs system 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;
}