nix/nixos/hosts/steamdeck/default.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

2024-04-26 06:17:54 +02:00
{ inputs, config, lib, username, pkgs, ... }: {
2024-04-24 06:13:51 +02:00
imports = [
2024-04-26 06:17:54 +02:00
inputs.jovian.nixosModules.default
2024-04-24 06:13:51 +02:00
./disks.nix
../../common/modules/boot.nix
../../common/services/tailscale-autoconnect.nix
];
2024-04-26 13:49:35 +02:00
nixpkgs.config.allowUnfree = true;
2024-04-24 06:13:51 +02:00
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" "acpi_call" ];
boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
networking.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# Set your time zone.
time.timeZone = "Asia/Tokyo";
# Set the networking hostname:
networking.hostName = "steamdeck";
2024-04-26 06:17:54 +02:00
jovian = {
decky-loader.enable = true;
steam.enable = true;
steam.autoStart = true;
steam.user = username;
2024-04-26 15:00:24 +02:00
steam.desktopSession = "plasma";
2024-04-26 06:17:54 +02:00
steamos.useSteamOSConfig = true;
devices.steamdeck.enable = true;
2024-04-26 13:49:35 +02:00
hardware.has.amd.gpu = true;
};
2024-04-24 06:13:51 +02:00
}