pub-solar-os/hosts/droppie/droppie.nix

49 lines
1 KiB
Nix
Raw Normal View History

2022-08-23 16:23:08 +00:00
{ config, pkgs, lib, self, ... }:
2022-08-13 16:08:27 +00:00
with lib;
let
psCfg = config.pub-solar;
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
in
{
imports = [
./configuration.nix
./nextcloud-web-tunnel.nix
./restic-backup.nix
2022-08-13 16:08:27 +00:00
];
config = {
hardware.cpu.intel.updateMicrocode = true;
2022-08-14 15:51:01 +00:00
pub-solar.core.disk-encryption-active = false;
2022-10-03 01:09:12 +00:00
pub-solar.core.lite = true;
2022-08-13 18:15:22 +00:00
security.sudo.extraRules = [
{
users = [ "${psCfg.user.name}" ];
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ];
}
];
}
];
2022-08-23 16:04:21 +00:00
services.ddclient = {
enable = true;
ipv6 = true;
domains = [ "backup.b12f.io" ];
server = "ddns.hosting.de";
2022-08-23 16:23:08 +00:00
username = "b12f";
2022-08-23 16:04:21 +00:00
use = "web, web=http://checkip6.spdyn.de/, web-skip=''";
passwordFile = "/run/agenix/dyndns-droppie.key";
};
age.secrets."dyndns-droppie.key" = {
file = "${self}/secrets/dyndns-droppie.key";
mode = "400";
owner = "root";
2022-08-23 16:04:21 +00:00
};
2022-08-13 16:08:27 +00:00
};
}