mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-13 23:28:20 +01:00
vps1: add another user, enable podman, nix settings allowed users change
This commit is contained in:
parent
0a14bb4208
commit
ce59cf311c
2 changed files with 23 additions and 3 deletions
|
|
@ -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,11 +157,32 @@ 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;
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
|
|
|
|||
|
|
@ -137,8 +137,6 @@ in
|
|||
];
|
||||
};
|
||||
};
|
||||
# TODO move to separate
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
sops.secrets."forgejo/email_password" = sops_opts;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue