mirror of
https://github.com/divnix/digga.git
synced 2024-12-23 16:11:51 +03:00
format with nixpkgs#nixpkgs-fmt
This commit is contained in:
parent
ddb256725e
commit
da6e3fee94
@ -15,16 +15,12 @@ let
|
||||
|
||||
global = {
|
||||
_module.args.utils = utils;
|
||||
|
||||
system.configurationRevision = flake.rev;
|
||||
|
||||
networking.hostName = self;
|
||||
|
||||
nix.package = nix.defaultPackage."${system}";
|
||||
system.configurationRevision = flake.rev;
|
||||
};
|
||||
|
||||
local = vimport ./. "${self}.nix";
|
||||
|
||||
in
|
||||
[
|
||||
core
|
||||
@ -34,4 +30,4 @@ let
|
||||
|
||||
};
|
||||
in
|
||||
reqImport { dir = ./.; _import = config; }
|
||||
reqImport { dir = ./.; _import = config; }
|
||||
|
@ -26,26 +26,26 @@ rec {
|
||||
|
||||
vimport = path: name: import (path + "/${name}");
|
||||
|
||||
reqImport = {
|
||||
dir,
|
||||
_import ? base: vimport dir (base + ".nix")
|
||||
}:
|
||||
mapFilterAttrs
|
||||
(_: v: v != null)
|
||||
(
|
||||
n: v:
|
||||
if
|
||||
n != "default.nix"
|
||||
&& hasSuffix ".nix" n
|
||||
&& v == "regular"
|
||||
reqImport =
|
||||
{ dir
|
||||
, _import ? base: vimport dir (base + ".nix")
|
||||
}:
|
||||
mapFilterAttrs
|
||||
(_: v: v != null)
|
||||
(
|
||||
n: v:
|
||||
if
|
||||
n != "default.nix"
|
||||
&& hasSuffix ".nix" n
|
||||
&& v == "regular"
|
||||
|
||||
then let
|
||||
name = removeSuffix ".nix" n;
|
||||
in
|
||||
nameValuePair (name) (_import name)
|
||||
then let
|
||||
name = removeSuffix ".nix" n;
|
||||
in
|
||||
nameValuePair (name) (_import name)
|
||||
|
||||
else
|
||||
nameValuePair ("") (null)
|
||||
)
|
||||
(readDir dir);
|
||||
else
|
||||
nameValuePair ("") (null)
|
||||
)
|
||||
(readDir dir);
|
||||
}
|
||||
|
@ -12,14 +12,14 @@ let
|
||||
|
||||
pluginConf = plugins:
|
||||
concatStringsSep "\n\n"
|
||||
(
|
||||
map (
|
||||
plugin: let
|
||||
name = removePrefix "tmuxplugin-" plugin.name;
|
||||
in
|
||||
"run-shell ${plugin}/share/tmux-plugins/${name}/${name}.tmux"
|
||||
) plugins
|
||||
);
|
||||
(
|
||||
map (
|
||||
plugin: let
|
||||
name = removePrefix "tmuxplugin-" plugin.name;
|
||||
in
|
||||
"run-shell ${plugin}/share/tmux-plugins/${name}/${name}.tmux"
|
||||
) plugins
|
||||
);
|
||||
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
copycat
|
||||
|
@ -17,15 +17,15 @@ in
|
||||
sessionVariables = let
|
||||
fd = "${pkgs.fd}/bin/fd -H";
|
||||
in
|
||||
{
|
||||
BAT_PAGER = "less";
|
||||
SKIM_ALT_C_COMMAND =
|
||||
"while read line; do "
|
||||
+ "line=\"'\${(Q)line}'\"; [[ -d \"'$line'\" ]] && echo \"'$line'\"; "
|
||||
+ "done < $HOME/.cache/zsh-cdr/recent-dirs";
|
||||
SKIM_DEFAULT_COMMAND = fd;
|
||||
SKIM_CTRL_T_COMMAND = fd;
|
||||
};
|
||||
{
|
||||
BAT_PAGER = "less";
|
||||
SKIM_ALT_C_COMMAND =
|
||||
"while read line; do "
|
||||
+ "line=\"'\${(Q)line}'\"; [[ -d \"'$line'\" ]] && echo \"'$line'\"; "
|
||||
+ "done < $HOME/.cache/zsh-cdr/recent-dirs";
|
||||
SKIM_DEFAULT_COMMAND = fd;
|
||||
SKIM_CTRL_T_COMMAND = fd;
|
||||
};
|
||||
|
||||
shellAliases = {
|
||||
cat = "${pkgs.bat}/bin/bat";
|
||||
@ -58,9 +58,9 @@ in
|
||||
|
||||
nixpkgs.overlays = let
|
||||
purs = self: super:
|
||||
{ purs = super.callPackage ../../../pkgs/shells/zsh/purs {}; };
|
||||
{ purs = super.callPackage ../../../pkgs/shells/zsh/purs {}; };
|
||||
in
|
||||
[ purs ];
|
||||
[ purs ];
|
||||
|
||||
|
||||
programs.zsh = {
|
||||
@ -86,12 +86,11 @@ in
|
||||
paths;
|
||||
|
||||
plugins = concatStringsSep "\n"
|
||||
(
|
||||
[
|
||||
"${pkgs.any-nix-shell}/bin/any-nix-shell zsh --info-right | source /dev/stdin"
|
||||
] ++
|
||||
source
|
||||
);
|
||||
(
|
||||
[
|
||||
"${pkgs.any-nix-shell}/bin/any-nix-shell zsh --info-right | source /dev/stdin"
|
||||
] ++ source
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user