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

View File

@ -4,13 +4,13 @@
./crypto.nix ./crypto.nix
./design.nix ./design.nix
./extrafonts.nix ./extrafonts.nix
#./hyprland
./media.nix ./media.nix
./office.nix ./office.nix
./qt.nix ./qt.nix
./rofi.nix
./syncthing.nix ./syncthing.nix
./waybar.nix ./waybar.nix
./wofi.nix
# ./wofi-pass.nix
]; ];
xdg.mimeApps = { xdg.mimeApps = {
@ -32,7 +32,7 @@
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
services.dunst = { services.mako = {
enable = true; 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, F, fullscreen
bind = $mainMod, E, exec, thunar bind = $mainMod, E, exec, thunar
bind = $mainMod, V, togglefloating, 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, wofi --show drun --allow-images
bind = $mainMod, D, exec, rofi -modi 'drun,emoji,calc,ssh' -show drun -font 'Fira Code 13' -show-icons
bind = $mainMod SHIFT, P, pseudo, # dwindle bind = $mainMod SHIFT, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # 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 ]}
'';
}