mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
style: switch to nixfmt-rfc-style
This commit is contained in:
parent
3404601a4a
commit
02e3e3a7ac
17 changed files with 117 additions and 112 deletions
|
|
@ -2,6 +2,6 @@ _: {
|
|||
programs.eza = {
|
||||
enable = true;
|
||||
icons = true;
|
||||
extraOptions = ["--all"];
|
||||
extraOptions = [ "--all" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,14 @@
|
|||
{lib, ...}: let
|
||||
{ lib, ... }:
|
||||
let
|
||||
aliases = import ./aliases.nix;
|
||||
shellAbbrs = builtins.mapAttrs (_: a: a.command) (lib.filterAttrs (_: b: !(b.fishAlias or false)) aliases);
|
||||
shellAliases = builtins.mapAttrs (_: a: a.command) (lib.filterAttrs (_: b: builtins.hasAttr "fishAlias" b && b.fishAlias) aliases);
|
||||
in {
|
||||
shellAbbrs = builtins.mapAttrs (_: a: a.command) (
|
||||
lib.filterAttrs (_: b: !(b.fishAlias or false)) aliases
|
||||
);
|
||||
shellAliases = builtins.mapAttrs (_: a: a.command) (
|
||||
lib.filterAttrs (_: b: builtins.hasAttr "fishAlias" b && b.fishAlias) aliases
|
||||
);
|
||||
in
|
||||
{
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
catppuccin.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,3 +1 @@
|
|||
_: {
|
||||
programs.glamour.catppuccin.enable = true;
|
||||
}
|
||||
_: { programs.glamour.catppuccin.enable = true; }
|
||||
|
|
|
|||
|
|
@ -3,18 +3,21 @@
|
|||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
toml = pkgs.formats.toml {};
|
||||
in {
|
||||
}:
|
||||
let
|
||||
toml = pkgs.formats.toml { };
|
||||
in
|
||||
{
|
||||
home.file."${config.xdg.dataHome}/cargo/config.toml".source = toml.generate "config.toml" {
|
||||
linker = "${lib.getExe pkgs.clang}";
|
||||
rustflags = ["-C" "link-arg=-fuse-ld=${lib.getExe pkgs.mold}"];
|
||||
rustflags = [
|
||||
"-C"
|
||||
"link-arg=-fuse-ld=${lib.getExe pkgs.mold}"
|
||||
];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
(rust-bin.stable.latest.default.override {
|
||||
extensions = ["llvm-tools-preview"];
|
||||
})
|
||||
(rust-bin.stable.latest.default.override { extensions = [ "llvm-tools-preview" ]; })
|
||||
|
||||
cargo-bloat
|
||||
cargo-cache
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
{ config, inputs, ... }:
|
||||
let
|
||||
shellAliases = builtins.mapAttrs (_: alias: alias.command) (import ./aliases.nix);
|
||||
in {
|
||||
in
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
dotDir = ".config/zsh";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue