Refactored file structure to make more sense, made default.nixes less verbose
This commit is contained in:
31
modules/home/programs/default.nix
Normal file
31
modules/home/programs/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
host,
|
||||
nur,
|
||||
nixvim,
|
||||
self,
|
||||
inputs,
|
||||
username,
|
||||
config,
|
||||
home-manager,
|
||||
...
|
||||
}: let
|
||||
desktop_modules =
|
||||
if (host == "onagesson")
|
||||
then [(import ./gaming)]
|
||||
else [];
|
||||
in {
|
||||
imports =
|
||||
[(import ./btop.nix)]
|
||||
++ [(import ./yazi.nix)]
|
||||
++ [(import ./kitty.nix)]
|
||||
++ [(import ./fuzzel.nix)]
|
||||
++ [(import ./eza.nix)]
|
||||
++ [(import ./cava.nix)]
|
||||
++ [(import ./bat.nix)]
|
||||
++ [(import ./fzf.nix)]
|
||||
++ [(import ./git.nix)]
|
||||
++ [(import ./password-store.nix)]
|
||||
++ [(import ./autojump.nix)]
|
||||
++ [(import ./firefox.nix)]
|
||||
++ desktop_modules;
|
||||
}
|
||||
7
modules/home/programs/gaming/default.nix
Normal file
7
modules/home/programs/gaming/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[(import ./steam.nix)]
|
||||
++ [(import ./gaming_pkgs.nix)];
|
||||
}
|
||||
7
modules/home/programs/gaming/gaming_pkgs.nix
Normal file
7
modules/home/programs/gaming/gaming_pkgs.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
snes9x-gtk
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user