2024-12-27 21:30:25 -06:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-20 08:59:56 -05:00
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.mySystem.services.cockpit;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.mySystem.services.cockpit.enable = mkEnableOption "Cockpit";
|
|
|
|
|
|
|
|
config.services.cockpit = mkIf cfg.enable {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
package = pkgs.cockpit.overrideAttrs (old: {
|
|
|
|
# remove packagekit and selinux, don't work on NixOS
|
|
|
|
postBuild = ''
|
|
|
|
${old.postBuild}
|
|
|
|
rm -rf \
|
|
|
|
dist/packagekit \
|
|
|
|
dist/selinux
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|