summaryrefslogtreecommitdiff
path: root/hosts/cloud/spanm/users.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/cloud/spanm/users.nix')
-rw-r--r--hosts/cloud/spanm/users.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/hosts/cloud/spanm/users.nix b/hosts/cloud/spanm/users.nix
new file mode 100644
index 0000000..60e3a5a
--- /dev/null
+++ b/hosts/cloud/spanm/users.nix
@@ -0,0 +1,42 @@
+{ 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";
+};
+
+in {
+ programs.fish = {
+ inherit shellAliases;
+ enable = true;
+ };
+
+ users = {
+ users = {
+ span = {
+ group = "users";
+ isNormalUser = true;
+ extraGroups = [
+ "networkmanager"
+ "systemd-journal"
+ "wheel"
+ ];
+ createHome = true;
+ home = "/home/span";
+ isSystemUser = false;
+ shell = pkgs.fish;
+ openssh.authorizedKeys.keys =
+ [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKD2DxTdE7vekp+BTifuB9gPoIPdaFSGkgVblA5MbTh"
+ ];
+ };
+ };
+ };
+}
+
+
+