Move powermenu definitions into rofi expression

This commit is contained in:
Evie Litherland-Smith 2023-05-16 10:06:23 +01:00
parent 61d7f404d8
commit 0c59117518
3 changed files with 6 additions and 4 deletions

View file

@ -1 +0,0 @@
with import <nixpkgs> { }; writeShellScriptBin "power-profiles" builtins.readFile ./scripts/power-profiles

View file

@ -1 +0,0 @@
with import <nixpkgs> { }; writeShellScriptBin "powermenu" builtins.readFile ./scripts/powermenu

View file

@ -1,7 +1,11 @@
{ pkgs, ... }:
let
powermenu = pkgs.writeShellScriptBin "powermenu" (builtins.readFile ./scripts/powermenu);
power-profiles = pkgs.writeShellScriptBin "power-profiles" (builtins.readFile ./scripts/power-profiles);
in
{
imports = [ ./powermenu.nix ./power-profiles.nix ../gui/foot.nix ];
home.packages = with pkgs; [ papirus-icon-theme ];
imports = [ ../gui/foot.nix ];
home.packages = with pkgs; [ papirus-icon-theme powermenu power-profiles ];
programs.rofi = {
enable = true;
location = "center";