infra/modules/darwin/community-builder/default.nix

45 lines
872 B
Nix
Raw Normal View History

{
config,
inputs,
pkgs,
...
}:
2023-10-27 13:42:58 +10:00
{
imports = [
2024-09-05 17:59:59 +10:00
"${inputs.self}/modules/shared/community-builder.nix"
inputs.nix-index-database.darwinModules.nix-index
2023-10-27 13:42:58 +10:00
./users.nix
];
2024-09-24 10:31:46 +10:00
environment.etc.motd.text = config.nixCommunity.motd;
programs.bash.enable = true;
environment.shells = [
pkgs.bashInteractive
pkgs.fish
pkgs.nushell
pkgs.zsh
];
launchd.daemons.nixpkgs-clone = {
environment = {
inherit (config.environment.variables) NIX_SSL_CERT_FILE;
};
serviceConfig = {
StartCalendarInterval = [
{
Hour = 0;
Minute = 0;
}
];
StandardErrorPath = "/var/log/nixpkgs-clone.log";
StandardOutPath = "/var/log/nixpkgs-clone.log";
};
path = [
pkgs.git
];
script = builtins.readFile "${inputs.self}/modules/shared/nixpkgs-clone.bash";
};
2023-10-27 13:42:58 +10:00
}