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 = [
../../modules
../../modules/boot/loader/systemd.nix
];
config.horseman = {
@ -48,11 +47,10 @@
apps = {
dev.enable = true;
visual.enable = true;
terminal.enable = true;
};
terminal = {
enable = true;
zsh.enable = true;
};
};
};
}

View file

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

View file

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

View file

@ -3,10 +3,13 @@
./dev.nix
./terminal.nix
./terminal/zsh.nix
./visual.nix
./visual/firefox.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
inherit (lib) mkEnableOption mkIf;
cfg = config.horseman.terminal.zsh;
cfg = config.horseman.apps.terminal.zsh;
in {
options = {
horseman.terminal.zsh = {
horseman.apps.terminal.zsh = {
enable = mkEnableOption "The ZSH shell and plugins for it";
};
};

View file

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

View file

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

View file

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