nix: set flake formatter to alejandra, do fmt

This commit is contained in:
surtur 2022-08-29 22:13:34 +02:00
parent a907d42366
commit 72d083fdf7
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 23 additions and 18 deletions

@ -10,20 +10,25 @@
};
};
outputs = { nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
homeConfigurations.vis = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
outputs = {
nixpkgs,
home-manager,
...
}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [ ./home.nix ];
homeConfigurations.vis = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
};
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [./home.nix];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
};
};
}

@ -1,7 +1,7 @@
{pkgs, ...}: {
home.username = "vis";
home.homeDirectory = "/home/vis";
home.stateVersion = "22.11";
programs.home-manager.enable = true;
programs.home-manager.path = "$HOME/utils/dotfiles";
home.username = "vis";
home.homeDirectory = "/home/vis";
home.stateVersion = "22.11";
programs.home-manager.enable = true;
programs.home-manager.path = "$HOME/utils/dotfiles";
}