✨ feat(pkgs): Install Alejandra
This commit is contained in:
parent
a642c32dc7
commit
228b88da17
2 changed files with 13 additions and 2 deletions
|
@ -8,14 +8,21 @@
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
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
|
homeConfigurations."marley" = let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in home-manager.lib.homeManagerConfiguration {
|
in home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit system;
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
inherit inputs;
|
||||||
|
|
||||||
modules = [ ./home ];
|
modules = [ ./home ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ... }:
|
{ system, pkgs, inputs, ... }:
|
||||||
{
|
{
|
||||||
home.username = "marley";
|
home.username = "marley";
|
||||||
home.homeDirectory = "/home/marley";
|
home.homeDirectory = "/home/marley";
|
||||||
|
@ -9,6 +9,10 @@
|
||||||
# Enable flakes.
|
# Enable flakes.
|
||||||
nix.settings.experimental-features = [ "nix-command" "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
|
# This value determines the Home Manager release that your configuration is
|
||||||
# compatible with. This helps avoid breakage when a new Home Manager release
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||||
# introduces backwards incompatible changes.
|
# introduces backwards incompatible changes.
|
||||||
|
|
Loading…
Reference in a new issue