trying out nix

This commit is contained in:
snarmph 2026-02-18 14:24:46 +01:00
parent 949f4d8565
commit af36376954

19
nvim/flake.nix Normal file
View file

@ -0,0 +1,19 @@
{
description = "Personal neovim configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
packages.${system}.nvimConfig = pkgs.runCommand "nvim-config" {} ''
mkdir -p $out
cp -r ${self}/. $out
''
};
}