From bb828450c9c6fede712f62405b2d2ed4351cfbe3 Mon Sep 17 00:00:00 2001 From: xqtc Date: Mon, 21 Oct 2024 20:33:50 +0200 Subject: [PATCH] Add juvi user; Add juvi website --- hosts/x86_64-linux/beleth/default.nix | 93 +++++++++++--------- hosts/x86_64-linux/beleth/external-users.nix | 57 ++++++++++++ 2 files changed, 107 insertions(+), 43 deletions(-) create mode 100644 hosts/x86_64-linux/beleth/external-users.nix diff --git a/hosts/x86_64-linux/beleth/default.nix b/hosts/x86_64-linux/beleth/default.nix index 21e3a03..d152bf2 100644 --- a/hosts/x86_64-linux/beleth/default.nix +++ b/hosts/x86_64-linux/beleth/default.nix @@ -12,6 +12,7 @@ with lib; { ./jellyfin.nix ./calibre-web.nix ./transmission.nix + ./external-users.nix ./fail2ban.nix ./lanrarari.nix # ./hydra.nix @@ -135,6 +136,12 @@ with lib; { file_server ''; }; + "juvi.likes.graphics" = { + extraConfig = '' + root * /var/www/juvi-website/ + file_server + ''; + }; "servers" = { extraConfig = '' metrics @@ -182,49 +189,49 @@ with lib; { ]; }; - users.users.marie = { - isNormalUser = true; - packages = with pkgs; [ - git - wget - ]; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN0mGd4YS4f3Wy+a4PBXbie42C5Qo4H0uWsN7joaK27h marie@titania" - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFckmWImlMVsCbu5M1lsLtzxhBxrQhTQHYrKWJYDOHr5 marie@oberon" - ]; - }; - users.users.mo = { - isNormalUser = true; - packages = with pkgs; [ - git - wget - ]; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFjRrLI5mBnoIMcjq2WGPCGuKYLwS7uhgI6F0T5ojp6n moe@martini.moe" - ]; - }; - - users.users.ellie = { - isNormalUser = true; - packages = with pkgs; [ - git - wget - ]; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKA4+3PkFptATzrWncxdj63SqZ747cDb8TqmdQFugvW7 ellie@card" - ]; - }; - - users.users.brodo = { - isNormalUser = true; - packages = with pkgs; [ - git - wget - ]; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAZqFlE49ln4iAcVNzUaTXbFW6SA8Wwxl1hiwUkegUfy julian@example.com" - ]; - }; + # users.users.marie = { + # isNormalUser = true; + # packages = with pkgs; [ + # git + # wget + # ]; + # openssh.authorizedKeys.keys = [ + # "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN0mGd4YS4f3Wy+a4PBXbie42C5Qo4H0uWsN7joaK27h marie@titania" + # "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFckmWImlMVsCbu5M1lsLtzxhBxrQhTQHYrKWJYDOHr5 marie@oberon" + # ]; + # }; + # users.users.mo = { + # isNormalUser = true; + # packages = with pkgs; [ + # git + # wget + # ]; + # openssh.authorizedKeys.keys = [ + # "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFjRrLI5mBnoIMcjq2WGPCGuKYLwS7uhgI6F0T5ojp6n moe@martini.moe" + # ]; + # }; + # + # users.users.ellie = { + # isNormalUser = true; + # packages = with pkgs; [ + # git + # wget + # ]; + # openssh.authorizedKeys.keys = [ + # "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKA4+3PkFptATzrWncxdj63SqZ747cDb8TqmdQFugvW7 ellie@card" + # ]; + # }; + # + # users.users.brodo = { + # isNormalUser = true; + # packages = with pkgs; [ + # git + # wget + # ]; + # openssh.authorizedKeys.keys = [ + # "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAZqFlE49ln4iAcVNzUaTXbFW6SA8Wwxl1hiwUkegUfy julian@example.com" + # ]; + # }; users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJTLJqIVwnqFO64rnc66d234TFOdFXpDS9fJUA4/f4in xqtc@alastor" diff --git a/hosts/x86_64-linux/beleth/external-users.nix b/hosts/x86_64-linux/beleth/external-users.nix new file mode 100644 index 0000000..ac771b6 --- /dev/null +++ b/hosts/x86_64-linux/beleth/external-users.nix @@ -0,0 +1,57 @@ +{config, pkgs, lib, ...}: +{ + users.users.marie = { + isNormalUser = true; + packages = with pkgs; [ + git + wget + ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN0mGd4YS4f3Wy+a4PBXbie42C5Qo4H0uWsN7joaK27h marie@titania" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFckmWImlMVsCbu5M1lsLtzxhBxrQhTQHYrKWJYDOHr5 marie@oberon" + ]; + }; + users.users.mo = { + isNormalUser = true; + packages = with pkgs; [ + git + wget + ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFjRrLI5mBnoIMcjq2WGPCGuKYLwS7uhgI6F0T5ojp6n moe@martini.moe" + ]; + }; + + users.users.ellie = { + isNormalUser = true; + packages = with pkgs; [ + git + wget + ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKA4+3PkFptATzrWncxdj63SqZ747cDb8TqmdQFugvW7 ellie@card" + ]; + }; + + users.users.brodo = { + isNormalUser = true; + packages = with pkgs; [ + git + wget + ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAZqFlE49ln4iAcVNzUaTXbFW6SA8Wwxl1hiwUkegUfy julian@example.com" + ]; + }; + + users.users.juvi = { + isNormalUser = true; + packages = with pkgs; [ + git + wget + ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGoWyG1XphHZJd9qJwv2c4NvRQpNMN7Q7o/NLRNKsn/j danb@ha.si" + ]; + }; +}