vps1: add another user, enable podman, nix settings allowed users change

This commit is contained in:
Lgmrszd 2025-02-26 02:37:13 +04:00
parent 0a14bb4208
commit ce59cf311c
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE
2 changed files with 23 additions and 3 deletions

View file

@ -35,6 +35,7 @@ in
programs.fish.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.allowed-users = [ "@wheel" ];
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
@ -156,10 +157,31 @@ in
extraGroups = [
"wheel"
"docker"
"podman"
config.services.openvscode-server.group
];
shell = pkgs.fish;
};
users.users.mikprin = {
isNormalUser = true;
extraGroups = [
"podman"
];
shell = pkgs.fish;
};
# TODO move to separate
virtualisation.docker.enable = true;
virtualisation.containers.enable = true;
virtualisation = {
podman = {
enable = true;
dockerCompat = false;
defaultNetwork.settings.dns_enabled = true;
};
};
nixpkgs.config.allowUnfree = true;