代码拉取完成,页面将自动刷新
同步操作将从 EulixOS 在线学习课堂/傲来操作系统训练营报告网站 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
{
description = ''
Pages of Learning EulixOS
'';
# Nix libraries
inputs = {
devshell = {
url = "github:numtide/devshell/main";
inputs = {
flake-utils = {
follows = "flake-utils";
};
nixpkgs = {
follows = "nixpkgs";
};
};
};
flake-compat = {
url = "github:edolstra/flake-compat/master";
flake = false;
};
flake-utils = {
url = "github:numtide/flake-utils/main";
inputs = {
systems = {
follows = "systems";
};
};
};
systems = {
url = "github:nix-systems/default/main";
};
treefmt = {
url = "github:numtide/treefmt-nix/main";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
};
};
# Nix packages
inputs = {
nixpkgs = {
follows = "nixpkgs-unstable";
};
nixpkgs-stable = {
url = "github:NixOS/nixpkgs/nixos-24.05";
};
nixpkgs-unstable = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
};
nixConfig = {
experimental-features = [
"flakes"
"nix-command"
];
};
outputs =
{
devshell,
flake-utils,
nixpkgs,
self,
treefmt,
...
}@inputs:
flake-utils.lib.eachDefaultSystem (
system:
let
lib = nixpkgs.lib // builtins;
pkgs = import nixpkgs {
inherit system;
overlays = [
devshell.overlays.default
(final: prev: {
# Add custom package here.
})
];
};
treefmt' = treefmt.lib.evalModule pkgs {
projectRootFile = "flake.nix";
programs = {
# TODO add ts, css formatter
nixfmt = {
enable = true;
package = pkgs.nixfmt-rfc-style;
};
};
};
in
{
checks = {
formatting = treefmt'.config.build.check self;
};
devShells = {
default = pkgs.devshell.mkShell {
commands = with pkgs; [
# Add commands here.
{
category = "development";
package = just;
}
];
packages = with pkgs; [
# Add packages here.
corepack_latest
nodejs_latest
];
};
};
formatter = treefmt'.config.build.wrapper;
packages = {
default = pkgs.emptyFile;
# TODO build all pages.
};
}
);
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。