2023-01-20 07:42:31 +00:00
|
|
|
|
{ config, pkgs, ... }:
|
2022-05-21 07:30:29 +00:00
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
|
|
|
|
./fs.nix
|
|
|
|
|
./net.nix
|
2022-10-05 06:08:03 +00:00
|
|
|
|
./services
|
2022-05-21 07:30:29 +00:00
|
|
|
|
];
|
|
|
|
|
|
2023-02-03 05:26:57 +00:00
|
|
|
|
sane.programs = {
|
2022-10-14 04:49:54 +00:00
|
|
|
|
# for administering services
|
2023-02-03 05:26:57 +00:00
|
|
|
|
freshrss.enableFor.user.colin = true;
|
|
|
|
|
matrix-synapse.enableFor.user.colin = true;
|
|
|
|
|
signaldctl.enableFor.user.colin = true;
|
|
|
|
|
};
|
|
|
|
|
|
2023-05-17 01:53:17 +00:00
|
|
|
|
sane.roles.ac = true;
|
2023-03-11 13:45:45 +00:00
|
|
|
|
sane.roles.build-machine.enable = true;
|
|
|
|
|
sane.roles.build-machine.emulation = false;
|
2023-03-11 07:58:56 +00:00
|
|
|
|
sane.zsh.showDeadlines = false; # ~/knowledge doesn't always exist
|
2022-12-19 11:16:30 +00:00
|
|
|
|
sane.services.dyn-dns.enable = true;
|
2023-01-20 00:13:13 +00:00
|
|
|
|
sane.services.wg-home.enable = true;
|
2023-01-20 07:45:54 +00:00
|
|
|
|
sane.services.wg-home.ip = config.sane.hosts.by-name."servo".wg-home.ip;
|
2022-11-22 12:01:55 +00:00
|
|
|
|
# sane.services.duplicity.enable = true; # TODO: re-enable after HW upgrade
|
2022-06-29 08:17:53 +00:00
|
|
|
|
|
2023-01-20 22:16:47 +00:00
|
|
|
|
# automatically log in at the virtual consoles.
|
|
|
|
|
# using root here makes sure we always have an escape hatch
|
|
|
|
|
services.getty.autologinUser = "root";
|
|
|
|
|
|
2022-06-29 08:17:53 +00:00
|
|
|
|
boot.loader.efi.canTouchEfiVariables = false;
|
2022-11-29 02:20:18 +00:00
|
|
|
|
sane.image.extraBootFiles = [ pkgs.bootpart-uefi-x86_64 ];
|
2022-06-10 08:30:57 +00:00
|
|
|
|
|
2022-06-26 10:37:50 +00:00
|
|
|
|
# both transmission and ipfs try to set different net defaults.
|
|
|
|
|
# we just use the most aggressive of the two here:
|
|
|
|
|
boot.kernel.sysctl = {
|
2022-11-12 11:14:52 +00:00
|
|
|
|
"net.core.rmem_max" = 4194304; # 4MB
|
2022-06-26 10:37:50 +00:00
|
|
|
|
};
|
|
|
|
|
|
2022-05-21 07:30:29 +00:00
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
2022-11-22 12:01:55 +00:00
|
|
|
|
system.stateVersion = "21.11";
|
2022-05-21 07:30:29 +00:00
|
|
|
|
}
|
|
|
|
|
|