Skip to content

Commit

Permalink
Refactor code and reorganize files
Browse files Browse the repository at this point in the history
  • Loading branch information
foofrog committed Jun 18, 2024
1 parent ccd536a commit 88eaa21
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 14 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Prefer `nix <commmand>` command rather than `nix-<something>` commmands if flake
};

niri = {
url = github:YaLTeR/niri;
url = "github:YaLTeR/niri";
inputs.nixpkgs.follows = "nixpkgs";
};
};
Expand Down
17 changes: 5 additions & 12 deletions modules/environment/programs/default.nix
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
21 changes: 21 additions & 0 deletions modules/environment/programs/steam.nix
Original file line number Diff line number Diff line change
@@ -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
];
}
6 changes: 6 additions & 0 deletions modules/environment/services/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{...}: {
_: {
programs = {
nushell = {
enable = true;
Expand Down

0 comments on commit 88eaa21

Please sign in to comment.