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