MENU

Fun & Interesting

Nix flakes explained

Vimjoyer 99,313 2 years ago
Video Not Working? Fix It Now

Enabling flakes: https://nixos.wiki/wiki/Flakes - commands are here Creating a flake: $ nix flake init Updating a flake: $ nix flake update Flake: ``` { description = "my epic vims collection"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; }; outputs = { self, nixpkgs }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; in { bob = pkgs.mkShell { buildInputs = [ pkgs.neovim pkgs.vim ]; shellHook = '' echo "hello mom" ''; }; }; } ``` (yes, I know I could push it to github, but I'm extra lazy today)

Comment