summaryrefslogtreecommitdiff
path: root/hosts/users.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/users.nix')
-rw-r--r--hosts/users.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/hosts/users.nix b/hosts/users.nix
new file mode 100644
index 0000000..6c5394b
--- /dev/null
+++ b/hosts/users.nix
@@ -0,0 +1,55 @@
+{ 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)";
+ sqlite = "rlwrap sqlite3";
+ # rsyn = "rsync -zuvaP --filter=':- .gitignore'"
+};
+
+in {
+ programs.fish = {
+ inherit shellAliases;
+ enable = true;
+ shellInit = ''
+ if not functions -q fisher
+ echo "no fisher"
+ curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source
+ end
+ '';
+ # fisher install jorgebucaran/fisher
+ # fisher install IlanCosman/tide@v6
+};
+
+ users = {
+ users = {
+ y = {
+ group = "users";
+ isNormalUser = true;
+ extraGroups = [
+ "systemd-journal"
+ "wheel"
+ "networkmanager"
+ "input"
+ "uinput"
+ "docker"
+ "plugdev"
+ ];
+ createHome = true;
+ home = "/home/y";
+ isSystemUser = false;
+ shell = pkgs.fish;
+ };
+ };
+ };
+}
+
+