Revert "fix: Remove |> operator to fix ci"
This reverts commit 6a7b5838bc.
This commit is contained in:
parent
ff78d71406
commit
4205a8bcb3
13 changed files with 122 additions and 167 deletions
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
|
|
@ -21,6 +21,7 @@ jobs:
|
|||
extra_nix_config: |
|
||||
trusted-public-keys = youthlic.cachix.org-1:zkUZ/ZGGF5fZxvg5WO3K8XAsUAPFmQKWbnAFb3W5x+Y= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= niri.cachix.org-1:Wv0OmO7PsuocRKzfDoJ3mulSl7Z6oezYhGhR+3W2964= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= chaotic-nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
|
||||
substituters = https://youthlic.cachix.org/ https://niri.cachix.org/ https://nix-community.cachix.org/ https://chaotic-nyx.cachix.org/ https://cache.nixos.org/
|
||||
experimental-features = nix-command flakes pipe-operator
|
||||
- uses: cachix/cachix-action@v14
|
||||
with:
|
||||
name: youthlic
|
||||
|
|
|
|||
|
|
@ -39,20 +39,16 @@ in
|
|||
};
|
||||
config = {
|
||||
flake.deploy.nodes =
|
||||
with lib;
|
||||
pipe
|
||||
[
|
||||
"Cape"
|
||||
"Akun"
|
||||
]
|
||||
[
|
||||
(map (
|
||||
|> map (
|
||||
hostName:
|
||||
mkDeployNode {
|
||||
inherit hostName;
|
||||
}
|
||||
))
|
||||
(foldr (a: b: a // b) { })
|
||||
];
|
||||
)
|
||||
|> lib.foldr (a: b: a // b) { };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,20 +9,18 @@ let
|
|||
inherit (self) outputs;
|
||||
homeModules =
|
||||
(
|
||||
with lib;
|
||||
pipe (rootPath + "/home") [
|
||||
builtins.readDir
|
||||
(filterAttrs (_key: value: value == "directory"))
|
||||
(filterAttrs (
|
||||
(rootPath + "/home")
|
||||
|> builtins.readDir
|
||||
|> lib.filterAttrs (_key: value: value == "directory")
|
||||
|> lib.filterAttrs (
|
||||
key: _value:
|
||||
!builtins.elem key [
|
||||
"modules"
|
||||
"extra"
|
||||
]
|
||||
))
|
||||
builtins.attrNames
|
||||
(flip genAttrs (name: import (rootPath + "/home/${name}/modules")))
|
||||
]
|
||||
)
|
||||
|> builtins.attrNames
|
||||
|> (with lib; flip genAttrs (name: import (rootPath + "/home/${name}/modules")))
|
||||
)
|
||||
// {
|
||||
default = import "${toString rootPath}/home/modules";
|
||||
|
|
@ -71,14 +69,11 @@ let
|
|||
in
|
||||
{
|
||||
flake = {
|
||||
homeConfigurations =
|
||||
with lib;
|
||||
foldr (a: b: a // b) { } (
|
||||
pipe
|
||||
homeConfigurations = lib.foldr (a: b: a // b) { } (
|
||||
[
|
||||
# Hostname
|
||||
]
|
||||
[ (map (hostName: makeHomeConfiguration { inherit hostName; })) ]
|
||||
|> map (hostName: makeHomeConfiguration { inherit hostName; })
|
||||
);
|
||||
inherit homeModules;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -30,13 +30,11 @@ in
|
|||
};
|
||||
};
|
||||
in
|
||||
with lib;
|
||||
pipe
|
||||
[
|
||||
"Tytonidae"
|
||||
"Cape"
|
||||
"Akun"
|
||||
]
|
||||
[ (flip genAttrs makeNixosConfiguration) ];
|
||||
|> (with lib; flip genAttrs makeNixosConfiguration);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,11 +11,9 @@ let
|
|||
in
|
||||
{
|
||||
flake.overlays =
|
||||
with lib;
|
||||
pipe
|
||||
[
|
||||
"modifications"
|
||||
"additions"
|
||||
]
|
||||
[ (flip genAttrs (name: importWithArgs (rootPath + "/overlays/${name}"))) ];
|
||||
|> (with lib; flip genAttrs (name: importWithArgs (rootPath + "/overlays/${name}")));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,15 +17,7 @@ in
|
|||
programs.alacritty = {
|
||||
enable = true;
|
||||
package = pkgs.alacritty_git;
|
||||
settings =
|
||||
(
|
||||
with lib;
|
||||
pipe ./alacritty.toml [
|
||||
builtins.readFile
|
||||
builtins.fromTOML
|
||||
]
|
||||
)
|
||||
// {
|
||||
settings = (./alacritty.toml |> builtins.readFile |> builtins.fromTOML) // {
|
||||
colors = lib.mkForce { };
|
||||
font.size = lib.mkForce 16;
|
||||
window.opacity = lib.mkForce 0.8;
|
||||
|
|
|
|||
|
|
@ -56,12 +56,7 @@ in
|
|||
enable = true;
|
||||
defaultEditor = true;
|
||||
extraPackages = cfg.extraPackages;
|
||||
settings =
|
||||
with lib;
|
||||
pipe ./config.toml [
|
||||
builtins.readFile
|
||||
builtins.fromTOML
|
||||
];
|
||||
settings = ./config.toml |> builtins.readFile |> builtins.fromTOML;
|
||||
languages = lib.recursiveUpdate {
|
||||
language-server = {
|
||||
neocmakelsp = {
|
||||
|
|
|
|||
|
|
@ -9,15 +9,13 @@
|
|||
{
|
||||
config = {
|
||||
environment.etc =
|
||||
with lib;
|
||||
pipe inputs [
|
||||
(mapAttrs' (
|
||||
inputs
|
||||
|> lib.mapAttrs' (
|
||||
name: value:
|
||||
lib.nameValuePair "nix/inputs/${name}" {
|
||||
source = value;
|
||||
}
|
||||
))
|
||||
];
|
||||
);
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
|
|
@ -74,7 +72,9 @@
|
|||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
]
|
||||
++ (lib.optional config.lix.enable "pipe-operator")
|
||||
++ (lib.optional (!config.lix.enable) "pipe-operators");
|
||||
warn-dirty = false;
|
||||
system-features = [
|
||||
"kvm"
|
||||
|
|
@ -85,17 +85,15 @@
|
|||
};
|
||||
package = pkgs.nix;
|
||||
registry =
|
||||
with lib;
|
||||
pipe inputs [
|
||||
(filterAttrs (name: _value: name != "nixpkgs"))
|
||||
(mapAttrs (
|
||||
inputs
|
||||
|> lib.filterAttrs (name: _value: name != "nixpkgs")
|
||||
|> lib.mapAttrs (
|
||||
_name: value: {
|
||||
flake = lib.mkForce {
|
||||
outPath = value;
|
||||
};
|
||||
}
|
||||
))
|
||||
];
|
||||
);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,9 +3,7 @@ final: prev:
|
|||
let
|
||||
inherit (prev) lib;
|
||||
in
|
||||
with lib;
|
||||
pipe
|
||||
[
|
||||
[
|
||||
./TrackersListCollection.nix
|
||||
./OuterWildsTextAdventure.nix
|
||||
./editor-runtime.nix
|
||||
|
|
@ -17,8 +15,6 @@ pipe
|
|||
./osu-lazer-bin.nix # typochecker: disable-line
|
||||
|
||||
./pkgsNoCuda.nix
|
||||
]
|
||||
[
|
||||
(map (file: import file args))
|
||||
(overlays: (lib.composeManyExtensions overlays) final prev)
|
||||
]
|
||||
]
|
||||
|> map (file: import file args)
|
||||
|> (overlays: (lib.composeManyExtensions overlays) final prev)
|
||||
|
|
|
|||
|
|
@ -3,9 +3,7 @@ final: prev:
|
|||
let
|
||||
inherit (prev) lib;
|
||||
in
|
||||
with lib;
|
||||
pipe
|
||||
[
|
||||
[
|
||||
./niri.nix
|
||||
./spotifyx.nix
|
||||
./radicle-explorer.nix
|
||||
|
|
@ -21,8 +19,6 @@ pipe
|
|||
|
||||
# Nur
|
||||
./nur.nix
|
||||
]
|
||||
[
|
||||
(map (file: import file args))
|
||||
(overlays: (lib.composeManyExtensions overlays) final prev)
|
||||
]
|
||||
]
|
||||
|> map (file: import file args)
|
||||
|> (overlays: (lib.composeManyExtensions overlays) final prev)
|
||||
|
|
|
|||
|
|
@ -60,30 +60,26 @@ let
|
|||
runHook postFixup
|
||||
'';
|
||||
};
|
||||
grammars = with lib; pipe srcs [ (filterAttrs (key: _: hasPrefix "tree-sitter-" key)) ];
|
||||
grammars = srcs |> lib.filterAttrs (key: _: lib.hasPrefix "tree-sitter-" key);
|
||||
|
||||
queries =
|
||||
with lib;
|
||||
pipe grammars [
|
||||
(mapAttrsToList (
|
||||
grammars
|
||||
|> lib.mapAttrsToList (
|
||||
_: value: ''
|
||||
mkdir -p $out/${value.name}
|
||||
|
||||
ln -s ${value.src}/queries/* $out/${value.name}/
|
||||
''
|
||||
))
|
||||
];
|
||||
);
|
||||
grammarLinks =
|
||||
with lib;
|
||||
pipe grammars [
|
||||
(builtins.mapAttrs (
|
||||
grammars
|
||||
|> builtins.mapAttrs (
|
||||
_: v: {
|
||||
inherit (v) name;
|
||||
value = buildGrammar v;
|
||||
}
|
||||
))
|
||||
(mapAttrsToList (_: value: "ln -s ${value.value}/${value.name}.so $out/${value.name}.so"))
|
||||
];
|
||||
)
|
||||
|> lib.mapAttrsToList (_: value: "ln -s ${value.value}/${value.name}.so $out/${value.name}.so");
|
||||
grammarDir = runCommandLocal "helix-grammars" { } ''
|
||||
mkdir -p $out
|
||||
|
||||
|
|
|
|||
|
|
@ -7,10 +7,9 @@
|
|||
let
|
||||
wallpapers =
|
||||
with lib;
|
||||
pipe srcs [
|
||||
(filterAttrs (name: _value: hasPrefix "wallpaper" name))
|
||||
(concatMapAttrsStringSep "\n" (name: value: "ln -s ${value.src} $out/${name}"))
|
||||
];
|
||||
srcs
|
||||
|> filterAttrs (name: _value: hasPrefix "wallpaper" name)
|
||||
|> concatMapAttrsStringSep "\n" (name: value: "ln -s ${value.src} $out/${name}");
|
||||
in
|
||||
runCommandLocal "wallpapers" { } ''
|
||||
mkdir -p $out
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
perSystem =
|
||||
{ pkgs, lib, ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
treefmt = {
|
||||
programs = {
|
||||
|
|
@ -41,12 +41,7 @@
|
|||
};
|
||||
typos =
|
||||
let
|
||||
config =
|
||||
with lib;
|
||||
pipe ./.typos.toml [
|
||||
builtins.readFile
|
||||
builtins.fromTOML
|
||||
];
|
||||
config = ./.typos.toml |> builtins.readFile |> builtins.fromTOML;
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue