blob: 10eceacf6e3433c3da2fe63ba4cce8593b2e0263 (
plain)
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
|
{ config, pkgs, ... }:
let shellAliases = {
l = "lsd -lAh";
la = "lsd -lAh";
ports = "sudo lsof -i -P -n | grep LISTEN";
gco = "git checkout";
gcob = "git checkout -b";
v = "nvim";
sv = "sudo nvim";
dotsin = "sh ~/dotfiles/commit.sh";
sourceit = ". (sed 's/^/export /' .env | psub)";
rebuild = "darwin-rebuild switch --flake ~/dotfiles/nixos/mac";
};
in {
programs.fish = {
inherit shellAliases;
enable = true;
# plugins = [{
# name="foreign-env";
# src = pkgs.fetchFromGitHub {
# owner = "oh-my-fish";
# repo = "plugin-foreign-env";
# rev = "dddd9213272a0ab848d474d0cbde12ad034e65bc";
# sha256 = "00xqlyl3lffc5l0viin1nyp819wf81fncqyz87jx8ljjdhilmgbs";
# };
# }];
};
users = {
users = {
y = {
createHome = true;
home = "/home/y";
shell = pkgs.fish;
};
};
};
}
|