40 lines
738 B
Nix
Raw Normal View History

2024-12-29 15:12:31 -05:00
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
2025-01-23 18:53:36 -05:00
options.me = {
ares.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install ares.";
};
};
config = lib.mkIf (config.me.ares.enable && config.me.graphical) {
environment.systemPackages = with pkgs; [
ares
];
2025-01-26 19:04:17 -05:00
environment.persistence."/persist" = lib.mkIf (config.me.mountPersistence) {
hideMounts = true;
users.talexander = {
directories = [
{
directory = ".local/share/ares";
user = "talexander";
group = "talexander";
mode = "0755";
}
];
};
};
};
2024-12-29 15:12:31 -05:00
}