chore: apply nix fmt
This commit is contained in:
parent
caa6948199
commit
e2bd4444d2
47 changed files with 274 additions and 187 deletions
|
|
@ -6,7 +6,8 @@
|
|||
let
|
||||
cfg = config.machine.code-server;
|
||||
in
|
||||
with lib; mkIf cfg.enable {
|
||||
with lib;
|
||||
mkIf cfg.enable {
|
||||
services.nginx.virtualHosts = mkIf (cfg.domain != null) {
|
||||
${cfg.domain} = {
|
||||
enableACME = true;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@
|
|||
let
|
||||
cfg = config.machine.code-server;
|
||||
in
|
||||
with lib; {
|
||||
with lib;
|
||||
{
|
||||
options.machine.code-server = {
|
||||
enable = mkEnableOption "code-server";
|
||||
port = mkOption {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@
|
|||
let
|
||||
cfg = config.machine.code-server;
|
||||
in
|
||||
with lib; mkIf cfg.enable {
|
||||
with lib;
|
||||
mkIf cfg.enable {
|
||||
services.code-server = {
|
||||
enable = cfg.enable;
|
||||
port = cfg.port;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue