Files
Chickadee/hosts/laptop.nix
T

72 lines
1.8 KiB
Nix
Raw Normal View History

2026-09-23 17:49:58 -04:00
{ config, lib, pkgs, ... }:
2026-09-12 17:11:21 -04:00
{
2026-09-21 10:58:46 -04:00
imports = [
2026-09-23 17:49:58 -04:00
../modules/desktop.nix
2026-09-23 17:39:36 -04:00
../lilac.nix
2026-09-21 10:58:46 -04:00
];
2026-09-12 17:11:21 -04:00
environment.systemPackages = with pkgs; [
2026-09-21 10:58:46 -04:00
mullvad-browser
signal-desktop
discord
protonmail-desktop
steam
obsidian
2026-09-12 17:11:21 -04:00
];
networking = {
2026-09-23 17:49:58 -04:00
hostName = "laptop";
networkmanager.enable = true;
2026-09-12 17:11:21 -04:00
firewall = {
enable = true;
allowedUDPPorts = [ 51820 ];
trustedInterfaces = [ "wg0" ];
};
wireguard.interfaces."wg0" = {
2026-09-23 17:39:36 -04:00
ips = [ "10.0.0.1/32" ];
2026-09-12 17:11:21 -04:00
generatePrivateKeyFile = true;
privateKeyFile = "/var/lib/wireguard/wg0.key";
peers = [{
publicKey = "Tst6SiqoGLSoOAF9l5vT2vvR2RGJ/mFcoBL3BL5n90k=";
allowedIPs = [ "10.0.0.0/24" ];
endpoint = "216.128.177.13:51820";
persistentKeepalive = 25;
}];
};
};
2026-09-23 17:49:58 -04:00
time.timeZone = "America/Toronto";
2026-09-12 17:11:21 -04:00
services.openssh.enable = true;
2026-09-23 17:49:58 -04:00
hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
hardware.enableRedistributableFirmware = true;
2026-09-12 17:11:21 -04:00
2026-09-23 17:49:58 -04:00
nix.settings.experimental-features = [ "nix-command" "flakes" ];
2026-09-12 17:11:21 -04:00
nixpkgs.config.allowUnfree = true;
system.stateVersion = "26.05";
2026-09-23 17:39:36 -04:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
2026-09-23 17:49:58 -04:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2026-09-23 17:39:36 -04:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/379e6dd2-af45-4abc-8ff0-802791f76636";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/D852-8C36";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2026-09-12 17:11:21 -04:00
}