ref(nix): formatted with nixfmt-rfc-style

This commit is contained in:
Léana 江 2024-03-30 21:08:07 +01:00 committed by Léana 江
parent 36a2265325
commit 23404db605
40 changed files with 574 additions and 474 deletions

View file

@ -1,8 +1,5 @@
{
pkgs,
hostname,
...
}: let
{ pkgs, hostname, ... }:
let
abbrs = {
## Docker
dc = "docker compose";
@ -69,23 +66,14 @@
defaults write com.apple.dock persistent-apps -array-add '{tile-type="small-spacer-tile";}'; killall Dock
'';
};
in {
programs.fish = let
inherit (pkgs.stdenv) isLinux;
in {
shellAbbrs =
abbrs
// (
if isLinux
then abbrsLinux
else abbrsDarwin
);
shellAliases =
aliases
// (
if isLinux
then aliasesLinux
else aliasesDarwin
);
};
in
{
programs.fish =
let
inherit (pkgs.stdenv) isLinux;
in
{
shellAbbrs = abbrs // (if isLinux then abbrsLinux else abbrsDarwin);
shellAliases = aliases // (if isLinux then aliasesLinux else aliasesDarwin);
};
}