mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Avoid repetition of variables and keywords
This commit is contained in:
parent
6e58af8f01
commit
50d87e37a4
8 changed files with 76 additions and 31 deletions
|
|
@ -1,6 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
serviceName = "actualbudget";
|
||||
serviceName = lib.last (lib.splitString "/" (builtins.toString ./.)); # Parent directory name
|
||||
subdomain = "budget";
|
||||
|
||||
serveConfig = builtins.toJSON {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
serviceName = "onlyoffice";
|
||||
serviceName = lib.last (lib.splitString "/" (builtins.toString ./.)); # Parent directory name
|
||||
subdomain = "office";
|
||||
|
||||
serveConfig = builtins.toJSON {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue