-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
35 lines (31 loc) · 836 Bytes
/
home.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
{
lib,
pkgs,
username,
...
}: let
isLinux = pkgs.stdenv.hostPlatform.isLinux;
isDarwin = pkgs.stdenv.hostPlatform.isDarwin;
unsupported = builtins.abort "Unsupported platform";
in {
home.username = username;
#WARNING: Don't change this without reading docs
home.stateVersion = "24.11";
# Let home manager manage itself
programs.home-manager.enable = true;
home.homeDirectory =
if isLinux
then "/home/${username}"
else if isDarwin
then "/Users/${username}"
else unsupported;
fonts.fontconfig.enable = isLinux;
# fonts.fontconfig.enable = true; # Enable fonts
xdg.enable = true;
nix = {
# Configure the Nix package manager itself
# TODO: Remove use of lib.mkForce
package = lib.mkForce pkgs.nix;
settings.experimental-features = ["nix-command" "flakes"];
};
}