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 f3836f8
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 14 deletions.
18 changes: 6 additions & 12 deletions modules/environment/programs/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +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 = {
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
4 changes: 2 additions & 2 deletions modules/environment/users/foo/home-depot/programs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
programs = {
git = {
enable = true;

userName = "Foo the Frog";
userEmail = "mountfooji@proton.me";

signing = {
signByDefault = true;

key = "200257448AF7CE21";
};
};
Expand Down

0 comments on commit f3836f8

Please sign in to comment.