2026-09-23 17:49:58 -04:00
|
|
|
{ config, lib, pkgs, ... }:
|
2026-07-11 14:56:13 -04:00
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
2026-09-23 17:39:36 -04:00
|
|
|
../modules/backup.nix
|
|
|
|
|
../modules/blog.nix
|
|
|
|
|
../modules/code.nix
|
2026-09-23 17:49:58 -04:00
|
|
|
../modules/desktop.nix
|
2026-09-23 17:39:36 -04:00
|
|
|
../modules/mail.nix
|
|
|
|
|
../modules/music.nix
|
|
|
|
|
../modules/photo.nix
|
2026-09-25 14:32:09 -04:00
|
|
|
../modules/secrets.nix
|
2026-09-23 17:39:36 -04:00
|
|
|
../modules/ssh.nix
|
|
|
|
|
../modules/vault.nix
|
|
|
|
|
../lilac.nix
|
2026-07-11 14:56:13 -04:00
|
|
|
];
|
|
|
|
|
|
2026-09-23 17:49:58 -04:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
whipper
|
|
|
|
|
restic
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
|
hostName = "desktop";
|
|
|
|
|
|
|
|
|
|
firewall = {
|
|
|
|
|
enable = true;
|
|
|
|
|
allowedUDPPorts = [ 51820 ];
|
|
|
|
|
trustedInterfaces = [ "wg0" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
wireguard.interfaces."wg0" = {
|
|
|
|
|
ips = [ "10.0.0.2/32" ];
|
|
|
|
|
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-10-11 17:06:58 -04:00
|
|
|
hardware.graphics.enable = true;
|
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
|
|
2026-09-23 17:49:58 -04:00
|
|
|
programs.steam.enable = true;
|
2026-07-11 16:28:11 -04:00
|
|
|
|
2026-07-11 14:56:13 -04:00
|
|
|
time.timeZone = "America/Toronto";
|
|
|
|
|
|
2026-07-12 08:20:56 -04:00
|
|
|
services.displayManager.autoLogin.enable = true;
|
|
|
|
|
services.displayManager.autoLogin.user = "lilac";
|
|
|
|
|
|
|
|
|
|
systemd.sleep.settings.Sleep = {
|
|
|
|
|
AllowSuspend = "no";
|
|
|
|
|
AllowHibernation = "no";
|
|
|
|
|
AllowHybridSleep = "no";
|
|
|
|
|
AllowSuspendThenHibernate = "no";
|
|
|
|
|
};
|
|
|
|
|
|
2026-07-11 14:56:13 -04:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2026-07-11 16:28:11 -04:00
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
2026-07-11 14:56:13 -04:00
|
|
|
system.stateVersion = "26.05";
|
2026-09-23 17:39:36 -04:00
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "sd_mod" ];
|
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
boot.kernelParams = [ "amdgpu.runpm=0" ];
|
|
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/d7450680-7d53-4842-83c5-7fc32526dff1";
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/D148-4AB8";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
options = [ "fmask=0077" "dmask=0077" ];
|
|
|
|
|
};
|
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2026-07-11 14:56:13 -04:00
|
|
|
}
|