From 42179fd4a86e9c97081127736c735abcfa57e38c Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 13 Jan 2024 11:15:04 +0900 Subject: [PATCH] Update groups and podman unpriv --- nixos/common/services/podman.nix | 2 +- nixos/users/albert/default.nix | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/nixos/common/services/podman.nix b/nixos/common/services/podman.nix index 54d3e7d9..07bb93eb 100644 --- a/nixos/common/services/podman.nix +++ b/nixos/common/services/podman.nix @@ -4,7 +4,7 @@ boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 10485760; "fs.inotify.max_user_instances" = 1024; - "net.ipv4.ip_unprivileged_port_start" = 80; + "net.ipv4.ip_unprivileged_port_start" = 25; }; virtualisation.podman = { diff --git a/nixos/users/albert/default.nix b/nixos/users/albert/default.nix index c61d175b..5cd13918 100644 --- a/nixos/users/albert/default.nix +++ b/nixos/users/albert/default.nix @@ -18,6 +18,12 @@ in { openssh.authorizedKeys.keyFiles = [ ../../../keys/ssh/keys.txt ]; }; + users.groups.albert = { + gid = 1000; + name = "albert"; + members = [ "albert" ]; + }; + # Make this user trusted nix.settings.trusted-users = [ "albert" ]; -} \ No newline at end of file +}