mirror of
https://codeberg.org/muon/home.git
synced 2026-03-09 03:53:11 +00:00
Merge branch 'main' of codeberg.org:muon/home
This commit is contained in:
commit
0cda38f25b
4 changed files with 34 additions and 1 deletions
|
|
@ -1,4 +1,8 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./containers
|
||||
./gaming
|
||||
|
|
@ -25,5 +29,6 @@
|
|||
./lemmy.nix
|
||||
./audio.nix
|
||||
./atuin.nix
|
||||
./murmur.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
25
modules/nixos/server/murmur.nix
Normal file
25
modules/nixos/server/murmur.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.mods.server.murmur;
|
||||
in
|
||||
with lib; {
|
||||
options.mods.server = {
|
||||
murmur = {
|
||||
enable = mkEnableOption {
|
||||
default = false;
|
||||
description = "enables murmur server";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.murmur = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue