tvl-depot/users/sterni/machines/edwin/default.nix
sterni b4c0c40f63 feat(sterni/machines/edwin): enable btrfs autoscrub
Small module that regularly runs btrfs scrub on all btrfs filesystems.
Eventually the module should also do SMART value monitoring, as edwin is
a server from Hetzner's server auction, so a disk failure may not be too
far away.

Change-Id: I11e423a5d91c99ad455c2bb29b632efb79ef908e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7294
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
2022-11-26 15:51:31 +00:00

78 lines
1.7 KiB
Nix

{ config, lib, pkgs, depot, ... }:
{
imports = [
# Third party modules we use
"${depot.third_party.agenix.src}/modules/age.nix"
# These modules touch things related to booting (filesystems, initrd network…)
./hardware.nix
./network.nix
# These modules configure services, websites etc.
../../modules/disk-checkup.nix
./minecraft.nix
./gopher.nix
./http/sterni.lv.nix
./http/code.sterni.lv.nix
./http/flipdot.openlab-augsburg.de.nix
./http/likely-music.sterni.lv.nix
];
config = {
time.timeZone = "Europe/Berlin";
nixpkgs.config.allowUnfreeRedistributable = true;
nix.package = pkgs.nix_2_3;
tvl.cache.enable = true;
services = {
journald.extraConfig = ''
SystemMaxUse=1024M
'';
openssh.enable = true;
};
security.acme = {
defaults.email = builtins.getAttr "email" (
builtins.head (
builtins.filter (attrs: attrs.username == "sterni") depot.ops.users
)
);
acceptTerms = true;
};
programs = {
fish.enable = true;
mosh.enable = true;
tmux.enable = true;
};
environment.systemPackages = [
pkgs.weechat
pkgs.wget
pkgs.git
pkgs.stow
pkgs.htop
pkgs.foot.terminfo
pkgs.vim
];
users = {
users = {
root.openssh.authorizedKeys.keys = depot.users.sterni.keys.all;
lukas = {
isNormalUser = true;
extraGroups = [ "wheel" "http" ];
openssh.authorizedKeys.keys = depot.users.sterni.keys.all;
shell = "${pkgs.fish}/bin/fish";
};
};
};
nix.settings.trusted-users = [
"lukas"
];
system.stateVersion = "20.09";
};
}