Skip to content

Commit

Permalink
✨ Added fastfetch and some games
Browse files Browse the repository at this point in the history
  • Loading branch information
theobori committed Nov 18, 2024
1 parent 80987c1 commit faa027a
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 1 deletion.
5 changes: 4 additions & 1 deletion homes/x86_64-linux/theobori@laptop/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, namespace, ... }:
let
inherit (lib.${namespace}) enabled;
inherit (lib.${namespace}) enabled disabled;
in
{
theobori-nix = {
Expand All @@ -10,6 +10,9 @@ in
gaming = enabled;
};

# xonotic-data is too long to download
games.xonotic = disabled;

user = {
enable = true;
name = "theobori";
Expand Down
23 changes: 23 additions & 0 deletions modules/home/cli/programs/fastfetch/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt;

cfg = config.${namespace}.cli.programs.fastfetch;
in
{
options.${namespace}.cli.programs.fastfetch = {
enable = mkBoolOpt false "Whether or not to enable fastfetch.";
};

config = mkIf cfg.enable {
programs.fastfetch = {
enable = true;
};
};
}
20 changes: 20 additions & 0 deletions modules/home/games/ninvaders/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
pkgs,
config,
lib,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt;

cfg = config.${namespace}.games.ninvaders;
in
{
options.${namespace}.games.ninvaders = {
enable = mkBoolOpt false "Enable ninvaders.";
};

config = mkIf cfg.enable { home.packages = with pkgs; [ ninvaders ]; };
}
20 changes: 20 additions & 0 deletions modules/home/games/space-cadet-pinball/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
pkgs,
config,
lib,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt;

cfg = config.${namespace}.games.space-cadet-pinball;
in
{
options.${namespace}.games.space-cadet-pinball = {
enable = mkBoolOpt false "Enable space-cadet-pinball.";
};

config = mkIf cfg.enable { home.packages = with pkgs; [ space-cadet-pinball ]; };
}
20 changes: 20 additions & 0 deletions modules/home/games/xonotic/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
pkgs,
config,
lib,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt;

cfg = config.${namespace}.games.xonotic;
in
{
options.${namespace}.games.xonotic = {
enable = mkBoolOpt false "Enable xonotic.";
};

config = mkIf cfg.enable { home.packages = with pkgs; [ xonotic ]; };
}
1 change: 1 addition & 0 deletions modules/home/roles/development/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ in
direnv = enabled;
eza = enabled;
fzf = enabled;
fastfetch = enabled;
git = enabled;
gpg = enabled;
htop = enabled;
Expand Down
3 changes: 3 additions & 0 deletions modules/home/roles/gaming/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ in
taterclient-ddnet = enabled;
supermariowar = enabled;
vkquake = enabled;
ninvaders = enabled;
space-cadet-pinball = enabled;
# xonotic = enabled;
};
};
};
Expand Down

0 comments on commit faa027a

Please sign in to comment.