mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
Docker automatically selects storage driver
This commit is contained in:
parent
72b451aec5
commit
7dd2f89c21
|
@ -6,7 +6,7 @@
|
|||
../../system/hardware/time.nix # Network time sync
|
||||
../../system/security/doas.nix
|
||||
../../system/security/gpg.nix
|
||||
( import ../../system/app/docker.nix {storageDriver = "btrfs"; inherit userSettings pkgs lib;} )
|
||||
( import ../../system/app/docker.nix {storageDriver = null; inherit pkgs userSettings lib;} )
|
||||
];
|
||||
|
||||
# Fix nix path
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
(./. + "../../../system/wm"+("/"+userSettings.wm)+".nix") # My window manager
|
||||
#../../system/app/flatpak.nix
|
||||
../../system/app/virtualization.nix
|
||||
( import ../../system/app/docker.nix {storageDriver = "btrfs"; inherit userSettings lib;} )
|
||||
( import ../../system/app/docker.nix {storageDriver = null; inherit pkgs userSettings lib;} )
|
||||
../../system/security/doas.nix
|
||||
../../system/security/gpg.nix
|
||||
../../system/security/blocklist.nix
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, userSettings, storageDriver ? null, ... }:
|
||||
{ pkgs, lib, userSettings, storageDriver ? null, ... }:
|
||||
|
||||
assert lib.asserts.assertOneOf "storageDriver" storageDriver [
|
||||
null
|
||||
|
@ -18,4 +18,8 @@ assert lib.asserts.assertOneOf "storageDriver" storageDriver [
|
|||
autoPrune.enable = true;
|
||||
};
|
||||
users.users.${userSettings.username}.extraGroups = [ "docker" ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
docker-compose
|
||||
lazydocker
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue