nix/nixos/hosts/steamdeck/default.nix

47 lines
1.5 KiB
Nix
Raw Normal View History

2024-06-24 05:55:17 +02:00
{ inputs, config, lib, username, hostname, 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-11-18 20:48:16 +01:00
../../common/services/geoclue.nix
2024-04-24 06:13:51 +02:00
];
2024-10-29 03:39:43 +01:00
nixpkgs.config.permittedInsecurePackages = [
"electron-27.3.11"
];
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;
2024-04-28 03:22:14 +02:00
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
2024-04-24 06:13:51 +02:00
# Set the networking hostname:
2024-06-24 05:55:17 +02:00
networking.hostName = hostname;
2024-04-24 06:13:51 +02:00
2024-04-28 06:18:33 +02:00
environment.systemPackages = with pkgs; [
python3 # decky-loader required
jupiter-dock-updater-bin
2024-04-28 06:23:37 +02:00
jellyfin-media-player
2024-04-28 06:18:33 +02:00
];
2024-04-26 06:17:54 +02:00
jovian = {
2024-04-28 03:22:14 +02:00
decky-loader = {
enable = true;
2024-06-28 09:06:33 +02:00
user = username;
2024-04-28 03:22:14 +02:00
};
steam = {
enable = true;
autoStart = true;
user = username;
desktopSession = "plasma";
};
2024-04-26 06:17:54 +02:00
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
}