feat(steam): add config
This commit is contained in:
parent
9d097679fd
commit
400cb5f8c2
5 changed files with 43 additions and 20 deletions
|
@ -37,6 +37,7 @@
|
|||
inputs
|
||||
outputs
|
||||
system
|
||||
lib
|
||||
pkgs
|
||||
;
|
||||
};
|
||||
|
|
|
@ -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,20 +152,20 @@ in
|
|||
|
||||
# Configure console keymap
|
||||
console.keyMap = "fr";
|
||||
programs.fish.enable = true;
|
||||
|
||||
users.defaultUserShell = pkgs.fish;
|
||||
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
createHome = true;
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"audio"
|
||||
"libvirtd"
|
||||
];
|
||||
shell = pkgs.fish;
|
||||
users = {
|
||||
defaultUserShell = pkgs.fish;
|
||||
users.${username} = {
|
||||
isNormalUser = true;
|
||||
createHome = true;
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"audio"
|
||||
"libvirtd"
|
||||
];
|
||||
shell = pkgs.fish;
|
||||
};
|
||||
};
|
||||
|
||||
services.greetd = {
|
||||
|
|
|
@ -8,5 +8,6 @@
|
|||
./programs/thunderbird.nix
|
||||
./programs/sway.nix
|
||||
./programs/lazygit.nix
|
||||
./programs/steam.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -3,7 +3,10 @@
|
|||
networking = {
|
||||
wireless.iwd.enable = true;
|
||||
|
||||
networkmanager.wifi.backend = "iwd";
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
wifi.backend = "iwd";
|
||||
};
|
||||
|
||||
firewall =
|
||||
let
|
||||
|
|
14
modules/programs/steam.nix
Normal file
14
modules/programs/steam.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue