{ config, lib, pkgs, home-manager, ... }: let inherit (lib) mkEnableOption mkIf; cfg = config.users.mara; in { options.users.mara.enable = mkEnableOption "Enable the user Mara"; config = mkIf cfg.enable { home-manager.users.mara = { config, pkgs, ... }: { imports = [ ../home-default.nix ./config/all.nix ]; home = { username = "mara"; homeDirectory = "/home/mara"; }; custom.backgroundDir = config.home.homeDirectory + "/Pictures/Archive/Wallpaper/Landscape"; }; programs.fish.enable = true; users.users.mara = { isNormalUser = true; description = "Mara"; extraGroups = [ "networkmanager" "wheel" "docker" "adbusers" ]; shell = pkgs.fish; }; }; }