2024-06-29 21:38:22 -04:00
|
|
|
{
|
|
|
|
config,
|
2024-07-14 22:59:33 -04:00
|
|
|
jovian,
|
2024-06-29 21:38:22 -04:00
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}: {
|
2024-06-29 03:45:06 -04:00
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
2024-09-22 23:34:11 -04:00
|
|
|
nixpkgs.overlays = [jovian.overlays.default];
|
2024-07-14 22:59:33 -04:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
jovian.nixosModules.default
|
|
|
|
];
|
2024-06-29 03:45:06 -04:00
|
|
|
|
|
|
|
jovian = {
|
|
|
|
steamos.useSteamOSConfig = true;
|
|
|
|
|
|
|
|
devices.steamdeck = {
|
|
|
|
enable = true;
|
|
|
|
enableGyroDsuService = true;
|
|
|
|
};
|
|
|
|
hardware.has.amd.gpu = true;
|
|
|
|
};
|
|
|
|
|
2024-06-29 21:38:22 -04:00
|
|
|
boot = {
|
|
|
|
kernelModules = ["kvm-amd"];
|
|
|
|
initrd.availableKernelModules = ["nvme" "xhci_pci" "usbhid" "sdhci_pci"];
|
2024-06-29 03:45:06 -04:00
|
|
|
|
2024-06-29 21:38:22 -04:00
|
|
|
loader = {
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
systemd-boot = {
|
|
|
|
enable = true;
|
|
|
|
configurationLimit = 30;
|
|
|
|
};
|
2024-06-29 03:45:06 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualisation.waydroid.enable = true;
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
2024-06-29 21:38:22 -04:00
|
|
|
device = "/dev/disk/by-label/NIXROOT";
|
|
|
|
fsType = "ext4";
|
2024-06-29 03:45:06 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-label/NIXBOOT";
|
|
|
|
fsType = "vfat";
|
2024-06-29 21:38:22 -04:00
|
|
|
options = ["fmask=0022" "dmask=0022"];
|
2024-06-29 03:45:06 -04:00
|
|
|
};
|
2024-08-14 22:43:06 -04:00
|
|
|
|
|
|
|
"/run/media/mariah/SDCARD" = {
|
|
|
|
device = "/dev/disk/by-label/SDCARD";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2024-06-29 03:45:06 -04:00
|
|
|
};
|
2024-06-29 21:38:22 -04:00
|
|
|
|
|
|
|
swapDevices = [
|
|
|
|
{
|
2024-06-29 22:19:22 -04:00
|
|
|
device = "/.swapfile";
|
2024-06-29 22:44:08 -04:00
|
|
|
size = 16 * 1024; # 16GB
|
2024-06-29 21:38:22 -04:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2024-08-30 12:30:35 -04:00
|
|
|
hardware.cpu.amd.updateMicrocode = config.hardware.enableRedistributableFirmware;
|
2024-06-29 03:45:06 -04:00
|
|
|
}
|