mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Created homelab profile (not yet tested)
This commit is contained in:
parent
ef09b4302a
commit
6c2f6add12
3 changed files with 203 additions and 0 deletions
21
system/app/docker.nix
Normal file
21
system/app/docker.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, lib, pkgs, myName, storageDriver ? null, ... }:
|
||||
|
||||
assert lib.asserts.assertOneOf "storageDriver" storageDriver [
|
||||
null
|
||||
"aufs"
|
||||
"btrfs"
|
||||
"devicemapper"
|
||||
"overlay"
|
||||
"overlay2"
|
||||
"zfs"
|
||||
];
|
||||
|
||||
{
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
enableOnBoot = true;
|
||||
storageDriver = storageDriver;
|
||||
autoPrune.enable = true;
|
||||
};
|
||||
users.users.${myName}.extraGroups = [ "docker" ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue