mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 14:54:26 -05:00
Initial commit unclean
This commit is contained in:
58
hosts/misox-workstation/configuration.nix
Normal file
58
hosts/misox-workstation/configuration.nix
Normal file
@@ -0,0 +1,58 @@
|
||||
{ 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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user