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.