steamui doesn't work in virtmanager :(

This commit is contained in:
Tyler Starr 2023-08-21 22:44:19 -07:00
parent 0dae391f43
commit 1d26018a1c
4 changed files with 21 additions and 16 deletions

View File

@ -65,7 +65,7 @@
bulwark = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; inherit pkgs-unstable; };
specialArgs = { inherit user; inherit pkgs-unstable; inherit jovian-nixos; inherit home-manager; };
modules = [
./hosts/bulwark/configuration.nix
./hosts/bulwark/hardware.nix

View File

@ -41,9 +41,9 @@
i18n.defaultLocale = "en_US.UTF-8";
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.support32Bit = true;
#sound.enable = true;
#hardware.pulseaudio.enable = true;
#hardware.pulseaudio.support32Bit = true;
# Add fonts
fonts.fonts = with pkgs; [
@ -51,8 +51,8 @@
];
# Enable virtualisation
virtualisation.docker.enable = true;
virtualisation.docker.storageDriver = "btrfs";
#virtualisation.docker.enable = true;
#virtualisation.docker.storageDriver = "btrfs";
# Enable zsh
programs.zsh.enable = true;

View File

@ -1,4 +1,4 @@
{ ... }:
{
imports = [ ./steam.nix ];
imports = [ ./steam.nix ./steam-deck.nix ];
}

View File

@ -1,29 +1,34 @@
{ config, lib, pkgs, pkgs-unstable, user, jovian-nixos, ... }:
{ config, lib, pkgs, pkgs-unstable, user, jovian-nixos, home-manager, ... }:
let
cfg = config.modules.gaming.steam-deck;
in {
imports = [
(jovian-nixos + "/modules")
home-manager.nixosModule
];
options.modules.gaming.steam-deck.enable = lib.mkEnableOption "steam-deck";
config = lib.mkIf cfg.enable {
imports = [
(jovian-nixos + "/modules")
home-manager.nixosModule
];
jovian = {
steam.enable = true;
steam.autoStart = true;
steam.user = "${user}";
devices.steamdeck = {
enable = true;
enable = false;
};
};
services.xserver.displayManager.gdm.wayland = lib.mkForce true; # lib.mkForce is only required on my setup because I'm using some other NixOS configs that conflict with this value
services.xserver.displayManager.defaultSession = "steam-wayland";
services.xserver.displayManager.autoLogin.enable = true;
services.xserver.displayManager.autoLogin.user = ${user};
services.xserver.displayManager.autoLogin.user = "${user}";
# Enable GNOME
sound.enable = true;
hardware.pulseaudio.enable = lib.mkForce false;
services.xserver.desktopManager.gnome = {
enable = true;
};
@ -89,9 +94,8 @@ in {
steamdeck-firmware
];
# GNOME settings through home-manager
# GNOME settings through home
home-manager.users.${user} = {
home.stateVersion = "22.11";
dconf.settings = {
# Enable on-screen keyboard
"org/gnome/desktop/a11y/applications" = {
@ -123,4 +127,5 @@ in {
};
};
};
};
}