Skip to content

Commit

Permalink
disable nixpkgs' murmur module, replacing it with my own
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Mar 28, 2020
1 parent 48d29f4 commit 19a252a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/machines/protos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

services.do-agent.enable = true;

services.murmur' = {
services.murmur = {
enable = true;
openFirewall = true;
config.registerName = "Infinisil's Server";
Expand Down
10 changes: 6 additions & 4 deletions config/new-modules/murmur.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ with lib;

let

cfg = config.services.murmur';
cfg = config.services.murmur;

iniValueTypes = with types; either str (either int bool);

Expand All @@ -19,7 +19,9 @@ let

in {

options.services.murmur' = {
disabledModules = [ "services/networking/murmur.nix" ];

options.services.murmur = {

enable = mkEnableOption "Murmur Mumble server";

Expand Down Expand Up @@ -67,7 +69,7 @@ in {
config = mkIf cfg.enable (mkMerge [
{

services.murmur'.config.database = "${dataDir}/murmur.sqlite";
services.murmur.config.database = "${dataDir}/murmur.sqlite";

users.users.murmur.group = group;
users.groups.murmur = {};
Expand Down Expand Up @@ -111,7 +113,7 @@ in {
chgrp ${group} ${sslPath}
''; in {

services.murmur'.config.sslKey = sslPath;
services.murmur.config.sslKey = sslPath;

# Above tmpfiles rules would set the owner to ${group}, use root instead
systemd.tmpfiles.rules = [
Expand Down

0 comments on commit 19a252a

Please sign in to comment.