{ config, lib, pkgs, inputs, ... }: { imports = [ # Loading the high level modules ./hardware-configuration.nix # Core of the config ../../modules/server # Loading modules ../../common.nix ../../users.nix ../../modules/misc/virt.nix #../../modules/rare/minecraft.nix # set the keyboard for local dev ../../modules/tweaks.nix # Load sops 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 = {}; sops.templates."ddclient-temp" = { owner = "ddclient"; # This is the main strato configuration content = '' ssl=yes protocol=dyndns2 use=web, web=api6.ipify.org server=dyndns.strato.com/nic/update login=hahn1.one password='${config.sops.placeholder.strato_dns}' hahn1.one,cloud.hahn1.one,app.hahn1.one,dash.hahn1.one,grafana.hahn1.one,cool.hahn1.one,acmechallenge.hahn1.one ''; }; #system.copySystemConfiguration = true; system.stateVersion = "24.11"; }