终于可以正常运行了,就先这样吧
This commit is contained in:
parent
83e740d676
commit
483de25778
26
flake.nix
26
flake.nix
@ -5,11 +5,16 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs:
|
{
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
treefmt-nix,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import inputs.nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
treefmtEval = inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
|
treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
|
||||||
packages-inode = with pkgs; [
|
packages-inode = with pkgs; [
|
||||||
libgcc
|
libgcc
|
||||||
libxcrypt-legacy
|
libxcrypt-legacy
|
||||||
@ -36,7 +41,7 @@
|
|||||||
];
|
];
|
||||||
inherit (pkgs) mkShell;
|
inherit (pkgs) mkShell;
|
||||||
in
|
in
|
||||||
rec {
|
{
|
||||||
formatter.${system} = treefmtEval.config.build.wrapper;
|
formatter.${system} = treefmtEval.config.build.wrapper;
|
||||||
devShell."${system}" = mkShell {
|
devShell."${system}" = mkShell {
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
@ -50,11 +55,16 @@
|
|||||||
h3c-inode-client = pkgs.callPackage ./h3c-inode-client/package.nix { };
|
h3c-inode-client = pkgs.callPackage ./h3c-inode-client/package.nix { };
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosModules = rec {
|
nixosModules =
|
||||||
chuang-packages = {
|
let
|
||||||
pkgs-chuang = packages;
|
pkgs-chuang = self.packages."${system}";
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
chuang-packages =
|
||||||
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./h3c-inode-client/module.nix
|
(import ./h3c-inode-client/module.nix { inherit lib pkgs-chuang config; })
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user