Steam deck updates

This commit is contained in:
albert 2024-04-26 22:00:24 +09:00
parent 2fe122ea54
commit 7a3d322243
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
4 changed files with 9 additions and 6 deletions

View file

@ -68,7 +68,7 @@
piaware-rpi4 = libx.mkHost { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; }; piaware-rpi4 = libx.mkHost { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; };
quitman-rpi4 = libx.mkHost { hostname = "quitman-rpi4"; system = "aarch64-linux"; type = "small"; }; quitman-rpi4 = libx.mkHost { hostname = "quitman-rpi4"; system = "aarch64-linux"; type = "small"; };
bakersfield-rpi4 = libx.mkHost { hostname = "bakersfield-rpi4"; system = "aarch64-linux"; type = "small"; }; bakersfield-rpi4 = libx.mkHost { hostname = "bakersfield-rpi4"; system = "aarch64-linux"; type = "small"; };
steamdeck = libx.mkDeck { hostname = "steamdeck"; type = "small"; }; steamdeck = libx.mkDeck { hostname = "steamdeck"; desktop = "plasma6"; type = "small"; };
}; };
homeConfigurations = { homeConfigurations = {
"albert@osaka-linode-01" = libx.mkHome { hostname = "osaka-linode-01"; type = "small"; }; "albert@osaka-linode-01" = libx.mkHome { hostname = "osaka-linode-01"; type = "small"; };
@ -81,7 +81,7 @@
"albert@piaware-rpi4" = libx.mkHome { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; }; "albert@piaware-rpi4" = libx.mkHome { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; };
"albert@quitman-rpi4" = libx.mkHome { hostname = "quitman-rpi4"; system = "aarch64-linux"; type = "small"; }; "albert@quitman-rpi4" = libx.mkHome { hostname = "quitman-rpi4"; system = "aarch64-linux"; type = "small"; };
"albert@bakersfield-rpi4" = libx.mkHome { hostname = "bakersfield-rpi4"; system = "aarch64-linux"; type = "small"; }; "albert@bakersfield-rpi4" = libx.mkHome { hostname = "bakersfield-rpi4"; system = "aarch64-linux"; type = "small"; };
"albert@steamdeck" = libx.mkHome { hostname = "steamdeck"; type = "small"; }; "albert@steamdeck" = libx.mkHome { hostname = "steamdeck"; desktop = "plasma6"; type = "small"; };
# Containers # Containers
"albert@rdesktop" = libx.mkHome { hostname = "rdesktop"; desktop = "xfce"; }; "albert@rdesktop" = libx.mkHome { hostname = "rdesktop"; desktop = "xfce"; };
}; };

View file

@ -85,15 +85,14 @@
system ? "x86_64-linux", system ? "x86_64-linux",
theme ? "stylix", theme ? "stylix",
type ? "default", type ? "default",
repo ? "nixpkgs-unstable", repo ? "nixpkgs-unstable"
unfree ? false
}: inputs.${repo}.lib.nixosSystem { }: inputs.${repo}.lib.nixosSystem {
specialArgs = { specialArgs = {
inherit inputs outputs desktop hostname username hmStateVersion stateVersion gpu system theme self; inherit inputs outputs desktop hostname username hmStateVersion stateVersion gpu system theme self;
# Some packages (ie, Vintage Story) I want to keep on unstable no matter what default repo I use # Some packages (ie, Vintage Story) I want to keep on unstable no matter what default repo I use
pkgs-unstable = import inputs.nixpkgs-unstable { pkgs-unstable = import inputs.nixpkgs-unstable {
inherit system; inherit system;
config.allowUnfree = unfree; config.allowUnfree = true;
hostPlatform = system; hostPlatform = system;
}; };
}; };

View file

@ -26,6 +26,7 @@
steam.enable = true; steam.enable = true;
steam.autoStart = true; steam.autoStart = true;
steam.user = username; steam.user = username;
steam.desktopSession = "plasma";
steamos.useSteamOSConfig = true; steamos.useSteamOSConfig = true;
devices.steamdeck.enable = true; devices.steamdeck.enable = true;
hardware.has.amd.gpu = true; hardware.has.amd.gpu = true;

View file

@ -1,5 +1,8 @@
{ lib, pkgs, hostname, stateVersion, username, desktop, system, ... }: { { lib, inputs, pkgs, hostname, stateVersion, username, desktop, system, ... }: {
imports = [ imports = [
# Modules
inputs.disko.nixosModules.disko
# Services # Services
./common/services/openssh.nix ./common/services/openssh.nix
./common/services/fail2ban.nix ./common/services/fail2ban.nix