From ac30155eef12efc4dfaa278819f07dde90ccba52 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 17 Nov 2024 16:29:23 -0800 Subject: [PATCH] feat(shells): Add Nix devShell --- flake.nix | 4 ++++ homes/x86_64-linux/marley@nyx/default.nix | 9 --------- shells/nix/default.nix | 9 +++++++++ 3 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 shells/nix/default.nix diff --git a/flake.nix b/flake.nix index 6f02a55..c88b061 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,10 @@ outputs-builder = channels: { formatter = channels.nixpkgs.nixfmt-rfc-style; }; + + alias = { + shells.default = "nix"; + }; }; inputs = { diff --git a/homes/x86_64-linux/marley@nyx/default.nix b/homes/x86_64-linux/marley@nyx/default.nix index 409dbf2..2b98049 100644 --- a/homes/x86_64-linux/marley@nyx/default.nix +++ b/homes/x86_64-linux/marley@nyx/default.nix @@ -1,6 +1,5 @@ { lib, - pkgs, ... }: let @@ -11,14 +10,6 @@ in targets.genericLinux = enabled; - # TODO: Move this to a dev shell - home.packages = with pkgs; [ - nixfmt-rfc-style - nil - statix - manix - ]; - marleyos = { isDesktop = true; diff --git a/shells/nix/default.nix b/shells/nix/default.nix new file mode 100644 index 0000000..2b183bc --- /dev/null +++ b/shells/nix/default.nix @@ -0,0 +1,9 @@ +{ mkShell, pkgs, ... }: +mkShell { + packages = with pkgs; [ + nixfmt-rfc-style + nil + statix + manix + ]; +}