shell.nix unstable plz

This commit is contained in:
Joseph Hanson 2024-11-07 16:58:46 -06:00
parent b3f68b7c65
commit bdc2adde49
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 6 additions and 3 deletions

View file

@ -6,7 +6,7 @@
"editor.guides.bracketPairsHorizontal": true, "editor.guides.bracketPairsHorizontal": true,
"editor.guides.highlightActiveBracketPair": true, "editor.guides.highlightActiveBracketPair": true,
"files.trimTrailingWhitespace": true, "files.trimTrailingWhitespace": true,
"sops.defaults.ageKeyFile": "age.key", "sops.defaults.ageKeyFile": "/home/jahanson/projects/mochi/age.key",
"nix.enableLanguageServer": true, "nix.enableLanguageServer": true,
"nix.serverPath": "/run/current-system/sw/bin/nil", "nix.serverPath": "/run/current-system/sw/bin/nil",
"nix.formatterPath": "/run/current-system/sw/bin/nixfmt", "nix.formatterPath": "/run/current-system/sw/bin/nixfmt",

View file

@ -1,5 +1,8 @@
# Shell for bootstrapping flake-enabled nix and home-manager # Need the unstable nixpkgs to get latest dev tools
{ pkgs ? import <nixpkgs> {} }: let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
pkgs = import nixpkgs { allowUnfree = true; };
in
pkgs.mkShell { pkgs.mkShell {
# Enable experimental features without having to specify the argument # Enable experimental features without having to specify the argument
NIX_CONFIG = "experimental-features = nix-command flakes"; NIX_CONFIG = "experimental-features = nix-command flakes";