From bdc2adde498d44f13d5efca22d73ddf0895540de Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Thu, 7 Nov 2024 16:58:46 -0600 Subject: [PATCH] shell.nix unstable plz --- .vscode/settings.json | 2 +- shell.nix | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 64005e7..1884a69 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,7 +6,7 @@ "editor.guides.bracketPairsHorizontal": true, "editor.guides.highlightActiveBracketPair": true, "files.trimTrailingWhitespace": true, - "sops.defaults.ageKeyFile": "age.key", + "sops.defaults.ageKeyFile": "/home/jahanson/projects/mochi/age.key", "nix.enableLanguageServer": true, "nix.serverPath": "/run/current-system/sw/bin/nil", "nix.formatterPath": "/run/current-system/sw/bin/nixfmt", diff --git a/shell.nix b/shell.nix index 35a8e08..1aa5ae5 100644 --- a/shell.nix +++ b/shell.nix @@ -1,5 +1,8 @@ -# Shell for bootstrapping flake-enabled nix and home-manager -{ pkgs ? import {} }: +# Need the unstable nixpkgs to get latest dev tools +let + nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"; + pkgs = import nixpkgs { allowUnfree = true; }; +in pkgs.mkShell { # Enable experimental features without having to specify the argument NIX_CONFIG = "experimental-features = nix-command flakes";