diff --git a/machines/kotys/hardware-configuration.nix b/machines/kotys/hardware-configuration.nix index 5d65231..6fff334 100644 --- a/machines/kotys/hardware-configuration.nix +++ b/machines/kotys/hardware-configuration.nix @@ -1,31 +1,35 @@ # 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, pkgs, modulesPath, ... }: - { - imports = - [ (modulesPath + "/profiles/qemu-guest.nix") - ]; + config, + lib, + pkgs, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; - boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"]; + boot.initrd.kernelModules = []; + boot.kernelModules = []; + boot.extraModulePackages = []; - fileSystems."/" = - { device = "/dev/disk/by-uuid/d56cbded-5e03-4fa2-bcfd-3a284bdae664"; - fsType = "xfs"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/d56cbded-5e03-4fa2-bcfd-3a284bdae664"; + fsType = "xfs"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/12CE-A600"; - fsType = "vfat"; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/12CE-A600"; + fsType = "vfat"; + }; - swapDevices = - [ { device = "/dev/disk/by-uuid/e9ec410f-8e92-4daf-a0b8-90828df6f96f"; } - ]; + swapDevices = [ + {device = "/dev/disk/by-uuid/e9ec410f-8e92-4daf-a0b8-90828df6f96f";} + ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's diff --git a/modules/steam.nix b/modules/steam.nix new file mode 100644 index 0000000..32036be --- /dev/null +++ b/modules/steam.nix @@ -0,0 +1,23 @@ +{ + config, + lib, + pkgs, + ... +}: +with lib; { + options.elss.steam.enable = mkEnableOption "Enable steam"; + + config = let + cfg = config.elss.steam; + in + mkIf cfg.enable { + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + extraCompatPackages = with pkgs; [ + proton-ge-bin + ]; + gamescopeSession.enable = true; + }; + }; +}