mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
chore: add safety docker user
This commit is contained in:
parent
c6e50d9232
commit
abb352ad00
2 changed files with 34 additions and 0 deletions
|
|
@ -7617,6 +7617,23 @@ Also, the system state version is set here. No need to touch it.
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.swarselsystems.server.transmission {
|
config = lib.mkIf config.swarselsystems.server.transmission {
|
||||||
|
|
||||||
|
# this user/group section is probably unneeded
|
||||||
|
users = {
|
||||||
|
groups = {
|
||||||
|
dockeruser = {
|
||||||
|
gid = 1155;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
users = {
|
||||||
|
dockeruser = {
|
||||||
|
isSystemUser = true;
|
||||||
|
uid = 1155;
|
||||||
|
group = "docker";
|
||||||
|
extraGroups = [ "users" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
docker
|
docker
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,23 @@
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.swarselsystems.server.transmission {
|
config = lib.mkIf config.swarselsystems.server.transmission {
|
||||||
|
|
||||||
|
# this user/group section is probably unneeded
|
||||||
|
users = {
|
||||||
|
groups = {
|
||||||
|
dockeruser = {
|
||||||
|
gid = 1155;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
users = {
|
||||||
|
dockeruser = {
|
||||||
|
isSystemUser = true;
|
||||||
|
uid = 1155;
|
||||||
|
group = "docker";
|
||||||
|
extraGroups = [ "users" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
docker
|
docker
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue