2023-01-28 20:49:10 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
2021-05-30 19:10:28 +00:00
|
|
|
psCfg = config.pub-solar;
|
|
|
|
cfg = config.pub-solar.devops;
|
2023-01-28 20:49:10 +00:00
|
|
|
in {
|
2021-05-30 19:10:28 +00:00
|
|
|
options.pub-solar.devops = {
|
|
|
|
enable = mkEnableOption "Life automated";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2023-01-28 20:49:10 +00:00
|
|
|
home-manager = with pkgs;
|
|
|
|
pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
|
|
|
|
home.packages = [
|
2023-05-05 16:10:08 +00:00
|
|
|
fwknop
|
|
|
|
croc
|
2023-01-28 20:49:10 +00:00
|
|
|
drone-cli
|
|
|
|
nmap
|
|
|
|
pgcli
|
|
|
|
ansible
|
|
|
|
ansible-lint
|
|
|
|
restic
|
|
|
|
shellcheck
|
|
|
|
terraform
|
2023-02-02 16:24:27 +00:00
|
|
|
flyctl
|
|
|
|
tea
|
2023-01-28 20:49:10 +00:00
|
|
|
];
|
|
|
|
};
|
2021-05-30 19:10:28 +00:00
|
|
|
};
|
|
|
|
}
|