Run nixpkgs-fmt
This commit is contained in:
parent
fbc1f9235f
commit
aed1e3f2bf
7 changed files with 30 additions and 18 deletions
10
flake.nix
10
flake.nix
|
@ -20,7 +20,8 @@
|
|||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
extraSpecialArgs = specialArgs;
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
packages = {
|
||||
# We currently assume that all x86_64-linux devices only
|
||||
# require dotfiles. For now, this is mostly true :)
|
||||
|
@ -51,5 +52,12 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
formatter = {
|
||||
aarch64-darwin = nixpkgs.legacyPackages.x86_64-darwin.nixpkgs-fmt;
|
||||
x86_64-darwin = nixpkgs.legacyPackages.aarch64-darwin.nixpkgs-fmt;
|
||||
aarch64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
|
||||
x86_64-linux = nixpkgs.legacyPackages.aarch64-linux.nixpkgs-fmt;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8,16 +8,19 @@ let
|
|||
|
||||
# Whether to configure various programs to leverage GPG.
|
||||
gpg = specialArgs.gpg or false;
|
||||
in {
|
||||
in
|
||||
{
|
||||
# It's standard convention that Darwin has the username
|
||||
# "spot" - "spotlight" was reserved by the system at some point.
|
||||
# (Sigh... the downsides of sharing a namesake.)
|
||||
home.username = if pkgs.stdenv.isDarwin then
|
||||
home.username =
|
||||
if pkgs.stdenv.isDarwin then
|
||||
"spot"
|
||||
else
|
||||
"spotlight";
|
||||
|
||||
home.homeDirectory = if pkgs.stdenv.isDarwin then
|
||||
home.homeDirectory =
|
||||
if pkgs.stdenv.isDarwin then
|
||||
"/Users/spot"
|
||||
else
|
||||
"/home/spotlight";
|
||||
|
|
|
@ -9,7 +9,8 @@ let
|
|||
rev = "6554045b1184b213fdc9d731a45e8a75858291de";
|
||||
sha256 = "yhgowvJfxVdJE1yVYPWnJYvzhMsPc+HgkmDa++CcTDo=";
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
# Very opinionated :)
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue