profiles/netcup: Add profile for Netcup VM
This commit is contained in:
parent
e4dc3bdc1f
commit
ec6390be3f
@ -120,6 +120,7 @@
|
||||
nixosModules = {
|
||||
nixfilesInputs = import ./flake/modules.nix inputs;
|
||||
clerie = import ./modules;
|
||||
profiles = import ./profiles;
|
||||
default = self.nixosModules.clerie;
|
||||
};
|
||||
|
||||
|
@ -16,6 +16,7 @@ let
|
||||
modules = modules ++ [
|
||||
self.nixosModules.nixfilesInputs
|
||||
self.nixosModules.clerie
|
||||
self.nixosModules.profiles
|
||||
|
||||
({ config, lib, ... }: {
|
||||
# Set hostname
|
||||
|
@ -7,6 +7,8 @@
|
||||
../../configuration/router
|
||||
];
|
||||
|
||||
profiles.clerie.netcup.enable = true;
|
||||
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
|
||||
@ -25,8 +27,6 @@
|
||||
linkConfig.RequiredForOnline = "routable";
|
||||
};
|
||||
|
||||
networking.nameservers = [ "46.38.255.230" "46.38.252.230" ];
|
||||
|
||||
clerie.nginx-port-forward = {
|
||||
enable = true;
|
||||
tcpPorts."2022" = {
|
||||
|
9
profiles/default.nix
Normal file
9
profiles/default.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
|
||||
imports = [
|
||||
./netcup
|
||||
];
|
||||
|
||||
}
|
20
profiles/netcup/default.nix
Normal file
20
profiles/netcup/default.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
|
||||
options.profiles.clerie.netcup = {
|
||||
enable = mkEnableOption "Profile for Netcup VM";
|
||||
};
|
||||
|
||||
config = mkIf config.profiles.clerie.netcup.enable {
|
||||
|
||||
services.qemuGuest.enable = true;
|
||||
|
||||
# https://helpcenter.netcup.com/de/wiki/server/nameserver/
|
||||
networking.nameservers = [ "2a03:4000:0:1::e1e6" "2a03:4000:8000::fce6" "46.38.255.230" "46.38.252.230" ];
|
||||
|
||||
};
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user