local
This commit is contained in:
parent
8d4db8e8ca
commit
f00a49d4d4
5 changed files with 53 additions and 18 deletions
|
|
@ -25,15 +25,22 @@
|
||||||
|
|
||||||
monitor = [ ",preferred,1" ];
|
monitor = [ ",preferred,1" ];
|
||||||
|
|
||||||
|
ecosystem = {
|
||||||
|
"no_update_news" = true;
|
||||||
|
"no_donation_nag" = true;
|
||||||
|
};
|
||||||
|
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"hyprlock"
|
"hyprlock"
|
||||||
"ags"
|
"ags"
|
||||||
"[workspace special:keepass silent] keepassxc"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
windowrulev2 = [
|
exec = [ "[workspace special:keepass silent] keepassxc" ];
|
||||||
|
|
||||||
|
windowrule = [
|
||||||
"workspace special:keepass,class:org.keepassxc.KeePassXC,title:^(.*)(KeePassXC)(.*)$"
|
"workspace special:keepass,class:org.keepassxc.KeePassXC,title:^(.*)(KeePassXC)(.*)$"
|
||||||
"workspace unset,class:org.keepassxc.KeePassXC,title:Unlock Database - KeePassXC"
|
"workspace unset,class:org.keepassxc.KeePassXC,title:Unlock Database - KeePassXC"
|
||||||
|
"noanim, class:^ueberzugpp_(.*)$"
|
||||||
];
|
];
|
||||||
|
|
||||||
workspace = [
|
workspace = [
|
||||||
|
|
@ -97,6 +104,7 @@
|
||||||
|
|
||||||
dwindle = {
|
dwindle = {
|
||||||
pseudotile = true;
|
pseudotile = true;
|
||||||
|
smart_split = true;
|
||||||
preserve_split = true;
|
preserve_split = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -109,14 +117,14 @@
|
||||||
|
|
||||||
bind = [
|
bind = [
|
||||||
"$mainMod, Q, exec, $terminal"
|
"$mainMod, Q, exec, $terminal"
|
||||||
|
"$mainMod, W, exec, $terminal -e yazi"
|
||||||
"$mainMod, C, killactive,"
|
"$mainMod, C, killactive,"
|
||||||
"$mainMod, backspace, exec, hyprlock"
|
"$mainMod, backspace, exec, hyprlock"
|
||||||
"$mainMod, E, exec, $fileManager"
|
|
||||||
"$mainMod, A, togglefloating,"
|
|
||||||
"$mainMod, R, exec, rofi -show drun"
|
"$mainMod, R, exec, rofi -show drun"
|
||||||
|
|
||||||
"$mainMod, D, pseudo,"
|
"$mainMod, A, togglefloating,"
|
||||||
"$mainMod, S, togglesplit,"
|
"$mainMod, S, togglesplit,"
|
||||||
|
"$mainMod, D, pseudo,"
|
||||||
"$mainMod, F, fullscreen,"
|
"$mainMod, F, fullscreen,"
|
||||||
|
|
||||||
"$mainMod, P, togglespecialworkspace, keepass"
|
"$mainMod, P, togglespecialworkspace, keepass"
|
||||||
|
|
|
||||||
|
|
@ -31,5 +31,9 @@
|
||||||
prismlauncher
|
prismlauncher
|
||||||
lutris
|
lutris
|
||||||
# steamtinkerlaunch
|
# steamtinkerlaunch
|
||||||
|
|
||||||
|
unzip
|
||||||
|
ueberzugpp
|
||||||
|
yazi
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,25 @@
|
||||||
{...}:{
|
{ ... }:
|
||||||
|
{
|
||||||
services.ssh-agent.enable = true;
|
services.ssh-agent.enable = true;
|
||||||
}
|
|
||||||
|
|
||||||
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
matchBlocks = {
|
||||||
|
"hpc" = {
|
||||||
|
user = "benstem";
|
||||||
|
hostname = "login1.hpc.uni-potsdam.de";
|
||||||
|
};
|
||||||
|
|
||||||
|
"lilith-lab" = {
|
||||||
|
user = "lilith";
|
||||||
|
hostname = "nixserver";
|
||||||
|
};
|
||||||
|
|
||||||
|
"lilith-server" = {
|
||||||
|
user = "lilith";
|
||||||
|
hostname = "2a01:4f9:4a:1ecb::2:";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,32 +4,36 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
gaming-host = lib.mkIf (!config.gaming.client-only);
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
options.gaming.enable = lib.mkEnableOption "Enable steam and related software";
|
options.gaming.enable = lib.mkEnableOption "Enable steam and related software";
|
||||||
|
options.gaming.client-only = lib.mkEnableOption "Only enable steam, to stream via SteamLink";
|
||||||
|
|
||||||
config = lib.mkIf config.gaming.enable {
|
config = lib.mkIf config.gaming.enable {
|
||||||
programs = {
|
programs = {
|
||||||
gamescope = {
|
gamescope = gaming-host {
|
||||||
enable = true;
|
enable = true;
|
||||||
capSysNice = true;
|
capSysNice = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
steam = {
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
gamescopeSession.enable = true;
|
gamescopeSession.enable = gaming-host true;
|
||||||
|
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = gaming-host true;
|
||||||
dedicatedServer.openFirewall = true;
|
dedicatedServer.openFirewall = gaming-host true;
|
||||||
localNetworkGameTransfers.openFirewall = true;
|
localNetworkGameTransfers.openFirewall = gaming-host true;
|
||||||
};
|
};
|
||||||
|
|
||||||
gamemode.enable = true;
|
gamemode.enable = gaming-host true;
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.steam-hardware.enable = true;
|
hardware.steam-hardware.enable = gaming-host true;
|
||||||
|
|
||||||
environment = {
|
environment = gaming-host {
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
mangohud
|
mangohud
|
||||||
protonup
|
protonup
|
||||||
|
|
@ -38,7 +42,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# SteamVR kernel patch for AMDGPU
|
# SteamVR kernel patch for AMDGPU
|
||||||
boot.kernelPatches = [
|
boot.kernelPatches = gaming-host [
|
||||||
{
|
{
|
||||||
name = "amdgpu-ignore-ctx-privileges";
|
name = "amdgpu-ignore-ctx-privileges";
|
||||||
patch = pkgs.fetchpatch {
|
patch = pkgs.fetchpatch {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,5 @@
|
||||||
allowed = [
|
allowed = [
|
||||||
"steam"
|
"steam"
|
||||||
"steam-unwrapped"
|
"steam-unwrapped"
|
||||||
|
|
||||||
"android-studio-stable"
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue