nix: set flake formatter to alejandra, do fmt
This commit is contained in:
parent
a907d42366
commit
72d083fdf7
31
flake.nix
31
flake.nix
@ -10,20 +10,25 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }:
|
outputs = {
|
||||||
let
|
nixpkgs,
|
||||||
system = "x86_64-linux";
|
home-manager,
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
...
|
||||||
in {
|
}: let
|
||||||
homeConfigurations.vis = home-manager.lib.homeManagerConfiguration {
|
system = "x86_64-linux";
|
||||||
inherit pkgs;
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in {
|
||||||
|
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra;
|
||||||
|
|
||||||
# Specify your home configuration modules here, for example,
|
homeConfigurations.vis = home-manager.lib.homeManagerConfiguration {
|
||||||
# the path to your home.nix.
|
inherit pkgs;
|
||||||
modules = [ ./home.nix ];
|
|
||||||
|
|
||||||
# Optionally use extraSpecialArgs
|
# Specify your home configuration modules here, for example,
|
||||||
# to pass through arguments to home.nix
|
# the path to your home.nix.
|
||||||
};
|
modules = [./home.nix];
|
||||||
|
|
||||||
|
# Optionally use extraSpecialArgs
|
||||||
|
# to pass through arguments to home.nix
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
10
home.nix
10
home.nix
@ -1,7 +1,7 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
home.username = "vis";
|
home.username = "vis";
|
||||||
home.homeDirectory = "/home/vis";
|
home.homeDirectory = "/home/vis";
|
||||||
home.stateVersion = "22.11";
|
home.stateVersion = "22.11";
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
programs.home-manager.path = "$HOME/utils/dotfiles";
|
programs.home-manager.path = "$HOME/utils/dotfiles";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user