chore: cleanup modules

system-specific modules such as darwin/games will now automatically
import games.nix

removes alot of duplication
This commit is contained in:
Nico 2025-05-03 16:16:02 +10:00
parent 3eb4da8bfb
commit 5e8fdf436d
5 changed files with 16 additions and 9 deletions

View file

@ -1,6 +1,8 @@
{ config, lib, pkgs, ... }:
{
imports = [ ../applications.nix ];
# dock
system.defaults.dock.persistent-apps = [
"/Applications/Firefox.app"

View file

@ -1,10 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
osu-lazer-bin
prismlauncher
];
imports = [ ../games.nix ];
homebrew.casks = [
"whisky"
@ -12,7 +9,6 @@
"gog-galaxy"
];
system.defaults.dock.persistent-apps = [
"/Applications/Steam.app"
"/Applications/GOG Galaxy.app"

8
modules/games.nix Normal file
View file

@ -0,0 +1,8 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
osu-lazer-bin
prismlauncher
];
}

View file

@ -1,6 +1,8 @@
{ config, lib, pkgs, ... }:
{
imports = [ ../applications.nix ];
# nix pkgs
environment.systemPackages = with pkgs; [
mpv

View file

@ -1,11 +1,10 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
osu-lazer-bin
prismlauncher
heroic
imports = [ ../games.nix ];
environment.systemPackages = with pkgs; [
heroic
mangohud
];