add admin role

This commit is contained in:
foosinn 2020-06-13 23:17:19 +02:00
parent 2d515b8b6a
commit 7711e69e5c
2 changed files with 47 additions and 0 deletions

View file

@ -13,6 +13,7 @@
# Include the results of the hardware scan.
./hardware-configuration.nix
./roles/admin.nix
./roles/dev.nix
./roles/base.nix
./roles/desktop.nix

46
roles/admin.nix Normal file
View file

@ -0,0 +1,46 @@
{ pkgs, options, ...}:
{
environment.systemPackages = with pkgs; [
kubectl
# podman
conmon
fuse-overlayfs
podman
podman-compose
runc
slirp4netns
];
users.users.stefan.subUidRanges = [{ startUid = 100000; count = 65536; }];
users.users.stefan.subGidRanges = [{ startGid = 100000; count = 65536; }];
environment.etc."containers/policy.json" = {
mode="0644";
text=''
{
"default": [
{
"type": "insecureAcceptAnything"
}
],
"transports":
{
"docker-daemon":
{
"": [{"type":"insecureAcceptAnything"}]
}
}
}
'';
};
environment.etc."containers/registries.conf" = {
mode="0644";
text=''
[registries.search]
registries = ['docker.io', 'quay.io']
'';
};
}