-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
59 lines (55 loc) · 1.27 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{ inputs, lib, config, pkgs, home-manager, ... }:
let
mnt-home = "/mnt/data/home";
host = config.networking.hostName;
in
{
imports = [
./modules
];
home = {
username = "step";
homeDirectory = "/home/step";
packages = with pkgs; [
git
git-lfs
tree
htop
tmux
ranger
neovim
gnupg
git-crypt
pinentry-gnome
dconf
gnome.gnome-terminal
];
file = {
Documents.source = config.lib.file.mkOutOfStoreSymlink "${mnt-home}/Documents";
Documents.target = "Documents";
Personal.source = config.lib.file.mkOutOfStoreSymlink "${mnt-home}/Personal";
Personal.target = "Personal";
Code.source = config.lib.file.mkOutOfStoreSymlink "${mnt-home}/Code";
Code.target = "Code";
".condarc".text = ''
channels:
- conda-forge
'';
};
};
programs.git.lfs.enable = true;
xdg = {
userDirs = {
enable = true;
desktop = "\$HOME/";
documents = "\$HOME/Documents";
download = "\$HOME/Downloads";
music = "\$HOME/";
templates = "\$HOME/";
pictures = "\$HOME/";
videos = "\$HOME/";
};
};
# release: https://nix-community.github.io/home-manager/release-notes.html
home.stateVersion = "22.11";
}