2022-06-06 12:37:11 +02:00
|
|
|
{ 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.
|
2022-09-06 19:04:32 +02:00
|
|
|
../../modules/disk-checkup.nix
|
2022-06-06 12:37:11 +02:00
|
|
|
./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;
|
2022-10-07 19:54:29 +02:00
|
|
|
nix = {
|
|
|
|
package = pkgs.nix_2_3;
|
|
|
|
settings = {
|
|
|
|
trusted-public-keys = lib.mkAfter [
|
|
|
|
"headcounter.org:/7YANMvnQnyvcVB6rgFTdb8p5LG1OTXaO+21CaOSBzg="
|
|
|
|
];
|
|
|
|
substituters = lib.mkAfter [
|
|
|
|
"https://hydra.build"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2022-06-06 12:37:11 +02:00
|
|
|
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;
|
2022-11-30 15:52:08 +01:00
|
|
|
extraGroups = [ "wheel" "http" "git" ];
|
2022-06-06 12:37:11 +02:00
|
|
|
openssh.authorizedKeys.keys = depot.users.sterni.keys.all;
|
|
|
|
shell = "${pkgs.fish}/bin/fish";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nix.settings.trusted-users = [
|
|
|
|
"lukas"
|
|
|
|
];
|
|
|
|
|
|
|
|
system.stateVersion = "20.09";
|
|
|
|
};
|
|
|
|
}
|