Compare commits
No commits in common. "fe6e4f4c0b14a38c89bd8f8d2e20a16372960935" and "5de4c827d85f50320d10ddaec34a8bcecd36da9b" have entirely different histories.
fe6e4f4c0b
...
5de4c827d8
15 changed files with 29 additions and 60 deletions
|
|
@ -47,16 +47,14 @@
|
|||
inherit inputs rootPath;
|
||||
srcs = self.callPackage (rootPath + "/_sources/generated.nix") { };
|
||||
inherit (inputs'.nixvim.legacyPackages) makeNixvim makeNixvimWithModule;
|
||||
inherit (self'.legacyPackages) nixvimPlugins editor-runtime;
|
||||
neovim_git = inputs'.neovim-nightly.packages.default;
|
||||
});
|
||||
in
|
||||
inputsScope.overrideScope (
|
||||
final: _prev:
|
||||
lib.packagesFromDirectoryRecursive {
|
||||
inherit (final) callPackage;
|
||||
directory = rootPath + "/pkgs";
|
||||
}
|
||||
);
|
||||
lib.packagesFromDirectoryRecursive {
|
||||
inherit (inputsScope) callPackage;
|
||||
directory = rootPath + "/pkgs";
|
||||
};
|
||||
packages =
|
||||
let
|
||||
flattenPkgs =
|
||||
|
|
@ -70,23 +68,7 @@
|
|||
else
|
||||
{ };
|
||||
in
|
||||
flattenPkgs [ ] (
|
||||
lib.removeAttrs self'.legacyPackages [
|
||||
"inputs"
|
||||
|
||||
"srcs"
|
||||
|
||||
"rootPath"
|
||||
|
||||
"makeNixvim"
|
||||
"makeNixvimWithModule"
|
||||
|
||||
"newScope"
|
||||
"overrideScope"
|
||||
"packages"
|
||||
"callPackage"
|
||||
]
|
||||
);
|
||||
flattenPkgs [ ] self'.legacyPackages;
|
||||
checks = lib.concatMapAttrs (name: value: {
|
||||
"package-${name}" = value;
|
||||
}) self'.packages;
|
||||
|
|
|
|||
14
home/modules/i18n/default.nix
Normal file
14
home/modules/i18n/default.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
osConfig ? null,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = lib.mkIf (osConfig != null) {
|
||||
xdg.dataFile = {
|
||||
"fcitx5/rime/default.custom.yaml".source = ./default.custom.yaml;
|
||||
"fcitx5/rime/double_pinyin_flypy.custom.yaml".source = ./double_pinyin_flypy.custom.yaml;
|
||||
"fcitx5/rime/yustar_sc.custom.yaml".source = ./yustar_sc.custom.yaml;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -37,7 +37,10 @@ in
|
|||
fcitx5-fluent
|
||||
(fcitx5-rime.override {
|
||||
rimeDataPkgs = [
|
||||
rime-all
|
||||
rime-ice
|
||||
rime-zhwiki
|
||||
rime-moegirl
|
||||
rime-yuhaostar
|
||||
];
|
||||
})
|
||||
];
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ in
|
|||
./editor-runtime.nix
|
||||
./wallpapers.nix
|
||||
./rime-yuhaostar.nix
|
||||
./rime-all.nix
|
||||
./nixvim.nix
|
||||
./doom-emacs.nix
|
||||
./osu-lazer-bin.nix # typochecker: disable-line
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
{ outputs, ... }:
|
||||
_final: prev:
|
||||
let
|
||||
inherit (prev.stdenv.hostPlatform) system;
|
||||
in
|
||||
{
|
||||
inherit (outputs.packages.${system}) rime-all;
|
||||
}
|
||||
|
|
@ -4,5 +4,5 @@ let
|
|||
inherit (prev.stdenv.hostPlatform) system;
|
||||
in
|
||||
{
|
||||
inherit (outputs.packages."${system}") cliphist';
|
||||
inherit (outputs.packages."${system}") cliphist;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@ let
|
|||
inherit (prev.stdenv.hostPlatform) system;
|
||||
in
|
||||
{
|
||||
radicle-explorer = outputs.packages."${system}".radicle-explorer';
|
||||
radicle-explorer = outputs.packages."${system}".radicle-explorer;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@ let
|
|||
inherit (prev.stdenv.hostPlatform) system;
|
||||
in
|
||||
{
|
||||
spotifyd = outputs.packages.${system}.spotifyd';
|
||||
spotifyd = outputs.packages."${system}".spotifyd;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
{
|
||||
rime-ice,
|
||||
rime-yuhaostar,
|
||||
rime-moegirl,
|
||||
rime-zhwiki,
|
||||
buildEnv,
|
||||
}:
|
||||
buildEnv {
|
||||
name = "rime-all";
|
||||
paths = [
|
||||
rime-ice
|
||||
rime-yuhaostar
|
||||
rime-zhwiki
|
||||
rime-moegirl
|
||||
];
|
||||
postBuild = ''
|
||||
ln -s ${./yustar_sc.custom.yaml} $out/share/rime-data/yustar_sc.custom.yaml
|
||||
ln -s ${./double_pinyin_flypy.custom.yaml} $out/share/rime-data/double_pinyin_flypy.custom.yaml
|
||||
ln -s ${./default.custom.yaml} $out/share/rime-data/default.custom.yaml
|
||||
'';
|
||||
}
|
||||
|
|
@ -8,7 +8,7 @@ let
|
|||
inherit (srcs.spotifyd) src date version;
|
||||
in
|
||||
spotifyd.overrideAttrs (
|
||||
_final: prev: {
|
||||
final: prev: {
|
||||
inherit src;
|
||||
version =
|
||||
if prev.version != "0.4.1" then
|
||||
|
|
@ -18,7 +18,7 @@ spotifyd.overrideAttrs (
|
|||
else
|
||||
"0-unstable-${date}-git${version}";
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit (prev)
|
||||
inherit (final)
|
||||
src
|
||||
;
|
||||
hash = "sha256-WwShp1ebk89cBqRXqKDgbwGZraCDjQAOxoL4uEIq2aw=";
|
||||
Loading…
Add table
Add a link
Reference in a new issue