From 3d2c8c1a08a73eccc20c93ce678034904b47cca6 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 19 Oct 2024 09:42:19 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(pkgs):=20Install=20Alejandra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flake.nix | 9 ++++++++- home/default.nix | 6 +++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 3480564..6f27dc2 100644 --- a/flake.nix +++ b/flake.nix @@ -8,14 +8,21 @@ url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; + + alejandra = { + url = "github:kamadorueda/alejandra/3.0.0"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; - outputs = { nixpkgs, home-manager, ... }: { + outputs = { nixpkgs, home-manager, ... }@inputs: { homeConfigurations."marley" = let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; in home-manager.lib.homeManagerConfiguration { + inherit system; inherit pkgs; + inherit inputs; modules = [ ./home ]; }; diff --git a/home/default.nix b/home/default.nix index 58d850b..6a18ab1 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ system, pkgs, inputs, ... }: { home.username = "marley"; home.homeDirectory = "/home/marley"; @@ -9,6 +9,10 @@ # Enable flakes. nix.settings.experimental-features = [ "nix-command" "flakes" ]; + home.packages = [ + inputs.alejandra.defaultPackage.${system} + ]; + # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release # introduces backwards incompatible changes.