Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
2783c9811d
commit
a1b3975f39
6 changed files with 63 additions and 30 deletions
60
flake.lock
generated
60
flake.lock
generated
|
|
@ -98,6 +98,24 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"devshell_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1741473158,
|
||||||
|
"narHash": "sha256-kWNaq6wQUbUMlPgw8Y+9/9wP0F8SHkjy24/mN3UAppg=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "devshell",
|
||||||
|
"rev": "7c9e793ebe66bcba8292989a68c0419b737a22a0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "devshell",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"disko": {
|
"disko": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -386,6 +404,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1722073938,
|
||||||
|
"narHash": "sha256-OpX0StkL8vpXyWOGUD6G+MA26wAXK6SpT94kLJXo6B4=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "e36e9f57337d0ff0cf77aceb58af4c805472bfae",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixvim": {
|
"nixvim": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": [
|
"flake-parts": [
|
||||||
|
|
@ -477,7 +511,7 @@
|
||||||
"vim-heritage": "vim-heritage",
|
"vim-heritage": "vim-heritage",
|
||||||
"vim-textobj-xmlattr": "vim-textobj-xmlattr",
|
"vim-textobj-xmlattr": "vim-textobj-xmlattr",
|
||||||
"voidrice": "voidrice",
|
"voidrice": "voidrice",
|
||||||
"zet": "zet"
|
"z": "z"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rwxrob-dot": {
|
"rwxrob-dot": {
|
||||||
|
|
@ -605,20 +639,28 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"zet": {
|
"z": {
|
||||||
"flake": false,
|
"inputs": {
|
||||||
|
"devshell": "devshell_2",
|
||||||
|
"flake-parts": [
|
||||||
|
"flake-parts"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759321843,
|
"lastModified": 1761343870,
|
||||||
"narHash": "sha256-rtj3J5UYpjDRmZIirGocbHMk6ol7/ijCkqjO8MO3i3E=",
|
"narHash": "sha256-qp0vpFJiRYZOCkezpYXB+f+Ytf1cLU7Ij28oxHdaeSs=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "665ef94ca97cf54a563e268cfcf5c447bfa6cef8",
|
"rev": "f073b5e0f1c86f8760988be45cc7923d90037ddc",
|
||||||
"revCount": 62,
|
"revCount": 95,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://code.oliverdavies.uk/opdavies/cmd-zet"
|
"url": "https://code.oliverdavies.uk/opdavies/z"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://code.oliverdavies.uk/opdavies/cmd-zet"
|
"url": "https://code.oliverdavies.uk/opdavies/z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -88,9 +88,10 @@
|
||||||
url = "github:lukesmithxyz/voidrice";
|
url = "github:lukesmithxyz/voidrice";
|
||||||
};
|
};
|
||||||
|
|
||||||
zet = {
|
z = {
|
||||||
flake = false;
|
inputs.flake-parts.follows = "flake-parts";
|
||||||
url = "git+https://code.oliverdavies.uk/opdavies/cmd-zet";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
url = "git+https://code.oliverdavies.uk/opdavies/z";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ withSystem, ... }:
|
{ inputs, withSystem, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "start-tmux";
|
name = "start-tmux";
|
||||||
|
|
@ -10,9 +10,9 @@ in
|
||||||
packages.${name} = pkgs.writeShellApplication {
|
packages.${name} = pkgs.writeShellApplication {
|
||||||
inherit name;
|
inherit name;
|
||||||
|
|
||||||
# TODO: Add `z` once its available as a package.
|
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
fzf
|
fzf
|
||||||
|
inputs.z.packages.${pkgs.system}.default
|
||||||
];
|
];
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,13 @@
|
||||||
{ inputs, withSystem, ... }:
|
{ inputs, withSystem, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "zet";
|
name = "z";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
perSystem =
|
perSystem =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
packages.${name} = pkgs.buildGoModule {
|
packages.${name} = inputs.${name}.packages.${pkgs.system}.default;
|
||||||
inherit name;
|
|
||||||
|
|
||||||
runtimeInputs = with pkgs; [
|
|
||||||
git
|
|
||||||
];
|
|
||||||
|
|
||||||
src = inputs.zet;
|
|
||||||
|
|
||||||
vendorHash = "sha256-pprnK2JKmPuR3Q+F8+vMDEdowlb3oX4BOOzW8NGOqgs=";
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
mv $out/bin/cmd-${name} $out/bin/${name}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
flake.modules.homeManager.base =
|
flake.modules.homeManager.base =
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
tag = "tag-release";
|
tag = "tag-release";
|
||||||
vss = "LC_ALL=C sort --unique ${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/nixos-config/modules/home-manager/cli/neovim/config/spell/en.utf-8.adddotfiles/nvim/spell/en.utf-8.add --output ${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/nixos-config/modules/home-manager/cli/neovim/config/spell/en.utf-8.add";
|
vss = "LC_ALL=C sort --unique ${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/nixos-config/modules/home-manager/cli/neovim/config/spell/en.utf-8.adddotfiles/nvim/spell/en.utf-8.add --output ${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/nixos-config/modules/home-manager/cli/neovim/config/spell/en.utf-8.add";
|
||||||
wt = "git worktree";
|
wt = "git worktree";
|
||||||
|
zet = "z zet";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,9 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs.zsh.initContent = ''
|
programs.zsh.initContent = ''
|
||||||
|
# Completions
|
||||||
|
source <(z completion zsh)
|
||||||
|
|
||||||
background() {
|
background() {
|
||||||
for ((i=2;i<=$#;i++)); do
|
for ((i=2;i<=$#;i++)); do
|
||||||
''${@[1]} ''${@[$i]} &> /dev/null &
|
''${@[1]} ''${@[$i]} &> /dev/null &
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue