nix-files/hosts/servo/default.nix

48 lines
1.4 KiB
Nix
Raw Normal View History

{ pkgs, ... }:
{
imports = [
./fs.nix
./hardware.nix
./net.nix
./users.nix
./services
];
sane.packages.extraUserPkgs = [
2022-10-14 04:49:54 +00:00
# for administering services
pkgs.matrix-synapse
2022-10-14 04:49:54 +00:00
pkgs.freshrss
2022-11-15 12:28:49 +00:00
pkgs.libraspberrypi
];
2022-08-01 07:23:49 +00:00
sane.impermanence.enable = true;
sane.services.duplicity.enable = true;
sane.services.nixserve.enable = true;
sane.services.nixserv.sopsFile = ../../secrets/servo.yaml;
# TODO: look into the EFI stuff
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.loader.efi.canTouchEfiVariables = false;
2022-08-01 07:23:49 +00:00
sane.image.extraBootFiles = [ pkgs.bootpart-u-boot-rpi-aarch64 ];
2022-06-10 08:43:48 +00:00
sops.secrets.duplicity_passphrase = {
2022-06-12 22:11:41 +00:00
sopsFile = ../../secrets/servo.yaml;
};
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).
system.stateVersion = "21.11"; # Did you read the comment?
}