summaryrefslogtreecommitdiff
path: root/hosts/cloud/users.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/cloud/users.nix')
-rw-r--r--hosts/cloud/users.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/hosts/cloud/users.nix b/hosts/cloud/users.nix
new file mode 100644
index 0000000..7fa3b07
--- /dev/null
+++ b/hosts/cloud/users.nix
@@ -0,0 +1,41 @@
+{ 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 = {
+ y = {
+ hashedPassword = "$y$j9T$KLRxiAIFO2yLoalaeSmjg/$ZzEQbGvVmRJ6gESNxNuRchNcx0V01QpCxnJVv5pdk/B";
+ group = "users";
+ isNormalUser = true;
+ extraGroups = [
+ "systemd-journal"
+ "wheel"
+ "nginx"
+ ];
+ createHome = true;
+ home = "/home/y";
+ isSystemUser = false;
+ shell = pkgs.fish;
+ openssh.authorizedKeys.keys =
+ [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM+qXhCHNrSZmy4HEXaFn6xAp1w2GzQBMOfVdbR3E81Q cloudboxes" ];
+ };
+ };
+ };
+}
+
+
+