nix/nixos/hosts/steamdeck/default.nix

46 lines
1.4 KiB
Nix
Raw Normal View History

2024-06-24 12:55:17 +09:00
{ inputs, config, lib, username, hostname, pkgs, ... }: {
2024-04-24 13:13:51 +09:00
imports = [
2024-04-26 13:17:54 +09:00
inputs.jovian.nixosModules.default
2024-04-24 13:13:51 +09:00
./disks.nix
../../common/modules/boot.nix
../../common/services/tailscale-autoconnect.nix
];
2024-04-26 20:49:35 +09:00
nixpkgs.config.allowUnfree = true;
2024-04-24 13:13:51 +09: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;
2024-04-28 10:22:14 +09:00
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
2024-04-24 13:13:51 +09:00
# Set your time zone.
time.timeZone = "Asia/Tokyo";
# Set the networking hostname:
2024-06-24 12:55:17 +09:00
networking.hostName = hostname;
2024-04-24 13:13:51 +09:00
2024-04-28 13:18:33 +09:00
environment.systemPackages = with pkgs; [
python3 # decky-loader required
jupiter-dock-updater-bin
2024-04-28 13:23:37 +09:00
jellyfin-media-player
2024-04-28 13:18:33 +09:00
];
2024-04-26 13:17:54 +09:00
jovian = {
2024-04-28 10:22:14 +09:00
decky-loader = {
enable = true;
2024-06-28 16:06:33 +09:00
user = username;
2024-04-28 10:22:14 +09:00
};
steam = {
enable = true;
autoStart = true;
user = username;
desktopSession = "plasma";
};
2024-04-26 13:17:54 +09:00
devices.steamdeck.enable = true;
2024-04-26 20:49:35 +09:00
hardware.has.amd.gpu = true;
};
2024-04-24 13:13:51 +09:00
}