flake-parts: rename lib' to conf

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-05-27 20:07:28 +05:30
parent 29acfc513e
commit c1c4714fa2
20 changed files with 40 additions and 40 deletions

View File

@@ -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;

View File

@@ -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;
}
];

View File

@@ -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;

View File

@@ -1,4 +1,4 @@
{ config, pkgs, lib', ... }:
{ config, pkgs, conf, ... }:
{
imports = [
./networking.nix
@@ -12,7 +12,7 @@
shell = pkgs.zsh;
home = "/home/spark";
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = lib'.network.commonSSHKeys;
openssh.authorizedKeys.keys = conf.network.commonSSHKeys;
};
programs.zsh.enable = true;

View File

@@ -1,4 +1,4 @@
{ config, pkgs, lib', ... }:
{ config, pkgs, conf, ... }:
{
networking = {
hostName = "marisa";
@@ -37,7 +37,7 @@
}];
};
};
wireguard.interfaces.wg0 = with lib'.network.addresses.wireguard.ips; {
wireguard.interfaces.wg0 = with conf.network.addresses.wireguard.ips; {
ips = [ marisa ];
listenPort = 17840;
privateKeyFile = "/var/secrets/wg.key";
@@ -46,7 +46,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;
}
];

View File

@@ -1,4 +1,4 @@
{ config, pkgs, inputs, lib', ... }:
{ config, pkgs, inputs, conf, ... }:
{
systemd.services.filehost = {
enable = true;
@@ -7,7 +7,7 @@
Type = "simple";
Environment = [
"TITLE=nattofiles"
"USER_URL=https://f.${lib'.network.addresses.domain.natto}"
"USER_URL=https://f.${conf.network.addresses.domain.natto}"
"ROCKET_LIMITS={file=\"512MB\",data-form=\"512MB\"}"
"ROCKET_LOG_LEVEL=debug"
"ROCKET_ADDRESS=0.0.0.0"

View File

@@ -1,4 +1,4 @@
{ config, pkgs, lib', ... }:
{ config, pkgs, conf, ... }:
{
services = {
gitea = rec {
@@ -13,7 +13,7 @@
mailerPasswordFile = "/var/secrets/giteamailer.pass";
settings =
let
domain = lib'.network.addresses.domain.natto;
domain = conf.network.addresses.domain.natto;
in
{
server = rec {

View File

@@ -1,4 +1,4 @@
{ config, pkgs, lib', lib, ... }:
{ config, pkgs, conf, lib, ... }:
{
networking = {

View File

@@ -1,4 +1,4 @@
{ config, pkgs, lib', ... }:
{ config, pkgs, conf, ... }:
{
imports = [
./networking.nix
@@ -15,7 +15,7 @@
shell = pkgs.zsh;
home = "/home/bat";
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = lib'.network.commonSSHKeys;
openssh.authorizedKeys.keys = conf.network.commonSSHKeys;
};
programs.zsh.enable = true;

View File

@@ -1,7 +1,7 @@
{ config, pkgs, lib', network, ... }:
{ config, pkgs, conf, network, ... }:
{
mailserver =
let domain = lib'.network.addresses.domain.natto; in
let domain = conf.network.addresses.domain.natto; in
rec {
enable = true;
fqdn = "mail.${domain}";

View File

@@ -1,4 +1,4 @@
{ lib, config, lib', pkgs, ... }:
{ lib, config, conf, pkgs, ... }:
{
networking = {
useDHCP = false;
@@ -27,7 +27,7 @@
useDHCP = true;
};
};
nat = with lib'.network.addresses.wireguard.ips; {
nat = with conf.network.addresses.wireguard.ips; {
enable = true;
externalInterface = "ens3";
internalInterfaces = [ "wg0" ];
@@ -46,7 +46,7 @@
}
];
};
wireguard.interfaces = with lib'.network.addresses.wireguard; {
wireguard.interfaces = with conf.network.addresses.wireguard; {
wg0 = {
ips = [ ips.remilia ];
listenPort = 17840;

View File

@@ -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 = {
@@ -37,7 +37,7 @@ in
};
};
in
with lib'.network.addresses.wireguard.ips; {
with conf.network.addresses.wireguard.ips; {
"${domain}" = {
addSSL = true;
enableACME = true;

View File

@@ -1,4 +1,4 @@
{ config, pkgs, lib', ... }:
{ config, pkgs, conf, ... }:
{
networking = {
@@ -15,7 +15,7 @@
trustedInterfaces = [ "docker0" ];
};
wireguard.interfaces.wg0 = with lib'.network.addresses.wireguard.ips; {
wireguard.interfaces.wg0 = with conf.network.addresses.wireguard.ips; {
ips = [ satori ];
listenPort = 17840;
privateKeyFile = "/var/secrets/wg.key";
@@ -23,7 +23,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;
}];
};