-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.nix
More file actions
118 lines (112 loc) · 1.94 KB
/
base.nix
File metadata and controls
118 lines (112 loc) · 1.94 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
config,
pkgs,
lib,
...
}: let
simpleFiles = {
".ansible.cfg" = "ansible/ansible.cfg";
".bash_logout" = "bash/bash_logout";
".bash_profile" = "bash/bash_profile";
".bashrc" = "bash/bashrc";
".dircolors" = "coreutils/dircolors";
".inputrc" = "readline/inputrc";
".profile" = "sh/profile";
".screenrc" = "screen/screenrc";
".shrc" = "sh/shrc";
".ssh/config" = "ssh/config";
};
fileAttrs =
lib.mapAttrs (target: src: {source = ./config/${src};}) simpleFiles;
configDirs = [
"bash"
"fish"
"kitty"
"nushell"
"nvim"
"sh"
"sway"
"wezterm"
"xkb"
"xonsh"
];
dirAttrs =
lib.genAttrs
(map (n: ".config/${n}") configDirs)
(path: {
source = ./config/${builtins.baseNameOf path};
recursive = true;
});
in {
home = {
username = "jonathan";
stateVersion = "25.11";
homeDirectory = "/var/home/jonathan";
packages = with pkgs; [
age
aria2
bat
borgbackup
comma
curl
devbox
difftastic
direnv
doggo
dool
duf
eza
fd
fish
fishPlugins.bass
fishPlugins.fzf-fish
fishPlugins.git-abbr
fzf
gron
jj
jq
just
lftp
lnav
ncdu
nmap
nushell
nushellPlugins.skim
pandoc
progress
pv
pwgen
rclone
ripgrep
rsync
shellcheck
skim
starship
testssl
tig
trash-cli
ugrep
vimPlugins.vim-plug
xh
yq
yt-dlp
zellij
zoxide
];
file = fileAttrs // dirAttrs;
};
programs = {
home-manager.enable = true;
zoxide.enable = true;
fish.enable = true;
neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
defaultEditor = true;
};
starship = import lib/starship.nix;
git = import lib/git.nix;
};
}