couple fixes
This commit is contained in:
25
modules/nixos/services/cockpit/default.nix
Normal file
25
modules/nixos/services/cockpit/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
let
|
||||
name = "cockpit";
|
||||
cfg = config.${namespace}.services.${name};
|
||||
|
||||
cockpitConfig = lib.${namespace}.mkModule {
|
||||
inherit config name;
|
||||
description = "Cockpit web-based server management UI";
|
||||
moduleConfig = {
|
||||
services.cockpit = {
|
||||
enable = true;
|
||||
port = cfg.port;
|
||||
openFirewall = cfg.openFirewall;
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [ cockpitConfig ];
|
||||
}
|
||||
Reference in New Issue
Block a user