Testing updates to Podman

This commit is contained in:
albert 2024-03-14 10:23:28 +09:00
parent 623b0dc33c
commit f570e87ec3
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
2 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,6 @@
boot.kernel.sysctl = {
"fs.inotify.max_user_watches" = 10485760;
"fs.inotify.max_user_instances" = 1024;
"net.ipv4.ip_unprivileged_port_start" = 25;
};
virtualisation.podman = {
@ -25,6 +24,6 @@
];
# Add the docker telegraf listener
services.telegraf.extraConfig.inputs.podman = {};
users.users.telegraf.extraGroups = [ "docker" ];
services.telegraf.extraConfig.inputs.docker = {};
users.users.telegraf.extraGroups = [ "podman" ];
}

View file

@ -1,4 +1,4 @@
{ config, desktop, lib, unstable-pkgs, pkgs, ... }:
{ config, desktop, lib, pkgs, ... }:
let
ifExists = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
@ -14,6 +14,7 @@ in {
extraGroups = [ "networkmanager" "wheel" ]
++ ifExists [ "video" ]
++ ifExists [ "docker" ]
++ ifExists [ "podman" ]
++ ifExists [ "syncthing" ];
# mkpasswd -m sha-512
hashedPassword = "$y$j9T$wKLsIWaA4Gf63RvjedwLJ0$EHKL6BBJV0CAxEKcHHjaBqW085KJ/MGvmbyWzmcWOy6";