Added hack to fetch local flake

This commit is contained in:
Aleksandr Lebedev 2025-01-06 23:53:32 +01:00
parent b66cb9f49d
commit cbbe4aea64
4 changed files with 43 additions and 29 deletions

17
flake.lock generated
View file

@ -638,14 +638,19 @@
"nvf": "nvf"
},
"locked": {
"lastModified": 1,
"narHash": "sha256-m1itEjykrVXFp6BlxlVKtLRMIBHISlNhdRjyFC8P22g=",
"path": "nixos/modules/neovim",
"type": "path"
"dir": "nixos/modules/neovim",
"lastModified": 1736202585,
"narHash": "sha256-1GCCwcb7Zf/dUCRBw8OLKGcvN5qypAHqkJdcBf5ANpA=",
"owner": "kylekrein",
"repo": "nixos-config",
"rev": "b66cb9f49d20914e0ca1aea0e0ee109790c47e17",
"type": "github"
},
"original": {
"path": "nixos/modules/neovim",
"type": "path"
"dir": "nixos/modules/neovim",
"owner": "kylekrein",
"repo": "nixos-config",
"type": "github"
}
},
"nil": {

View file

@ -6,7 +6,7 @@
url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
neovim = {
url = "path:nixos/modules/neovim";
url = "github:kylekrein/nixos-config?dir=nixos/modules/neovim";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
@ -75,7 +75,10 @@
};
darwinConfigurations = {
"kylekrein-air" = inputs.nix-darwin.lib.darwinSystem {
specialArgs = {inherit self;};
specialArgs = {
inherit self;
inherit inputs;
};
modules = [./nixos/hosts/kylekrein-air];
};
};

View file

@ -1,10 +1,16 @@
{ self, pkgs, ... }: {
{
self,
pkgs,
inputs,
...
}: {
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs;[
environment.systemPackages = with pkgs; [
neovim
kitty
yazi
inputs.neovim.packages.${pkgs.system}.default
];
# Necessary for using flakes on this system.

View file

@ -7,8 +7,8 @@
spellcheck.enable = true;
viAlias = true;
vimAlias = true;
shiftwidth = 4;
tabstop = 4;
shiftwidth = 16;
tabstop = 16;
useSystemClipboard = true;
lineNumberMode = "number";