From e5cbb81bad0d905f597a7cb11fd40df32908c9a4 Mon Sep 17 00:00:00 2001 From: karim mdmirajul Date: Wed, 20 Dec 2023 16:53:31 +0200 Subject: [PATCH] Add Barna as a user and grant access to the PRbuilder host Signed-off-by: karim mdmirajul --- hosts/prbuilder/configuration.nix | 1 + users/barna.nix | 14 ++++++++++++++ users/default.nix | 1 + 3 files changed, 16 insertions(+) create mode 100644 users/barna.nix diff --git a/hosts/prbuilder/configuration.nix b/hosts/prbuilder/configuration.nix index 86c76878..bb756f68 100644 --- a/hosts/prbuilder/configuration.nix +++ b/hosts/prbuilder/configuration.nix @@ -21,6 +21,7 @@ user-cazfi user-karim user-tervis + user-barna ]) ./disk-config.nix ]; diff --git a/users/barna.nix b/users/barna.nix new file mode 100644 index 00000000..a478c6aa --- /dev/null +++ b/users/barna.nix @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII) +# +# SPDX-License-Identifier: Apache-2.0 +{ + users.users = { + barna = { + isNormalUser = true; + openssh.authorizedKeys.keys = [ + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQChDMYWXg51H1/3Y3fGb8Bn6Dj1jauzKKsPdtRjFHTWSCde4GmF1/uPUJ9qogLNBS2B0nDS+IxnNNIKWarZhkb1aHvWHBy1n1s4gULwCZcF36yaFfKKCIfro+YI1/1uOZuv/AtVLzAgFlgUb21xLF9m11yuobB6OqSd9Fxt8i2AdfwVuj1fxyRlI+l5v82g0d3KiN0Pw+FqtzIZ6sEcpw8Mqn469PIDARUmYxo7mRMug8QPmQPgv57YhbppLN6cHUbYlud/2UeESUFsXrCAMDLtghvkNlAlmriaqhlVoH3jTLJ8ljIbHeFrBidZZk1/e7Ucw8iLkesQ11YrAY0QqqyH6vRr/o0XHiCbnxJl7rH9AC8tguqgFR/K2T8qygJZfs1szaOQg/+O7tdqwU8+j2NDSuh+PjYGnMOIT11ErtAYB2DAd8xVYOOWCsLeHVoiC1jgkVjehkV4wmwmq3d7X5iyuK7n4zJTEIqDzbrfshUnpL9ERe7zlFaocqUVedn1DDU= barna.bakos@unikie.com" + ]; + extraGroups = ["wheel" "networkmanager"]; + }; + }; +} diff --git a/users/default.nix b/users/default.nix index 6295758a..a124f54e 100644 --- a/users/default.nix +++ b/users/default.nix @@ -14,5 +14,6 @@ user-karim = import ./karim.nix; user-themisto = import ./themisto.nix; user-tervis = import ./tervis.nix; + user-barna = import ./barna.nix; }; }