diff --git a/common/home.nix b/common/home.nix index 0c7af063..fa104753 100644 --- a/common/home.nix +++ b/common/home.nix @@ -5,6 +5,7 @@ ./wezterm.nix ./nvim.nix ./goread.nix + ./ncmpcpp.nix ] ++ lib.optionals device.isLinux [ ../linux ]; home.packages = with pkgs; diff --git a/common/ncmpcpp.nix b/common/ncmpcpp.nix new file mode 100644 index 00000000..71745df7 --- /dev/null +++ b/common/ncmpcpp.nix @@ -0,0 +1,15 @@ +{ pkgs, ... }: { + programs.ncmpcpp = { + enable = true; + bindings = pkgs.lib.attrsets.mapAttrsToList (key: value: { + key = key; + command = value; + }) { + j = "scroll_down"; + k = "scroll_up"; + J = [ "select_item" "scroll_down" ]; + K = [ "select_item" "scroll_up" ]; + }; + package = pkgs.ncmpcpp; + }; +} diff --git a/inputs.nix b/inputs.nix deleted file mode 100644 index cadc5c51..00000000 --- a/inputs.nix +++ /dev/null @@ -1,61 +0,0 @@ -{ - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - home-manager = { - url = "github:nix-community/home-manager"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - nix-darwin = { - url = "github:LnL7/nix-darwin"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - neovim-nightly-overlay = { - url = "github:nix-community/neovim-nightly-overlay"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - anyrun = { - # My fork of anyrun that allows up / down with / - url = "github:uttarayan21/anyrun"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - anyrun-hyprwin = { - url = "github:uttarayan21/anyrun-hyprwin"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - anyrun-nixos-options = { - url = "github:n3oney/anyrun-nixos-options"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - anyrun-rink = { - url = "github:uttarayan21/anyrun-rink"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - ironbar = { - url = "github:JakeStanger/ironbar"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - lanzaboote = { - url = "github:nix-community/lanzaboote"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - nixneovim = { - # url = "github:nixneovim/nixneovim"; - url = "github:uttarayan21/NixNeovim"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - # nixneovimplugins = { - # url = "github:NixNeovim/NixNeovimPlugins"; - # inputs.nixpkgs.follows = "nixpkgs"; - # } - rustaceanvim = { - url = "github:mrcjkb/rustaceanvim"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - nix-index-database.url = "github:Mic92/nix-index-database"; - music-player = { - url = "github:tsirysndr/music-player"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - - nur.url = "github:nix-community/nur"; - -} diff --git a/scripts/rust-src-map-lldb.py b/scripts/rust-src-map-lldb.py index c3e87c1e..5c105e0d 100644 --- a/scripts/rust-src-map-lldb.py +++ b/scripts/rust-src-map-lldb.py @@ -22,6 +22,7 @@ commands = f"{RUSTUP_HOME}/toolchains/{TOOLCHAIN}/lib/rustlib/etc/lldb_commands" # Print or use the 'settings' variable as needed print(settings) +print(commands) # Append settings to commands file -with open(commands, "a") as f: - f.write(settings) +# with open(commands, "a") as f: +# f.write(settings)