From 14d982a508f7533d27d204fea0ecf38473f23e31 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:09:04 +0100 Subject: [PATCH] add screenshot tool --- modules/graphical/shared.nix | 4 ++++ systems/pc/configuration.nix | 2 ++ 2 files changed, 6 insertions(+) diff --git a/modules/graphical/shared.nix b/modules/graphical/shared.nix index 69473b8..f926d6e 100644 --- a/modules/graphical/shared.nix +++ b/modules/graphical/shared.nix @@ -6,6 +6,9 @@ let pkgs.keepass-keepassrpc ]; }; + screenshot = pkgs.writeShellScriptBin "screenshot.sh" '' + ${pkgs.scrot}/bin/scrot -fs - | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png -i + ''; in { programs.steam = { @@ -75,6 +78,7 @@ in krita unstable.libreoffice-fresh mangohud + screenshot ]; environment.sessionVariables = { diff --git a/systems/pc/configuration.nix b/systems/pc/configuration.nix index 3b7d477..4c49eea 100644 --- a/systems/pc/configuration.nix +++ b/systems/pc/configuration.nix @@ -48,6 +48,8 @@ # Enable networking networking.networkmanager.enable = true; + boot.initrd.systemd.network.wait-online.enable = false; + systemd.network.wait-online.enable = false; # Set your time zone. time.timeZone = "Europe/Vienna";