Move some zfs stuff around
This commit is contained in:
parent
fcb5af7894
commit
3e09cc7444
3 changed files with 6 additions and 11 deletions
|
@ -1,11 +1,12 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
chvp.zfs.systemLinks = [
|
||||
{ path = "/var/lib/docker"; type = "cache"; }
|
||||
{ path = "/var/lib/docker/volumes"; type = "data"; }
|
||||
];
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
extraOptions = "--data-root /data/var/lib/docker";
|
||||
storageDriver = "zfs";
|
||||
};
|
||||
|
||||
users.users.charlotte.extraGroups = [
|
||||
"docker"
|
||||
];
|
||||
|
|
|
@ -41,8 +41,6 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
config.virtualisation.docker.storageDriver = lib.mkIf config.chvp.zfs.enable "zfs";
|
||||
|
||||
config.services.zfs.autoScrub.enable = config.chvp.zfs.enable;
|
||||
config.services.zfs.trim.enable = config.chvp.zfs.enable;
|
||||
|
||||
|
|
|
@ -19,10 +19,6 @@
|
|||
../configurations/zsh.nix
|
||||
];
|
||||
|
||||
chvp.zfs.systemLinks = [
|
||||
{ path = "/root/.ssh"; type = "data"; }
|
||||
];
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.users.charlotte = { pkgs, ... }: {
|
||||
home.packages = with pkgs; [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue