add bitwarden-rofi

This commit is contained in:
ahuston-0 2024-08-22 10:08:28 -04:00
parent 384964759c
commit 6402e70d23
No known key found for this signature in database
GPG Key ID: 1316487BA407ECAF
5 changed files with 72 additions and 56 deletions

View File

@ -153,7 +153,7 @@
hydraJobs = import ./hydra/jobs.nix { inherit inputs outputs systems; }; hydraJobs = import ./hydra/jobs.nix { inherit inputs outputs systems; };
formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style); formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style);
nixosConfigurations = genSystems inputs src (src + "/systems"); nixosConfigurations = genSystems inputs outputs src (src + "/systems");
images = { images = {
install-iso = getImages nixosConfigurations "install-iso"; install-iso = getImages nixosConfigurations "install-iso";
iso = getImages nixosConfigurations "iso"; iso = getImages nixosConfigurations "iso";
@ -164,7 +164,7 @@
devShells = import ./shell.nix { inherit inputs forEachSystem checks; }; devShells = import ./shell.nix { inherit inputs forEachSystem checks; };
packages.bitwarden-rofi = packages.bitwarden-rofi =
inputs.nixpkgs.legacyPackages.x86-64_linux.callPackage ./pkgs/bitwarden-rofi inputs.nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/bitwarden-rofi
{ }; { };
}; };
} }

View File

@ -149,6 +149,7 @@ rec {
configPath, configPath,
hostname, hostname,
inputs, inputs,
outputs,
src, src,
users, users,
home ? true, home ? true,
@ -160,7 +161,12 @@ rec {
lib.nixosSystem { lib.nixosSystem {
inherit system; inherit system;
specialArgs = { specialArgs = {
inherit inputs server system; inherit
inputs
outputs
server
system
;
}; };
modules = modules =
[ [
@ -194,7 +200,7 @@ rec {
# type: # type:
# genSystems :: AttrSet -> Path -> Path -> AttrSet # genSystems :: AttrSet -> Path -> Path -> AttrSet
genSystems = genSystems =
inputs: src: path: inputs: outputs: src: path:
builtins.listToAttrs ( builtins.listToAttrs (
map ( map (
name: name:
@ -205,7 +211,12 @@ rec {
inherit name; inherit name;
value = constructSystem ( value = constructSystem (
{ {
inherit inputs src configPath; inherit
inputs
outputs
src
configPath
;
hostname = name; hostname = name;
} }
// import configPath { inherit inputs; } // import configPath { inherit inputs; }

View File

@ -1,6 +1,7 @@
{ {
lib, lib,
inputs, inputs,
outputs,
server, server,
system, system,
... ...
@ -26,7 +27,7 @@
useUserPackages = true; useUserPackages = true;
sharedModules = [ inputs.sops-nix.homeManagerModules.sops ]; sharedModules = [ inputs.sops-nix.homeManagerModules.sops ];
extraSpecialArgs = { extraSpecialArgs = {
inherit inputs; inherit inputs outputs;
machineConfig = { machineConfig = {
inherit server system; inherit server system;
}; };

View File

@ -41,7 +41,7 @@ stdenv.mkDerivation {
owner = "mattydebie"; owner = "mattydebie";
repo = "bitwarden-rofi"; repo = "bitwarden-rofi";
rev = "8be76fdd647c2bdee064e52603331d8e6ed5e8e2"; rev = "8be76fdd647c2bdee064e52603331d8e6ed5e8e2";
sha256 = ""; sha256 = "1h5d21kv8g5g725chn3n0i1frvmsrk3pm67lfxqcg50kympg0wwd";
}; };
buildInputs = [ makeWrapper ]; buildInputs = [ makeWrapper ];

View File

@ -1,62 +1,66 @@
{ pkgs, ... }: { pkgs, outputs, ... }:
{ {
programs.emacs = { programs.emacs = {
enable = true; enable = true;
package = pkgs.emacs29-pgtk; package = pkgs.emacs29-pgtk;
}; };
home.packages = with pkgs; [ home.packages =
cmake with pkgs;
shellcheck [
glslang cmake
pipenv shellcheck
python312Packages.isort glslang
python312Packages.pytest pipenv
python312Packages.isort
python312Packages.pytest
# rust tools # rust tools
trunk trunk
wasm-pack wasm-pack
cargo-tarpaulin cargo-tarpaulin
cargo-watch cargo-watch
cargo-generate cargo-generate
diesel-cli diesel-cli
cargo-audit cargo-audit
gitoxide gitoxide
# nix tools # nix tools
nil nil
nixfmt-rfc-style nixfmt-rfc-style
nix-init nix-init
# markdown # markdown
nodePackages.markdownlint-cli nodePackages.markdownlint-cli
# doom emacs dependencies # doom emacs dependencies
yaml-language-server yaml-language-server
nodePackages.typescript-language-server nodePackages.typescript-language-server
nodePackages.bash-language-server nodePackages.bash-language-server
pyright pyright
cmake-language-server cmake-language-server
multimarkdown multimarkdown
rustc rustc
cargo cargo
rust-analyzer rust-analyzer
clang clang
clang-tools clang-tools
wakatime wakatime
enchant enchant
nuspell nuspell
hunspellDicts.en-us hunspellDicts.en-us
languagetool languagetool
# dependencies for nix-dotfiles/hydra-check-action # dependencies for nix-dotfiles/hydra-check-action
nodejs_20 nodejs_20
nodePackages.prettier nodePackages.prettier
treefmt treefmt
nextcloud-client nextcloud-client
bitwarden-cli bitwarden-cli
bitwarden-menu bitwarden-menu
wtype wtype
];
]
++ [ outputs.packages.bitwarden-rofi ];
} }