From 2a83f54dcca1f8691dfdc4d03078fa9ad9313afa Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Mon, 19 Aug 2024 12:33:45 +0100 Subject: [PATCH] feat: more random bits --- flake.nix | 1 + home/ash/niri.nix | 4 ++-- hosts/amy/configuration.nix | 10 +++++----- roles/mc-proxy.nix | 13 +++++++++++++ 4 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 roles/mc-proxy.nix diff --git a/flake.nix b/flake.nix index 89a3376..aff6af1 100644 --- a/flake.nix +++ b/flake.nix @@ -185,6 +185,7 @@ ./roles/coredns ./roles/iceshrimp.nix ./roles/keycloak.nix + ./roles/mc-proxy.nix ./roles/podman.nix ./roles/postgres.nix ./roles/zulip.nix diff --git a/home/ash/niri.nix b/home/ash/niri.nix index 3a1af8f..a612517 100644 --- a/home/ash/niri.nix +++ b/home/ash/niri.nix @@ -128,10 +128,10 @@ "Mod+C".action = center-column; "Mod+Minus".action = set-column-width "-10%"; - "Mod+Plus".action = set-column-width "+10%"; + "Mod+Equal".action = set-column-width "+10%"; "Mod+Shift+Minus".action = set-window-height "-10%"; - "Mod+Shift+Plus".action = set-window-height "+10%"; + "Mod+Shift+Equal".action = set-window-height "+10%"; "Print".action = screenshot; "Ctrl+Print".action = screenshot-screen; diff --git a/hosts/amy/configuration.nix b/hosts/amy/configuration.nix index 3613a9c..f0e48eb 100644 --- a/hosts/amy/configuration.nix +++ b/hosts/amy/configuration.nix @@ -8,16 +8,16 @@ zramSwap.enable = true; networking.hostName = "amy"; - networking.domain = "serv.ashhhleyyy.dev"; + networking.domain = "net.isnt-a.top"; time.timeZone = "Europe/London"; i18n.defaultLocale = "en_GB.UTF-8"; - services.xserver = { - layout = "gb"; - xkbVariant = ""; - }; + #services.xserver = { + # layout = "gb"; + # xkbVariant = ""; + #}; console.keyMap = "uk"; diff --git a/roles/mc-proxy.nix b/roles/mc-proxy.nix new file mode 100644 index 0000000..d69face --- /dev/null +++ b/roles/mc-proxy.nix @@ -0,0 +1,13 @@ +{ pkgs, ... }: + +{ + networking.firewall.allowedTCPPorts = [ 25565 ]; + users.users.proxy = { + isNormalUser = false; + isSystemUser = true; + home = "/tmp"; + description = "proxy"; + group = "proxy"; + }; + users.groups.proxy = {}; +}