Merge branch 'overhaul' of ssh://solis:34916/Koen/nix-config into overhaul

This commit is contained in:
KoenDR06 2025-09-03 16:45:45 +02:00
commit a16080e5fc
9 changed files with 39 additions and 21 deletions

View file

@ -1,7 +1,6 @@
{...}: { {...}: {
imports = [ imports = [
../../modules ../../modules
../../modules/boot/loader/systemd.nix
]; ];
config.horseman = { config.horseman = {
@ -48,11 +47,10 @@
apps = { apps = {
dev.enable = true; dev.enable = true;
visual.enable = true; visual.enable = true;
terminal.enable = true; terminal = {
}; enable = true;
zsh.enable = true;
terminal = { };
zsh.enable = true;
}; };
}; };
} }

View file

@ -1,7 +1,6 @@
{...}: { {...}: {
imports = [ imports = [
../../modules ../../modules
../../modules/boot/loader/grub.nix
]; ];
config.horseman = { config.horseman = {

View file

@ -57,11 +57,11 @@
apps = { apps = {
dev.enable = true; dev.enable = true;
visual.enable = true; visual.enable = true;
terminal.enable = true; gaming.enable = true;
}; terminal = {
enable = true;
terminal = { zsh.enable = true;
zsh.enable = true; };
}; };
timers = { timers = {

View file

@ -3,10 +3,13 @@
./dev.nix ./dev.nix
./terminal.nix ./terminal.nix
./terminal/zsh.nix
./visual.nix ./visual.nix
./visual/firefox.nix ./visual/firefox.nix
./server.nix ./server.nix
./gaming.nix
]; ];
} }

24
modules/apps/gaming.nix Normal file
View file

@ -0,0 +1,24 @@
{
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.horseman.apps.gaming;
in {
options = {
horseman.apps.gaming = {
enable = mkEnableOption "Games and things for games";
};
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = false; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
};
};
}

View file

@ -5,10 +5,10 @@
... ...
}: let }: let
inherit (lib) mkEnableOption mkIf; inherit (lib) mkEnableOption mkIf;
cfg = config.horseman.terminal.zsh; cfg = config.horseman.apps.terminal.zsh;
in { in {
options = { options = {
horseman.terminal.zsh = { horseman.apps.terminal.zsh = {
enable = mkEnableOption "The ZSH shell and plugins for it"; enable = mkEnableOption "The ZSH shell and plugins for it";
}; };
}; };

View file

@ -3,7 +3,6 @@
./apps ./apps
./hardware ./hardware
./network ./network
./terminal
./wm ./wm
./users ./users
./boot ./boot

View file

@ -1,5 +0,0 @@
{...}: {
imports = [
./zsh.nix
];
}

View file

@ -32,7 +32,7 @@ in {
mods = ["SUPER"]; mods = ["SUPER"];
key = "SPACE"; key = "SPACE";
dispatcher = "exec"; dispatcher = "exec";
params = "pkill wofi || wofi --show drun"; params = "pkill wofi || wofi -i -S drun -M multi-contains";
} }
{ {