diff options
author | polwex <polwex@sortug.com> | 2024-07-21 01:49:04 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2024-07-21 01:49:04 +0700 |
commit | e64f7a78e01e5fa661471cb518cc71fc33223b5a (patch) | |
tree | 691c444cf66e2f9d1ee63e4589ed09ec502baa3b /hosts/mac/m1mba/users.nix | |
parent | 0816d59542658a62928050ef5f08e1460e554959 (diff) |
m
Diffstat (limited to 'hosts/mac/m1mba/users.nix')
-rw-r--r-- | hosts/mac/m1mba/users.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/hosts/mac/m1mba/users.nix b/hosts/mac/m1mba/users.nix new file mode 100644 index 0000000..10eceac --- /dev/null +++ b/hosts/mac/m1mba/users.nix @@ -0,0 +1,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; + }; + }; + }; +} + + |