From 254b47b83513c0cd69e04ec826bce44268e67bde Mon Sep 17 00:00:00 2001 From: voidarc Date: Sat, 24 Oct 2026 15:41:04 +0100 Subject: [PATCH] added nvim --- flake.lock | 91 +++++++++++++++++++++++++++++++- flake.nix | 6 +++ modules/features/zsh/default.nix | 5 +- modules/system/nix-settings.nix | 9 ++++ 4 files changed, 108 insertions(+), 3 deletions(-) create mode 100644 modules/system/nix-settings.nix diff --git a/flake.lock b/flake.lock index 7b2b85e..226361e 100644 --- a/flake.lock +++ b/flake.lock @@ -64,7 +64,55 @@ "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": { + "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": { "lastModified": 1791966044, "narHash": "sha256-t1hT8UW97rFCWCJO7/pClvu0AhLN5V3uir2M0ic4w/Q=", @@ -80,17 +128,56 @@ "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": { "inputs": { "flake-parts": "flake-parts", "import-tree": "import-tree", "nixpkgs": "nixpkgs", - "wrappers": "wrappers" + "nixpkgs-unstable": "nixpkgs-unstable", + "nvim": "nvim", + "wrappers": "wrappers_2" } }, "wrappers": { "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": { "lastModified": 1792532408, diff --git a/flake.nix b/flake.nix index 4cf26b3..d9cffc3 100644 --- a/flake.nix +++ b/flake.nix @@ -5,10 +5,16 @@ # Latest stable nixpkgs nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; + # Unstable nixpkgs + nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; + # Flake parts utils flake-parts.url = "github:hercules-ci/flake-parts"; import-tree.url = "github:vic/import-tree"; + # My Nvim config + nvim.url = "git+https://git.voidarc.co.uk/voidarc/nvim"; + # Nix Wrapper Modules wrappers.url = "github:nix-community/nix-wrapper-modules"; }; diff --git a/modules/features/zsh/default.nix b/modules/features/zsh/default.nix index eb77a5d..78fd357 100644 --- a/modules/features/zsh/default.nix +++ b/modules/features/zsh/default.nix @@ -20,13 +20,16 @@ }); perSystem = { pkgs, + unstablePkgs, + inputs', lib, ... }: { packages.zsh = inputs.wrappers.wrappers.zsh.wrap { inherit pkgs; zshAliases = { - some = lib.getExe pkgs.vim; + some = lib.getExe unstablePkgs.vim; + v = lib.getExe inputs'.nvim.packages.default; ff = lib.getExe pkgs.fastfetch; cat = lib.getExe pkgs.bat; }; diff --git a/modules/system/nix-settings.nix b/modules/system/nix-settings.nix new file mode 100644 index 0000000..a82feab --- /dev/null +++ b/modules/system/nix-settings.nix @@ -0,0 +1,9 @@ +{inputs, ...}: { + perSystem = {system, ...}: { + _module.args = { + unstablePkgs = import inputs.nixpkgs-unstable { + inherit system; + }; + }; + }; +}