mlaga97-nixos/systems/ll-latitude-e5591.nix

68 lines
1.9 KiB
Nix

# sudo nix run 'github:nix-community/disko/latest#disko-install' -- --flake .#$TARGET_HOSTNAME --disk nvme0n1 /dev/nvme0n1
# tar -xvf /Parlor/Lauren/mlaga97-nixos.tar.zst; sudo nixos-rebuild switch --flake mlaga97-nixos?submodules=1#$HOSTNAME
{ config, pkgs, ... }: {
imports = [
# Core Features
../features/base.nix
../features/tui-apps.nix
../features/openssh-server.nix
# Core Tweaks
../tweaks/zram.nix
../tweaks/enable_flakes.nix
../tweaks/disable_nixos_user.nix
../tweaks/systemd-resolved_nonsense.nix
# Lauren Base
../users/lauren_lagarde/lauren_lagarde.nix
# i3wm
../features/i3wm.nix
../features/hardware/yubikey.nix
../tweaks/bluetooth.nix
../tweaks/intel_igpu_screen_tearing.nix
# Dotspace
../secrets/dotspace.nix
../features/stronghold-binary-cache.nix
# Additional Software
../features/embedded.nix
../features/hardware/rtl-sdr.nix
../features/hardware/printing.nix
../features/virtualization/docker.nix
../features/virtualization/libvirt-host.nix
# ll-latitude-e5591
../features/gpu/intel.nix
../features/systemd-boot.nix
../features/factorio.nix
];
hardware.enableRedistributableFirmware = true;
boot.kernelParams = [
"i915.enable_guc=2"
];
# TODO: Not quite enough for hibernation while zram is still enabled
#swapDevices = [{
# device = "/var/lib/swapfile";
# size = 48 * 1024;
#}];
##############################################################################
##############################################################################
##############################################################################
# Tinc Stuff
# TODO: Less hacky
services.tinc.networks.mlaga97space = {
name = "ll_latitude_e5591";
ed25519PrivateKeyFile = "/root/tinc/mlaga97space_ed25519_key.priv";
chroot = false;
settings.ConnectTo = [ "fortress" "citadel" ];
};
}