feat(steam): add config

This commit is contained in:
Nydragon 2024-06-14 00:15:27 +09:00
parent 9d097679fd
commit 400cb5f8c2
No known key found for this signature in database
GPG key ID: 14AA30A865EA1209
5 changed files with 43 additions and 20 deletions

View file

@ -37,6 +37,7 @@
inputs
outputs
system
lib
pkgs
;
};

View file

@ -2,6 +2,7 @@
{
config,
pkgs,
lib,
inputs,
system,
...
@ -27,9 +28,6 @@ in
boot.initrd.luks.devices."luks-7adaa102-d438-4e9e-9972-4a3c91b887b3".device = "/dev/disk/by-uuid/7adaa102-d438-4e9e-9972-4a3c91b887b3";
networking.hostName = hostname;
# Enable networking
networking.networkmanager.enable = true;
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
hardware.opengl.enable = true;
@ -74,6 +72,10 @@ in
};
};
programs.dconf.enable = true;
programs.steam.enable = true;
programs.fish.enable = true;
home-manager.users.${username} = import ../../home {
inherit
config
@ -86,9 +88,7 @@ in
;
};
programs.dconf.enable = true;
#security.polkit.enable = true;
#: Virtualisation {{{
virtualisation.docker.enable = true;
virtualisation.docker.enableOnBoot = false;
virtualisation.docker.rootless = {
@ -97,7 +97,9 @@ in
};
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
#: }}}
#: Power Consumption {{{
services.thermald.enable = true;
services.tlp = {
@ -124,10 +126,12 @@ in
enable = true;
criticalPowerAction = "Hibernate";
};
#:}}}
services.fwupd.enable = true;
services.dbus.enable = true;
xdg.portal = {
enable = true;
wlr = {
@ -148,11 +152,10 @@ in
# Configure console keymap
console.keyMap = "fr";
programs.fish.enable = true;
users.defaultUserShell = pkgs.fish;
users.users.${username} = {
users = {
defaultUserShell = pkgs.fish;
users.${username} = {
isNormalUser = true;
createHome = true;
extraGroups = [
@ -163,6 +166,7 @@ in
];
shell = pkgs.fish;
};
};
services.greetd = {
enable = true;

View file

@ -8,5 +8,6 @@
./programs/thunderbird.nix
./programs/sway.nix
./programs/lazygit.nix
./programs/steam.nix
];
}

View file

@ -3,7 +3,10 @@
networking = {
wireless.iwd.enable = true;
networkmanager.wifi.backend = "iwd";
networkmanager = {
enable = true;
wifi.backend = "iwd";
};
firewall =
let

View file

@ -0,0 +1,14 @@
{
pkgs,
lib,
config,
...
}:
{
programs.steam = lib.mkIf config.programs.steam.enable {
gamescopeSession.enable = true;
extest.enable = true;
localNetworkGameTransfers.openFirewall = true;
extraCompatPackages = with pkgs; [ proton-ge-bin ];
};
}