nix-files/hosts/by-name/servo/default.nix

57 lines
2.0 KiB
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
imports = [
./fs.nix
./net.nix
./services
];
sane.programs = {
2022-10-14 04:49:54 +00:00
# for administering services
freshrss.enableFor.user.colin = true;
matrix-synapse.enableFor.user.colin = true;
signaldctl.enableFor.user.colin = true;
};
sane.roles.build-machine.enable = true;
2024-05-18 08:01:06 +00:00
sane.programs.zsh.config.showDeadlines = false; # ~/knowledge doesn't always exist
2023-08-02 21:08:19 +00:00
sane.programs.consoleUtils.suggestedPrograms = [
2024-01-04 16:22:40 +00:00
"consoleMediaUtils" # notably, for go2tv / casting
"pcConsoleUtils"
2023-08-02 21:08:19 +00:00
"sane-scripts.stop-all-servo"
];
sane.services.dyn-dns.enable = true;
sane.services.trust-dns.asSystemResolver = false; # TODO: enable once it's all working well
sane.services.wg-home.enable = true;
sane.services.wg-home.visibleToWan = true;
sane.services.wg-home.forwardToWan = true;
sane.services.wg-home.routeThroughServo = false;
2023-01-20 07:45:54 +00:00
sane.services.wg-home.ip = config.sane.hosts.by-name."servo".wg-home.ip;
2023-11-23 01:59:37 +00:00
sane.nixcache.remote-builders.desko = false;
2023-11-23 02:21:01 +00:00
sane.nixcache.remote-builders.servo = false;
2022-11-22 12:01:55 +00:00
# sane.services.duplicity.enable = true; # TODO: re-enable after HW upgrade
# automatically log in at the virtual consoles.
# using root here makes sure we always have an escape hatch
services.getty.autologinUser = "root";
boot.loader.efi.canTouchEfiVariables = false;
2022-11-29 02:20:18 +00:00
sane.image.extraBootFiles = [ pkgs.bootpart-uefi-x86_64 ];
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 = {
"net.core.rmem_max" = 4194304; # 4MB
2022-06-26 10:37:50 +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. Its 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";
}