-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfish.mod.nix
68 lines (60 loc) · 1.57 KB
/
fish.mod.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
59
60
61
62
63
64
65
66
67
68
{nix-index-database, ...}: {
universal.modules = [
nix-index-database.nixosModules.nix-index
({pkgs, ...}: {
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting
function fish_command_not_found
, $argv
end
set machines "iridium" "sodium" "nitrogen" "oxygen"
set EDITOR kak
'';
};
users.defaultUserShell = pkgs.fish;
programs.nix-index-database.comma.enable = true;
programs.command-not-found.enable = false;
programs.nix-index.enableFishIntegration = false;
})
];
universal.home_modules = [
{
programs = {
fish = {
enable = true;
shellAliases = {
eza = "eza --long --all --icons --time-style long-iso";
"@" = "kitten ssh";
};
};
powerline-go = {
enable = true;
settings.hostname-only-if-ssh = true;
modules = [
"host"
"cwd"
"perms"
"git"
"hg"
"nix-shell"
"jobs"
# "duration" # not working
"exit"
"root"
];
};
bash.enable = true; # Sometimes, applications drop me into a bash shell against my will.
};
}
];
personal.home_modules = [
{
programs.fish.shellAliases = {
bwsh = "BW_SESSION=$(bw unlock --raw) fish; bw lock";
pki-pass = "bw list items | jq -r '.[] | select(.name == \"PKI '$(hostname)'\") | .notes'";
};
}
];
}