From 0ca3787a1e71b537059f73de6445fdf4b45970f8 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Thu, 14 Mar 2024 17:03:05 +0100 Subject: [PATCH] Restart script for plasma added --- nixos/desktop/default.nix | 1 + pkgs/default.nix | 1 + pkgs/restart/default.nix | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 pkgs/restart/default.nix diff --git a/nixos/desktop/default.nix b/nixos/desktop/default.nix index 18d5434..909a171 100644 --- a/nixos/desktop/default.nix +++ b/nixos/desktop/default.nix @@ -30,6 +30,7 @@ dvd dvt servo + restart # System tools aha diff --git a/pkgs/default.nix b/pkgs/default.nix index 6de28e2..17b7a02 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -10,4 +10,5 @@ pkgs: { install-nix = pkgs.callPackage ./install-nix {}; update = pkgs.callPackage ./update {}; upgrade = pkgs.callPackage ./upgrade {}; + restart = pkgs.callPackage ./restart {}; } diff --git a/pkgs/restart/default.nix b/pkgs/restart/default.nix new file mode 100644 index 0000000..efb9376 --- /dev/null +++ b/pkgs/restart/default.nix @@ -0,0 +1,18 @@ +{ + lib, + stdenv, + writeShellApplication, +}: +writeShellApplication +{ + name = "restart"; + + runtimeInputs = [killall]; + + text = '' + # Restart script for kde + + killall plasmashell + kstart plasmashell + ''; +}