Add gamin module in both nixos and home-manager

This commit is contained in:
Yorick Barbanneau 2023-12-26 00:30:05 +01:00
parent 2b7d1ec452
commit f9062e9d15
7 changed files with 71 additions and 11 deletions

View file

@ -3,6 +3,8 @@
imports =
[ # Include the results of the hardware scan.
../hosts/${hostname}/hardware-configuration.nix
../hosts/${hostname}/nixos-config.nix
../modules/nixos
./includes/hardware/bootloader.nix
./includes/system/locales.nix
./includes/system/flakes.nix
@ -20,12 +22,6 @@
./includes/desktop/xdg-portal.nix
]
else []
) ++ (
if hostConfig.gaming then
[
./includes/gaming/steam.nix
]
else []
) ++ (
if hostConfig.laptop then
[
@ -72,7 +68,7 @@
];
imports = [
../hosts/${hostname}/home.nix
../hosts/${hostname}/home-config.nix
../modules/home-manager/default.nix
../home-manager/cli
] ++ (if hostConfig.desktop then
@ -86,10 +82,6 @@
../home-manager/mpv
]
else []
) ++ (
if hostConfig.gaming then
[ ../home-manager/lutris.nix ]
else []
) ++ lib.optional (
builtins.pathExists ../home-manager/hosts/${hostname}.nix
) ../home-manager/hosts/${hostname}.nix;