added nvim

This commit is contained in:
2026-10-24 15:41:04 +01:00
parent 5642978ea0
commit 254b47b835
4 changed files with 108 additions and 3 deletions

91
flake.lock generated
View File

@@ -64,7 +64,55 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-unstable": {
"locked": {
"lastModified": 1792502884,
"narHash": "sha256-IoNisKcGbUjdd45qCqywGMCYmZ5EnkxezvLII0FWwNA=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "02c087f3fe673c9e317f206a627cb6b910336dbe",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": { "nixpkgs_2": {
"locked": {
"lastModified": 1787070829,
"narHash": "sha256-vXNVDVtvfiQuXthP0NHPFdNvvMTkGpx0UP8oddIWbNk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0ae2bc1419c3f345984c2629e72e7a631820fa4d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1786719841,
"narHash": "sha256-QcpQOT0NQEFkI77t+YXPZqDJc35iIodG7zinieOwFUg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8be7bd0c83f12e2e3bbba07c9044d6fed9e66f7f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1791966044, "lastModified": 1791966044,
"narHash": "sha256-t1hT8UW97rFCWCJO7/pClvu0AhLN5V3uir2M0ic4w/Q=", "narHash": "sha256-t1hT8UW97rFCWCJO7/pClvu0AhLN5V3uir2M0ic4w/Q=",
@@ -80,17 +128,56 @@
"type": "github" "type": "github"
} }
}, },
"nvim": {
"inputs": {
"nixpkgs": "nixpkgs_2",
"wrappers": "wrappers"
},
"locked": {
"lastModified": 1787153199,
"narHash": "sha256-FpLklQh5O31LY0GejnphNaGI/GZpuRltF9eZbAKlWkk=",
"ref": "refs/heads/main",
"rev": "759a8455709d9c098a0201fb581801d41b270b29",
"revCount": 105,
"type": "git",
"url": "https://git.voidarc.co.uk/voidarc/nvim"
},
"original": {
"type": "git",
"url": "https://git.voidarc.co.uk/voidarc/nvim"
}
},
"root": { "root": {
"inputs": { "inputs": {
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"import-tree": "import-tree", "import-tree": "import-tree",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"wrappers": "wrappers" "nixpkgs-unstable": "nixpkgs-unstable",
"nvim": "nvim",
"wrappers": "wrappers_2"
} }
}, },
"wrappers": { "wrappers": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1786998037,
"narHash": "sha256-QJ8QmuqmiOiHCT0HidqwlRpejNfCVcizLmLtzRWHWeQ=",
"owner": "BirdeeHub",
"repo": "nix-wrapper-modules",
"rev": "780954265c11444ed0c9e164115360f4f5d24d0b",
"type": "github"
},
"original": {
"owner": "BirdeeHub",
"repo": "nix-wrapper-modules",
"type": "github"
}
},
"wrappers_2": {
"inputs": {
"nixpkgs": "nixpkgs_4"
}, },
"locked": { "locked": {
"lastModified": 1792532408, "lastModified": 1792532408,

View File

@@ -5,10 +5,16 @@
# Latest stable nixpkgs # Latest stable nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
# Unstable nixpkgs
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Flake parts utils # Flake parts utils
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
import-tree.url = "github:vic/import-tree"; import-tree.url = "github:vic/import-tree";
# My Nvim config
nvim.url = "git+https://git.voidarc.co.uk/voidarc/nvim";
# Nix Wrapper Modules # Nix Wrapper Modules
wrappers.url = "github:nix-community/nix-wrapper-modules"; wrappers.url = "github:nix-community/nix-wrapper-modules";
}; };

View File

@@ -20,13 +20,16 @@
}); });
perSystem = { perSystem = {
pkgs, pkgs,
unstablePkgs,
inputs',
lib, lib,
... ...
}: { }: {
packages.zsh = inputs.wrappers.wrappers.zsh.wrap { packages.zsh = inputs.wrappers.wrappers.zsh.wrap {
inherit pkgs; inherit pkgs;
zshAliases = { zshAliases = {
some = lib.getExe pkgs.vim; some = lib.getExe unstablePkgs.vim;
v = lib.getExe inputs'.nvim.packages.default;
ff = lib.getExe pkgs.fastfetch; ff = lib.getExe pkgs.fastfetch;
cat = lib.getExe pkgs.bat; cat = lib.getExe pkgs.bat;
}; };

View File

@@ -0,0 +1,9 @@
{inputs, ...}: {
perSystem = {system, ...}: {
_module.args = {
unstablePkgs = import inputs.nixpkgs-unstable {
inherit system;
};
};
};
}