flake-parts: rename lib' to conf
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ config, pkgs, lib', ... }:
|
||||
{ config, pkgs, conf, ... }:
|
||||
{
|
||||
imports = [
|
||||
./networking.nix
|
||||
@@ -14,7 +14,7 @@
|
||||
shell = pkgs.zsh;
|
||||
home = "/home/spin";
|
||||
extraGroups = [ "wheel" ];
|
||||
openssh.authorizedKeys.keys = lib'.network.commonSSHKeys;
|
||||
openssh.authorizedKeys.keys = conf.network.commonSSHKeys;
|
||||
};
|
||||
programs.zsh.enable = true;
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{ lib, config, lib', pkgs, ... }:
|
||||
{ lib, config, conf, pkgs, ... }:
|
||||
{
|
||||
networking = {
|
||||
useDHCP = false;
|
||||
@@ -17,7 +17,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
wireguard.interfaces.wg0 = with lib'.network.addresses.wireguard.ips; {
|
||||
wireguard.interfaces.wg0 = with conf.network.addresses.wireguard.ips; {
|
||||
ips = [ hina ];
|
||||
listenPort = 17840;
|
||||
privateKeyFile = "/var/secrets/wg.key";
|
||||
@@ -26,7 +26,7 @@
|
||||
#Oracle VM1
|
||||
publicKey = "z0Y2VNEWcyVQVSqRHiwmiJ5/0MgSPM+HZfEcwIccSxM=";
|
||||
allowedIPs = [ remilia ];
|
||||
endpoint = "${lib'.network.addresses.domain.natto}:17840";
|
||||
endpoint = "${conf.network.addresses.domain.natto}:17840";
|
||||
persistentKeepalive = 25;
|
||||
}
|
||||
];
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{ config, pkgs, lib, lib', ... }:
|
||||
{ config, pkgs, lib, conf, ... }:
|
||||
let
|
||||
domain = lib'.network.addresses.domain.natto;
|
||||
domain = conf.network.addresses.domain.natto;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
@@ -20,7 +20,7 @@ in
|
||||
|
||||
nginx = {
|
||||
enable = true;
|
||||
virtualHosts = with lib'.network.addresses.wireguard.ips; {
|
||||
virtualHosts = with conf.network.addresses.wireguard.ips; {
|
||||
"znc.${domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
Reference in New Issue
Block a user