summaryrefslogtreecommitdiff
path: root/modules/users/git.nix
diff options
context:
space:
mode:
authorDevin Finlinson <devin.finlinson@pm.me>2024-02-22 14:08:43 -0700
committerDevin Finlinson <devin.finlinson@pm.me>2024-02-22 14:08:43 -0700
commit7a977be46240b1a4e67afc2354e92f6d966c3382 (patch)
tree7ffe458b594f5b05601ac9b113b9f075e2b38564 /modules/users/git.nix
parent0e71af3316158271372d8bd6c272e5f34133fd18 (diff)
parent4e45cad8f421c0ae64271bc477f6d3acaa0a4910 (diff)
Merge branch 'master' of ssh://bosco:/srv/git/.flake
Diffstat (limited to 'modules/users/git.nix')
-rw-r--r--modules/users/git.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/users/git.nix b/modules/users/git.nix
new file mode 100644
index 0000000..7ad561f
--- /dev/null
+++ b/modules/users/git.nix
@@ -0,0 +1,20 @@
+{ config, pkgs, ... }: {
+ users = {
+ groups.git = { };
+ mutableUsers = false;
+ users.git = {
+ isNormalUser = false;
+ isSystemUser = true;
+ description = "user for git and building automation";
+ group = "git";
+ extraGroups = [ "builders" ];
+
+ openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHslJRD5+7rytlVDzeZh6B/4XW8QWQ5dsWWDBbOXKTrJ defin@zenbook"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBxVpBnkWiukuHNt81K2gRNVjOdz9lFiaw0fhZ4CcB3R gitlab"
+ ];
+ };
+ };
+
+ # services.openssh = { settings.PasswordAuthenitcation = false; };
+}