{ lib, pkgs, ... }: { imports = [ ../modules/nixos-apple-silicon/apple-silicon-support ../modules/persistence ../modules/workstation/audio ../modules/workstation/hardware/bluetooth ../modules/workstation/physical ]; nixpkgs.hostPlatform.system = "aarch64-linux"; hardware.enableRedistributableFirmware = true; boot.loader.systemd-boot.enable = true; boot.initrd.postDeviceCommands = '' mkdir /mnt mount /dev/mapper/root /mnt for subvol in var/tmp @ tmp; do btrfs subvolume delete "/mnt/$subvol" btrfs subvolume create "/mnt/$subvol" done umount /mnt ''; boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/dc106480-a643-4f32-a63d-931f53e8baae"; hardware.asahi.withRust = true; boot.kernelPatches = [ { name = "drm-fix.patch"; patch = pkgs.fetchpatch { url = "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=e0f04e41e8eedd4e5a1275f2318df7e1841855f2"; hash = "sha256-rQXDlsUQxQr9na0jW0CfQRK+4rVsmInCkxHfLx5Qn7g="; }; } ]; # appledrm with software rendering is much laggier than simpledrm with software. boot.blacklistedKernelModules = [ "appledrm" ]; fileSystems."/" = { device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926"; fsType = "btrfs"; options = [ "subvol=@" ]; }; fileSystems."/tmp" = { device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926"; fsType = "btrfs"; options = [ "subvol=tmp" ]; }; fileSystems."/var/tmp" = { device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926"; fsType = "btrfs"; options = [ "subvol=var/tmp" ]; }; fileSystems."/home" = { device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926"; fsType = "btrfs"; options = [ "subvol=persist/safe/home" ]; }; fileSystems."/nix" = { device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926"; fsType = "btrfs"; options = [ "subvol=persist/local/nix" ]; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/472D-1D13"; fsType = "vfat"; }; fileSystems."/persist" = { device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926"; fsType = "btrfs"; options = [ "subvol=persist" ]; neededForBoot = true; }; fileSystems."/srv" = { device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926"; fsType = "btrfs"; options = [ "subvol=persist/safe/srv" ]; }; fileSystems."/var/lib/machines" = { device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926"; fsType = "btrfs"; options = [ "subvol=persist/safe/var/lib/machines" ]; }; fileSystems."/var/lib/portables" = { device = "/dev/disk/by-uuid/e5821c99-7507-421d-9280-de09a055d926"; fsType = "btrfs"; options = [ "subvol=persist/safe/var/lib/portables" ]; }; networking.hostName = "mbp"; users.users.qyliss.hashedPassword = "$y$j9T$qdvgrHPyvZpqjUQXuagxD1$dq5yygUTVhVqpgG9.zWaihmtED437Cl.fllqJBEWSo4"; hardware.opengl.enable = false; services.xserver.xkb.options = "compose:ralt"; programs.sway.extraConfig = '' output Unknown-1 scale 2 ''; system.stateVersion = "23.11"; }