feat(pkgs): Install Alejandra

This commit is contained in:
punkfairie 2024-10-19 09:42:19 -07:00
parent a642c32dc7
commit 228b88da17
2 changed files with 13 additions and 2 deletions

View file

@ -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 ];
};

View file

@ -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.