diff --git a/flake.nix b/flake.nix index 0afd110..485575c 100644 --- a/flake.nix +++ b/flake.nix @@ -27,7 +27,7 @@ Prefer `nix ` command rather than `nix-` commmands if flake }; niri = { - url = github:YaLTeR/niri; + url = "github:YaLTeR/niri"; inputs.nixpkgs.follows = "nixpkgs"; }; }; diff --git a/modules/environment/programs/default.nix b/modules/environment/programs/default.nix index 031c99f..6080f5b 100644 --- a/modules/environment/programs/default.nix +++ b/modules/environment/programs/default.nix @@ -1,18 +1,11 @@ -{pkgs, ...}: { +{...}: { + imports = [ + ./steam.nix + ]; + programs = { dconf.enable = true; - fish = { - enable = true; - useBabelfish = true; - - vendor = { - config.enable = true; - completions.enable = true; - functions.enable = true; - }; - }; - # INFO: https://nixos.wiki/wiki/Git git = { enable = true; diff --git a/modules/environment/programs/steam.nix b/modules/environment/programs/steam.nix new file mode 100644 index 0000000..ba6ed31 --- /dev/null +++ b/modules/environment/programs/steam.nix @@ -0,0 +1,21 @@ +{pkgs, ...}: { + programs = { + steam = { + enable = true; + # Start a Steam game in an optimized microcompositor that might fix some issues + gamescopeSession.enable = true; + }; + + # INFO: It applies temporary optimizations applies to the OS in-game, improving performance + gamemode.enable = true; + }; + + /* + NOTE: + Prepend `mangohud` in launch options within Steam client's General settings as `mangohud %command%` + to access its capabilities in-game. Same goes for other such programs. + */ + environment.systemPackages = with pkgs; [ + mangohud + ]; +} diff --git a/modules/environment/services/default.nix b/modules/environment/services/default.nix index 325ae1d..e67f413 100644 --- a/modules/environment/services/default.nix +++ b/modules/environment/services/default.nix @@ -5,6 +5,12 @@ _: { udisks2.enable = true; devmon.enable = true; + # Set up Power management for the battery-powered + power-profiles-daemon = { + enable = true; + }; + upower.enable = true; + # INFO: Necessary for GnuPG to work correctly pcscd.enable = true; }; diff --git a/modules/environment/users/foo/home-depot/programs/nushell.nix b/modules/environment/users/foo/home-depot/programs/nushell.nix index 7e98915..9f38ef2 100644 --- a/modules/environment/users/foo/home-depot/programs/nushell.nix +++ b/modules/environment/users/foo/home-depot/programs/nushell.nix @@ -1,4 +1,4 @@ -{...}: { +_: { programs = { nushell = { enable = true;