2021-12-21 21:48:41 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2021-12-21 22:13:01 +00:00
|
|
|
{
|
2022-04-15 15:07:21 +00:00
|
|
|
imports =
|
|
|
|
[ ./monitoring.nix ./hardware-configuration.nix ./zfs.nix ./zrepl.nix ];
|
2021-12-21 21:48:41 +00:00
|
|
|
|
2021-12-21 22:13:01 +00:00
|
|
|
within.users.enableSystem = true;
|
|
|
|
|
2021-12-21 21:48:41 +00:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
|
|
boot.zfs.devNodes = "/dev/disk/by-partuuid";
|
|
|
|
boot.kernelParams = [ "zfs.zfs_arc_max=1073741824" ];
|
|
|
|
|
|
|
|
networking.interfaces.enp2s0.useDHCP = true;
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
networking.firewall.enable = false;
|
|
|
|
|
|
|
|
boot.kernel.sysctl = {
|
|
|
|
"net.ipv4.ip_forward" = 1;
|
|
|
|
"net.ipv6.conf.all.forwarding" = 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
2022-09-23 01:35:00 +00:00
|
|
|
environment.systemPackages = with pkgs; [ wget vim zfs rsync ];
|
2021-12-21 21:48:41 +00:00
|
|
|
|
|
|
|
services.zfs.autoScrub.enable = true;
|
|
|
|
services.zfs.autoSnapshot.enable = true;
|
|
|
|
services.zfs.trim.enable = true;
|
|
|
|
|
2021-12-21 22:18:14 +00:00
|
|
|
within.microcode = {
|
|
|
|
enable = true;
|
|
|
|
vendor = "intel";
|
|
|
|
};
|
2021-12-21 21:48:41 +00:00
|
|
|
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
|
|
|
|
services.tailscale.enable = true;
|
|
|
|
virtualisation.libvirtd.enable = true;
|
2023-02-19 23:41:31 +00:00
|
|
|
virtualisation.docker.enable = true;
|
2022-06-22 19:48:09 +00:00
|
|
|
|
|
|
|
systemd.services.network-setup = {
|
|
|
|
serviceConfig.Type = "oneshot";
|
2022-06-22 20:03:43 +00:00
|
|
|
serviceConfig.ExecStart = "${pkgs.coreutils}/bin/true";
|
2022-06-22 20:11:13 +00:00
|
|
|
serviceConfig.RemainAfterExit = true;
|
2022-06-22 19:48:09 +00:00
|
|
|
};
|
2022-06-22 20:43:49 +00:00
|
|
|
|
2022-06-22 20:45:07 +00:00
|
|
|
systemd.services.tailscaled.path = with pkgs; [ mosh getent shadow ];
|
2023-01-25 03:00:24 +00:00
|
|
|
|
|
|
|
home-manager.users.cadey = { ... }: {
|
2023-02-04 17:09:53 +00:00
|
|
|
within.emacs.enable = true;
|
2023-01-25 03:00:24 +00:00
|
|
|
};
|
2021-12-21 21:48:41 +00:00
|
|
|
}
|