mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds liv to docker, is a bit scuffed and needs work
This commit is contained in:
parent
5d19ec3c75
commit
07ccc14d1a
1 changed files with 8 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, inputs, username, host, ...}:
|
{ pkgs, inputs, config, username, host, ...}:
|
||||||
{
|
{
|
||||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|
@ -22,9 +22,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.${username} = {
|
users.users.${username} = {
|
||||||
|
# extraGroups = if (config.virtualisation.docker.enable == true) then
|
||||||
|
# [ "networkmanager" "wheel" "docker" ]
|
||||||
|
# else
|
||||||
|
# [ "networkmanager" "wheel" ];
|
||||||
|
# if (config.virtualisation.docker.enable = true) then
|
||||||
|
# extraGroups = [ "docker" ];
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "${username}";
|
description = "${username}";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" "docker" ];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
nix.settings.allowed-users = [ "${username}" ];
|
nix.settings.allowed-users = [ "${username}" ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue