add admin role
This commit is contained in:
parent
2d515b8b6a
commit
7711e69e5c
2 changed files with 47 additions and 0 deletions
|
@ -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
46
roles/admin.nix
Normal 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']
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue