-rofi + wofi

This commit is contained in:
m3tam3re 2023-04-16 17:07:24 +02:00
parent b178a9838c
commit 18b18bab5e
7 changed files with 48 additions and 53 deletions

View File

@ -15,8 +15,8 @@
nix-colors.url = "github:misterio77/nix-colors";
};
outputs = { self, nix-colors, nixpkgs, home-manager
, hyprland, agenix, deploy-rs, ... }@inputs:
outputs = { self, nix-colors, nixpkgs, home-manager, hyprland
, agenix, deploy-rs, ... }@inputs:
let
inherit (self) outputs;
lib = nixpkgs.lib;
@ -26,35 +26,22 @@
nixosConfigurations = {
lkk-nix-1 = lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
allowUnfree
./hosts/lkk-nix-1
agenix.nixosModules.default
];
modules =
[ allowUnfree ./hosts/lkk-nix-1 agenix.nixosModules.default ];
};
lkk-prod-1 = lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
allowUnfree
./hosts/lkk-prod-1
agenix.nixosModules.default
];
modules =
[ allowUnfree ./hosts/lkk-prod-1 agenix.nixosModules.default ];
};
lkk-prod-2 = lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
allowUnfree
./hosts/lkk-prod-2
agenix.nixosModules.default
];
modules =
[ allowUnfree ./hosts/lkk-prod-2 agenix.nixosModules.default ];
};
m3-nix = lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [
allowUnfree
./hosts/m3-nix
agenix.nixosModules.default
];
modules = [ allowUnfree ./hosts/m3-nix agenix.nixosModules.default ];
};
};
homeConfigurations = {
@ -62,10 +49,7 @@
"m3tam3re@m3-nix" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs nix-colors; };
modules = [
./home/users/m3tam3re/m3-nix.nix
allowUnfree
];
modules = [ ./home/users/m3tam3re/m3-nix.nix allowUnfree ];
};
"m3tam3re@lkk-nix-1" = home-manager.lib.homeManagerConfiguration {
extraSpecialArgs = { # pass things to t

View File

@ -4,13 +4,13 @@
./crypto.nix
./design.nix
./extrafonts.nix
#./hyprland
./media.nix
./office.nix
./qt.nix
./rofi.nix
./syncthing.nix
./waybar.nix
./wofi.nix
# ./wofi-pass.nix
];
xdg.mimeApps = {
@ -32,7 +32,7 @@
fonts.fontconfig.enable = true;
services.dunst = {
services.mako = {
enable = true;
};

View File

@ -1,22 +0,0 @@
{ pkgs, ... }: {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
plugins = [ pkgs.rofi-calc pkgs.rofi-emoji ];
theme = "themes/dracula";
extraConfig = {
modi = "drun,ssh,filebrowser,keys,window";
kb-primary-paste = "Control+V,Shift+Insert";
kb-secondary-paste = "Control+v,Insert";
};
};
programs.rofi.pass = {
enable = true;
extraConfig = ''
layout_cmd () {
setxkbmap de
}
'';
};
}

View File

@ -0,0 +1,8 @@
{ pkgs, ...}:
{
home.packages = with pkgs; [
wofi
wofi-emoji
];
}

View File

@ -158,8 +158,7 @@
bind= $mainMod, F, fullscreen
bind = $mainMod, E, exec, thunar
bind = $mainMod, V, togglefloating,
bind = $mainMod, D, exec, rofi -modi 'drun,emoji,calc,ssh' -show drun -font 'Fira Code 13' -show-icons
bind = $mainMod, D, exec, rofi -modi 'drun,emoji,calc,ssh' -show drun -font 'Fira Code 13' -show-icons
bind = $mainMod, D, exec, wofi --show drun --allow-images
bind = $mainMod SHIFT, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle

4
pkgs/default.nix Normal file
View File

@ -0,0 +1,4 @@
{ pkgs, ... }: {
imports = [ ./wofi-pass ];
}

View File

@ -0,0 +1,22 @@
{ stdenv, lib, fetchFromGitHub, bash, makeWrapper }:
with lib;
stdenv.mkDerivation {
pname = "wofi-pass";
version = "0.1";
src = fetchFromGitHub {
owner = "TinfoilSubmarine";
repo = "wofi-pass";
rev = "869c545";
sha256 = "gcfW8E/3/dqv0P3S4z9fDv8k4R7czcIKwpo/OHFFWj0=";
};
buildInputs = [ bash ];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
cp wofi-pass $out/bin/wofi-pass
wrapProgram $out/bin/wofi-pass \
--prefix PATH : ${makeBinPath [ bash ]}
'';
}