Skip to content

Commit

Permalink
fix(modules/zfs): Compacten inherit
Browse files Browse the repository at this point in the history
  • Loading branch information
etu committed Sep 14, 2024
1 parent 96e3bdc commit 911e34d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/base/zfs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@
# Root user persistence
users.root = {
inherit (config.users.users.root) home;
inherit (config.etu.base.zfs.root) directories;
inherit (config.etu.base.zfs.root) files;
inherit (config.etu.base.zfs.root) directories files;
};

# My user persistence
users.${config.etu.user.username} = lib.mkIf config.etu.user.enable {
inherit (config.etu.base.zfs.user) directories;
inherit (config.etu.base.zfs.user) files;
inherit (config.etu.base.zfs.user) directories files;
};
};

Expand Down

0 comments on commit 911e34d

Please sign in to comment.