mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Use lib.singleton when convenient
This commit is contained in:
parent
dd3c11d88b
commit
464b6a7850
6 changed files with 34 additions and 46 deletions
|
|
@ -47,12 +47,10 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
nginx.virtualHosts.privatebin.listen = [
|
||||
{
|
||||
addr = "localhost";
|
||||
inherit (cfg) port;
|
||||
}
|
||||
];
|
||||
nginx.virtualHosts.privatebin.listen = lib.singleton {
|
||||
addr = "localhost";
|
||||
inherit (cfg) port;
|
||||
};
|
||||
};
|
||||
|
||||
custom.persist.directories = [ config.services.privatebin.dataDir ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue