diff --git a/flake.nix b/flake.nix index 0bebde9..53bfe6a 100644 --- a/flake.nix +++ b/flake.nix @@ -37,6 +37,9 @@ astatine = { name = "astatine"; group = "event"; + modules = [ + ./users/criese-nethinks + ]; }; backup-4 = { name = "backup-4"; }; beryllium = { diff --git a/hosts/astatine/configuration.nix b/hosts/astatine/configuration.nix index 831426f..b42c453 100644 --- a/hosts/astatine/configuration.nix +++ b/hosts/astatine/configuration.nix @@ -6,6 +6,7 @@ ./hardware-configuration.nix ./isa.nix + ./users.nix ]; boot.kernelParams = [ "console=ttyS0,115200n8" ]; diff --git a/hosts/astatine/users.nix b/hosts/astatine/users.nix new file mode 100644 index 0000000..3ccf4ad --- /dev/null +++ b/hosts/astatine/users.nix @@ -0,0 +1,10 @@ +{ ... }: + +{ + users.users.criese-nethinks = { + extraGroups = [ + "wheel" + ]; + }; + +} diff --git a/users/criese-nethinks/default.nix b/users/criese-nethinks/default.nix new file mode 100644 index 0000000..ed4850f --- /dev/null +++ b/users/criese-nethinks/default.nix @@ -0,0 +1,10 @@ +{ ... }: + +{ + users.users.criese-nethinks = { + isNormalUser = true; + openssh.authorizedKeys.keys = [ + (builtins.readFile ./ssh-criese.pub) + ]; + }; +} diff --git a/users/criese-nethinks/ssh-criese.pub b/users/criese-nethinks/ssh-criese.pub new file mode 100644 index 0000000..6583f3c --- /dev/null +++ b/users/criese-nethinks/ssh-criese.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCXduKo8ZksOerEvN4y8SrMqz1G1B8Ibav7Jf1ELBNnQUEOBrRQFMDWgltPySEB0C4lq6rdkkIs6669PSmQp2KLW+aP1Ch/tvIv2mgWk7/XVbzUQgA8nDa2j9fHdiQ7dW7tE9ccgBsZlVX5VYHnq+P1Birkp6RJF+Wiizy6mvDEsHnSdI0INWX1+ffCjCwCRuxABxG3usqYZdSYIFQaFdw7wsz8sqXs8uEb57+y+ZTfZpZj7FnoN+sHZwBcCbCdhs50P/3Q3zsWeK66rXJC83mKCsVOGU0Ls9gslDNDBrAZhbBNOgUkbQmH8yuuAVUu807B7cR5jsK6NrfRwnnyBK1nAiKJNZU0Y8VPkhTsa1XYAxU91QGLtPbhnhBisCSMLD0Le/fOnU3I6dsKtg8sVwdL1jn/c6vU2t4lEi3Eczcc316OVH5+b+L7JuplDBQH8dN6PkxuYBEp9/zl77n7gIH/1MfhmDBZfkVHZX8NKM72QtSwgu4U/vgMsZ6fSDYM58E= criese