Merge branch 'overhaul' of ssh://solis:34916/Koen/nix-config into overhaul
This commit is contained in:
commit
a16080e5fc
9 changed files with 39 additions and 21 deletions
|
|
@ -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 = {
|
||||
zsh.enable = true;
|
||||
terminal = {
|
||||
enable = true;
|
||||
zsh.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
../../modules
|
||||
../../modules/boot/loader/grub.nix
|
||||
];
|
||||
|
||||
config.horseman = {
|
||||
|
|
|
|||
|
|
@ -57,11 +57,11 @@
|
|||
apps = {
|
||||
dev.enable = true;
|
||||
visual.enable = true;
|
||||
terminal.enable = true;
|
||||
};
|
||||
|
||||
terminal = {
|
||||
zsh.enable = true;
|
||||
gaming.enable = true;
|
||||
terminal = {
|
||||
enable = true;
|
||||
zsh.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
timers = {
|
||||
|
|
|
|||
|
|
@ -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
24
modules/apps/gaming.nix
Normal 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
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
@ -3,7 +3,6 @@
|
|||
./apps
|
||||
./hardware
|
||||
./network
|
||||
./terminal
|
||||
./wm
|
||||
./users
|
||||
./boot
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./zsh.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -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";
|
||||
}
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue