mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Replace string concatenation with string interpolation
This commit is contained in:
parent
0119af4d40
commit
fceb6ae418
3 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
let
|
let
|
||||||
cfg = config.custom.sops;
|
cfg = config.custom.sops;
|
||||||
|
|
||||||
absoluteSecretsPath = "${self}/" + cfg.secretsFile;
|
absoluteSecretsPath = "${self}/${cfg.secretsFile}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ inputs.sops.homeManagerModules.sops ];
|
imports = [ inputs.sops.homeManagerModules.sops ];
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ in
|
||||||
virtualHosts
|
virtualHosts
|
||||||
|> lib.mapAttrs' (
|
|> lib.mapAttrs' (
|
||||||
_: value:
|
_: value:
|
||||||
lib.nameValuePair (lib.optionalString (!value.tls) "http://" + value.domain) (
|
lib.nameValuePair (lib.optionalString (!value.tls) "http://${value.domain}") (
|
||||||
mkVirtualHostConfig value
|
mkVirtualHostConfig value
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
let
|
let
|
||||||
cfg = config.custom.sops;
|
cfg = config.custom.sops;
|
||||||
|
|
||||||
absoluteSecretsPath = "${self}/" + cfg.secretsFile;
|
absoluteSecretsPath = "${self}/${cfg.secretsFile}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ inputs.sops.nixosModules.sops ];
|
imports = [ inputs.sops.nixosModules.sops ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue