2020-12-06 16:40:47 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
2020-12-09 22:49:42 +01:00
|
|
|
imports = [
|
|
|
|
../../modules
|
2023-09-09 18:35:08 +02:00
|
|
|
|
|
|
|
./web.nix
|
2020-12-09 22:49:42 +01:00
|
|
|
];
|
|
|
|
|
2020-12-06 16:40:47 +01:00
|
|
|
networking.domain = "net.clerie.de";
|
|
|
|
|
2023-02-20 10:11:43 +01:00
|
|
|
networking.firewall.logRefusedConnections = lib.mkDefault false;
|
|
|
|
|
2020-12-06 16:40:47 +01:00
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
2023-06-19 22:20:47 +02:00
|
|
|
i18n.defaultLocale = "de_DE.UTF-8";
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
LC_MESSAGES = "en_US.UTF-8";
|
|
|
|
};
|
2020-12-06 16:40:47 +01:00
|
|
|
console = {
|
|
|
|
keyMap = "de-latin1";
|
|
|
|
};
|
|
|
|
|
2023-06-19 19:45:28 +02:00
|
|
|
security.sudo.wheelNeedsPassword = lib.mkDefault false;
|
2020-12-06 18:23:51 +01:00
|
|
|
|
2023-05-30 17:34:06 +02:00
|
|
|
users.groups.guests = {};
|
|
|
|
|
2022-10-16 12:56:07 +02:00
|
|
|
nix.settings = {
|
2023-05-30 17:34:06 +02:00
|
|
|
trusted-users = [ "@wheel" "@guests" ];
|
2022-10-16 12:56:07 +02:00
|
|
|
auto-optimise-store = true;
|
2023-09-09 16:39:49 +02:00
|
|
|
# Keep buildtime dependencies
|
|
|
|
keep-outputs = true;
|
2023-09-09 18:45:13 +02:00
|
|
|
# Build local, when caches are broken
|
|
|
|
fallback = true;
|
2022-10-16 12:56:07 +02:00
|
|
|
};
|
2020-12-06 18:23:51 +01:00
|
|
|
|
2020-12-06 16:40:47 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
2022-05-26 01:05:17 +02:00
|
|
|
gptfdisk
|
2020-12-06 16:40:47 +01:00
|
|
|
htop
|
2022-05-26 01:05:17 +02:00
|
|
|
parted
|
2020-12-06 16:40:47 +01:00
|
|
|
tmux
|
2022-10-03 13:14:39 +02:00
|
|
|
colmena
|
2022-10-17 22:14:49 +02:00
|
|
|
vim
|
2023-05-01 12:29:55 +02:00
|
|
|
agenix
|
2020-12-06 16:40:47 +01:00
|
|
|
];
|
|
|
|
|
2020-12-08 19:26:02 +01:00
|
|
|
programs.mtr.enable = true;
|
|
|
|
|
2023-02-28 19:41:03 +01:00
|
|
|
programs.git.enable = true;
|
|
|
|
|
|
|
|
programs.git.config = {
|
|
|
|
user = {
|
|
|
|
name = "clerie";
|
|
|
|
email = "git@clerie.de";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-12-06 16:40:47 +01:00
|
|
|
services.openssh.enable = true;
|
2023-04-16 15:31:07 +02:00
|
|
|
services.openssh.settings = {
|
2023-04-21 20:41:49 +02:00
|
|
|
PasswordAuthentication = false;
|
|
|
|
KbdInteractiveAuthentication = false;
|
|
|
|
PermitRootLogin = lib.mkDefault "no";
|
2023-04-16 15:31:07 +02:00
|
|
|
};
|
2020-12-09 22:42:39 +01:00
|
|
|
|
2022-09-29 17:44:05 +02:00
|
|
|
nix.gc = lib.mkDefault {
|
2021-06-18 12:45:26 +02:00
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
};
|
|
|
|
|
2021-01-02 18:19:11 +01:00
|
|
|
|
2022-11-19 00:06:33 +01:00
|
|
|
nix.settings = {
|
2023-09-09 16:34:01 +02:00
|
|
|
experimental-features = [
|
|
|
|
"flakes"
|
|
|
|
"nix-command"
|
|
|
|
"repl-flake"
|
|
|
|
];
|
2022-11-19 00:06:33 +01:00
|
|
|
substituters = [
|
|
|
|
"https://nix-cache.clerie.de"
|
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"nix-cache.clerie.de:bAt1GJTS9BOTcXFWj3nURrSlcjqikCev9yDvqArMP5g="
|
|
|
|
];
|
|
|
|
};
|
2022-09-29 17:49:25 +02:00
|
|
|
|
2023-05-19 10:06:47 +02:00
|
|
|
# Pin current nixpkgs channel and flake registry to the nixpkgs version
|
|
|
|
# the host got build with
|
|
|
|
nix.nixPath = lib.mkForce [ "nixpkgs=${lib.cleanSource pkgs.path}" ];
|
2023-05-19 16:15:28 +02:00
|
|
|
nix.registry = lib.mkForce {
|
2023-05-19 10:06:47 +02:00
|
|
|
"nixpkgs" = {
|
|
|
|
from = {
|
|
|
|
type = "indirect";
|
|
|
|
id = "nixpkgs";
|
|
|
|
};
|
|
|
|
to = {
|
|
|
|
type = "path";
|
|
|
|
path = lib.cleanSource pkgs.path;
|
|
|
|
};
|
|
|
|
exact = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-02-25 03:06:08 +01:00
|
|
|
services.fstrim.enable = true;
|
|
|
|
|
2023-02-26 18:45:26 +01:00
|
|
|
clerie.nixfiles.enable = true;
|
|
|
|
|
2023-05-16 12:21:11 +02:00
|
|
|
clerie.backup = {
|
|
|
|
targets = {
|
|
|
|
cyan.serverName = "cyan.backup.clerie.de";
|
|
|
|
magenta.serverName = "magenta.backup.clerie.de";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-19 22:20:47 +02:00
|
|
|
documentation.doc.enable = false;
|
|
|
|
|
2020-12-09 22:42:39 +01:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
(import ../../pkgs/overlay.nix)
|
|
|
|
];
|
2020-12-06 16:40:47 +01:00
|
|
|
}
|