mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 06:44:26 -05:00
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
{
|
|
imports =
|
|
[
|
|
# Loading the high level modules
|
|
./hardware-configuration.nix
|
|
|
|
# Loading modules
|
|
../../modules/server_gull
|
|
|
|
# Loading single modules
|
|
../../modules/misc/virt.nix
|
|
../../common.nix
|
|
../../users.nix
|
|
|
|
# Random (can be disabled)
|
|
# ../../modules/minecraft.nix
|
|
|
|
inputs.sops-nix.nixosModules.sops
|
|
];
|
|
|
|
# This is the sops setup and should be done here??
|
|
# Sops configuration and initialisation
|
|
sops.defaultSopsFile = ../../../secrets.yaml;
|
|
sops.defaultSopsFormat = "yaml";
|
|
# hard code the username here
|
|
sops.age.keyFile = "/home/jonas/.config/sops/age/keys.txt";
|
|
|
|
# ensure a user is there to own the template
|
|
users.users.ddclient = {
|
|
isSystemUser = true;
|
|
group = "ddclient";
|
|
};
|
|
users.groups.ddclient = {};
|
|
|
|
# setup the templates to use them in services
|
|
sops.secrets.strato_dns_bitzz = {};
|
|
sops.templates."ddclient-temp" = {
|
|
owner = "ddclient";
|
|
# This is the main strato configuration
|
|
# use api6 for ipv6
|
|
content = ''
|
|
ssl=yes
|
|
protocol=dyndns2
|
|
use=web, web=api.ipify.org
|
|
server=dyndns.strato.com/nic/update
|
|
login=bitzz.de
|
|
password='${config.sops.placeholder.strato_dns_bitzz}'
|
|
bitzz.de,cloud.bitzz.de,app.bitzz.de
|
|
'';
|
|
};
|
|
|
|
networking.hostName = "gullfoss";
|
|
|
|
#system.copySystemConfiguration = true;
|
|
system.stateVersion = "24.11";
|
|
}
|
|
|