{ config, lib, pkgs, ... }: { imports = [ ]; options.me = { instawow.enable = lib.mkOption { type = lib.types.bool; default = false; example = true; description = "Whether we want to install instawow."; }; }; config = lib.mkIf config.me.instawow.enable { environment.systemPackages = with pkgs; [ instawow ]; environment.persistence."/persist" = lib.mkIf (config.me.mountPersistence) { hideMounts = true; users.talexander = { directories = [ { directory = ".config/instawow"; user = "talexander"; group = "talexander"; mode = "0755"; } ]; }; }; environment.persistence."/state" = lib.mkIf (config.me.mountPersistence) { hideMounts = true; users.talexander = { directories = [ { directory = ".cache/instawow"; user = "talexander"; group = "talexander"; mode = "0755"; } ]; }; }; }; }