aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-04 18:26:47 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-04 18:26:47 +0200
commita5e3d93d4968301529873d05801979d6e4f868de (patch)
tree28209533b1f00cce31b6fca7854d67c33129942b
parentfix(treewide): Migrate to taskwarrior version 3 (diff)
downloadnixos-config-a5e3d93d4968301529873d05801979d6e4f868de.zip
style(treewide): Format
-rw-r--r--modules/by-name/fi/firefox/profile.nix5
-rw-r--r--modules/by-name/fi/firefox/search_engines/default.nix28
-rwxr-xr-xmodules/by-name/lf/lf/commands/scripts/trash_restore.sh1
-rw-r--r--modules/by-name/nv/nvim/plgs/telescope/extensions/bibtex/default.nix5
-rw-r--r--pkgs/by-name/be/beetsExtraPlugins/xtractor.nix4
-rw-r--r--pkgs/by-name/ts/tskm/src/cli.rs2
6 files changed, 22 insertions, 23 deletions
diff --git a/modules/by-name/fi/firefox/profile.nix b/modules/by-name/fi/firefox/profile.nix
index 7cdf4d90..195c2075 100644
--- a/modules/by-name/fi/firefox/profile.nix
+++ b/modules/by-name/fi/firefox/profile.nix
@@ -1,4 +1,7 @@
-{config, pkgs}: preConfig: ({
+{
+ config,
+ pkgs,
+}: preConfig: ({
userChrome = ./userChrome.css;
bookmarks = {
diff --git a/modules/by-name/fi/firefox/search_engines/default.nix b/modules/by-name/fi/firefox/search_engines/default.nix
index d05a5af8..51a447e1 100644
--- a/modules/by-name/fi/firefox/search_engines/default.nix
+++ b/modules/by-name/fi/firefox/search_engines/default.nix
@@ -1,6 +1,6 @@
{pkgs, ...}: {
# DEFAULT
- brave-search= {
+ brave-search = {
name = "Brave Search";
urls = [{template = "https://search.brave.com/search?q={searchTerms}";}];
icon = ./logos/brave.svg;
@@ -8,53 +8,53 @@
};
# NIX
- nix-packages= {
+ nix-packages = {
name = "Nix packages";
urls = [{template = "https://search.nixos.org/packages?type=packages&query={searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@np"];
};
- nix-functions= {
+ nix-functions = {
name = "Nix functions";
urls = [{template = "https://noogle.dev/q?term={searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@ng"];
};
- nixos-options= {
+ nixos-options = {
name = "NixOS options";
urls = [{template = "https://search.nixos.org/options?type=options&query={searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@no"];
};
- homemanager-options= {
+ homemanager-options = {
name = "Home-Manager options";
urls = [{template = "https://home-manager-options.extranix.com/?query={searchTerms}&release=master";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@nh"];
};
- nixpkgs-issues= {
+ nixpkgs-issues = {
name = "Nixpkgs issues";
urls = [{template = "https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+{searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@ni"];
};
- nixpkgs-pull-requests= {
+ nixpkgs-pull-requests = {
name = "Nixpkgs pull requests";
urls = [{template = "https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+{searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@nr"];
};
- nixpkgs-pull-requests-tracker= {
+ nixpkgs-pull-requests-tracker = {
name = "Nixpkgs pull requests tracker";
urls = [{template = "https://nixpk.gs/pr-tracker.html?pr={searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@nt"];
};
- nixos-wiki= {
+ nixos-wiki = {
name = "NixOS Wiki";
urls = [{template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
@@ -62,13 +62,13 @@
};
# RUST
- rust-std= {
+ rust-std = {
name = "Rust std";
urls = [{template = "https://doc.rust-lang.org/std/?search={searchTerms}";}];
icon = ./logos/rust_std.svg;
definedAliases = ["@rs"];
};
- rust-tokio= {
+ rust-tokio = {
name = "Rust tokio";
urls = [{template = "https://docs.rs/tokio/latest/tokio/index.html?search={searchTerms}";}];
icon = ./logos/rust_tokio.png;
@@ -76,19 +76,19 @@
};
# OTHER
- google-scholar= {
+ google-scholar = {
name = "Google Scholar";
urls = [{template = "https://scholar.google.com/scholar?hl=en&q={searchTerms}";}];
icon = ./logos/google_scholar.ico;
definedAliases = ["@gs"];
};
- wikipedia= {
+ wikipedia = {
name = "Wikipedia";
urls = [{template = "https://en.wikipedia.org/wiki/{searchTerms}";}];
icon = ./logos/wikipedia.svg;
definedAliases = ["@wp"];
};
- arch-wiki= {
+ arch-wiki = {
name = "Arch Wiki";
urls = [{template = "https://wiki.archlinux.org/index.php?search={searchTerms}";}];
icon = ./logos/arch_linux.svg;
diff --git a/modules/by-name/lf/lf/commands/scripts/trash_restore.sh b/modules/by-name/lf/lf/commands/scripts/trash_restore.sh
index 5a7624db..cc2d4890 100755
--- a/modules/by-name/lf/lf/commands/scripts/trash_restore.sh
+++ b/modules/by-name/lf/lf/commands/scripts/trash_restore.sh
@@ -13,6 +13,5 @@ while IFS="$(printf '\n')" read -r file; do
set -- "$@" "$(pwd)/$file"
done <"$(conceal list | fzf --multi --ansi | awk '{$1="";$2=""; print $0}' | sed 's/^\s*//' | tmp)"
-
[ "$#" -ne 0 ] && trash restore --match=exact "$@"
# vim: ft=sh
diff --git a/modules/by-name/nv/nvim/plgs/telescope/extensions/bibtex/default.nix b/modules/by-name/nv/nvim/plgs/telescope/extensions/bibtex/default.nix
index 4cab0258..8eee9a27 100644
--- a/modules/by-name/nv/nvim/plgs/telescope/extensions/bibtex/default.nix
+++ b/modules/by-name/nv/nvim/plgs/telescope/extensions/bibtex/default.nix
@@ -1,7 +1,4 @@
-{
- config,
- ...
-}: let
+{config, ...}: let
cfg = config.soispha.programs.nvim;
in {
# TODO: Re-enable this, once the plugin is merged into nixpkgs <2025-03-29>
diff --git a/pkgs/by-name/be/beetsExtraPlugins/xtractor.nix b/pkgs/by-name/be/beetsExtraPlugins/xtractor.nix
index ecbc10ce..17981cdb 100644
--- a/pkgs/by-name/be/beetsExtraPlugins/xtractor.nix
+++ b/pkgs/by-name/be/beetsExtraPlugins/xtractor.nix
@@ -3,11 +3,10 @@
fetchFromGitHub,
python3Packages,
beets,
-}:
+}: {}
# # NOTE: This fails to build now. It didn't work anyways. See
# https://git.sr.ht/~johnhamelink/nix/tree/master/item/home/hosts/sun/beets/beets-plugin-xtractor.nix
# for a possibly working version. <2025-03-29>
-
# # FIXME: Find a way to update this derivation <2024-08-11>
# let
# version = "0.4.2";
@@ -56,3 +55,4 @@
# license = lib.licenses.mit;
# };
# }
+
diff --git a/pkgs/by-name/ts/tskm/src/cli.rs b/pkgs/by-name/ts/tskm/src/cli.rs
index bf0af7fb..99c8693e 100644
--- a/pkgs/by-name/ts/tskm/src/cli.rs
+++ b/pkgs/by-name/ts/tskm/src/cli.rs
@@ -94,7 +94,7 @@ pub enum OpenCommand {
/// The project to open.
#[arg(value_parser = task::Project::from_project_string)]
project: Option<task::Project>,
- }
+ },
}
#[derive(Subcommand, Debug)]