Extract a docker mixin
This commit is contained in:
parent
a4cacfd4de
commit
44d2685854
11 changed files with 20 additions and 46 deletions
12
modules/mixins/docker.nix
Normal file
12
modules/mixins/docker.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
|
||||
autoPrune = {
|
||||
enable = true;
|
||||
dates = "weekly";
|
||||
};
|
||||
};
|
||||
|
||||
users.users.opdavies.extraGroups = [ "docker" ];
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./docker.nix
|
||||
];
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.nixosModules.docker.enable = mkEnableOption "Enable Docker";
|
||||
|
||||
config = mkIf config.nixosModules.docker.enable {
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
|
||||
autoPrune = {
|
||||
enable = true;
|
||||
dates = "weekly";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./cli
|
||||
./desktop
|
||||
./gaming.nix
|
||||
./homelab
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue