diff --git a/hosts/nixos/ares/configuration.nix b/hosts/nixos/ares/configuration.nix index a3e4fd2..6141419 100644 --- a/hosts/nixos/ares/configuration.nix +++ b/hosts/nixos/ares/configuration.nix @@ -1,13 +1,15 @@ +{ inputs, ... }: { imports = [ - # ./hardware-configuration.nix + ./hardware-configuration.nix ../../../modules/nixos + inputs.jovian-nixos.nixosModules.default ]; osbmModules = { - desktopEnvironment = { - plasma.enable = true; - }; + # desktopEnvironment = { + # plasma.enable = true; + # }; familyUser.enable = true; programs = { adbFastboot.enable = true; @@ -20,6 +22,18 @@ i18n.enable = true; }; + jovian = { + devices.steamdeck = { + enable = true; + autoUpdate = true; + }; + steam = { + enable = true; + autoStart = true; + user = "osbm"; + }; + decky-loader.enable = true; + }; networking = { hostName = "ares"; diff --git a/hosts/nixos/ares/hardware-configuration.nix b/hosts/nixos/ares/hardware-configuration.nix new file mode 100644 index 0000000..3cc3979 --- /dev/null +++ b/hosts/nixos/ares/hardware-configuration.nix @@ -0,0 +1,48 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ + config, + lib, + modulesPath, + ... +}: + +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ + "nvme" + "xhci_pci" + "usb_storage" + "usbhid" + "sd_mod" + "sdhci_pci" + ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/ec49c05b-3d2b-4d9f-8634-ab4f3597b843"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/E3FC-D8F9"; + fsType = "vfat"; + options = [ + "fmask=0077" + "dmask=0077" + ]; + }; + + swapDevices = [ + { device = "/dev/disk/by-uuid/f4477674-7104-43d7-b28c-6a8a8a86e8db"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/modules/nixos/system/nix-settings.nix b/modules/nixos/system/nix-settings.nix index 0c26ad2..b1d74b7 100644 --- a/modules/nixos/system/nix-settings.nix +++ b/modules/nixos/system/nix-settings.nix @@ -38,6 +38,10 @@ "nvidia-settings" # blender with cuda is not foss?!? "blender" + + # steam + "steamdeck-hw-theme" + "steam-jupiter-unwrapped" ]; allowAliases = false; };