From c14702c9eecdcb772f4977ee05b95817a326ce1e Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 22 Jan 2022 17:38:36 -0500 Subject: [PATCH] fix broken system w default.nix --- .envrc | 1 + nixos/default.nix | 6 +++++- shell.nix | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .envrc create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/nixos/default.nix b/nixos/default.nix index ffcd441..ac091f3 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -1 +1,5 @@ -{ } +# This file does nothing but call configuration.nix +# It is required when in a shell.nix environment +{ ... }: { + imports = [ ./configuration.nix ]; +} diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..4b583c4 --- /dev/null +++ b/shell.nix @@ -0,0 +1,5 @@ +# Environment with formatting tools for editing these files +{ pkgs ? import { } }: +pkgs.mkShell { + nativeBuildInputs = [ pkgs.buildPackages.stylua pkgs.buildPackages.nixfmt ]; +}