reenabled docker and winboat for clhickey-nixos
This commit is contained in:
parent
f04b6025d6
commit
946fb550e9
4 changed files with 20 additions and 5 deletions
15
docker.nix
Normal file
15
docker.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ lib, config, ... }:
|
||||
let cfg = config.cos.docker; in
|
||||
{
|
||||
options.cos.docker = {
|
||||
enable = lib.mkEnableOption "Enable Docker";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
users.users.${config.cos.username}.extraGroups = [
|
||||
"docker"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue