2023-05-18 06:57:58 +02:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
2023-08-26 14:01:58 +02:00
|
|
|
config,
|
2023-05-18 06:57:58 +02:00
|
|
|
...
|
|
|
|
}: {
|
2023-07-28 16:21:31 +02:00
|
|
|
age.rekey = {
|
2023-05-18 06:57:58 +02:00
|
|
|
inherit
|
2023-05-27 07:12:18 +02:00
|
|
|
(inputs.self.secretsConfig)
|
2023-05-18 06:57:58 +02:00
|
|
|
masterIdentities
|
|
|
|
extraEncryptionPubkeys
|
|
|
|
;
|
|
|
|
|
|
|
|
forceRekeyOnSystem = builtins.extraBuiltins.unsafeCurrentSystem;
|
|
|
|
hostPubkey = let
|
2023-08-26 14:01:58 +02:00
|
|
|
pubkeyPath = config.node.secretsDir + "/host.pub";
|
2023-05-18 06:57:58 +02:00
|
|
|
in
|
2023-08-26 14:01:58 +02:00
|
|
|
lib.mkIf (lib.pathExists pubkeyPath || lib.trace "Missing pubkey for ${config.node.name}: ${toString pubkeyPath} not found, using dummy replacement key for now." false)
|
2023-05-18 06:57:58 +02:00
|
|
|
pubkeyPath;
|
|
|
|
};
|
|
|
|
security.sudo.enable = false;
|
|
|
|
|
|
|
|
time.timeZone = lib.mkDefault "Europe/Berlin";
|
|
|
|
i18n.defaultLocale = "C.UTF-8";
|
|
|
|
services.xserver = {
|
|
|
|
layout = "de";
|
|
|
|
xkbVariant = "bone";
|
|
|
|
};
|
|
|
|
console = {
|
|
|
|
font = "ter-v28n";
|
|
|
|
packages = with pkgs; [terminus_font];
|
|
|
|
useXkbConfig = true; # use xkbOptions in tty.
|
|
|
|
keyMap = lib.mkDefault "de-latin1-nodeadkeys";
|
|
|
|
};
|
|
|
|
|
|
|
|
users.mutableUsers = false;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
wget
|
|
|
|
gcc
|
|
|
|
tree
|
|
|
|
rage
|
|
|
|
file
|
|
|
|
ripgrep
|
|
|
|
killall
|
|
|
|
fd
|
|
|
|
];
|
|
|
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
2023-05-27 07:12:18 +02:00
|
|
|
|
|
|
|
secrets.secretFiles = let
|
2023-08-26 14:01:58 +02:00
|
|
|
local = config.node.secretsDir + "/secrets.nix.age";
|
2023-05-27 07:12:18 +02:00
|
|
|
in
|
|
|
|
{
|
2023-09-02 17:30:09 +02:00
|
|
|
global = ../../secrets/secrets.nix.age;
|
2023-05-27 07:12:18 +02:00
|
|
|
}
|
2023-08-26 14:01:58 +02:00
|
|
|
// lib.optionalAttrs (config.node.name != null && lib.pathExists local) {inherit local;};
|
2023-05-18 06:57:58 +02:00
|
|
|
}
|