1 Star 0 Fork 19

vorne/傲来操作系统训练营报告网站

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
flake.nix 2.55 KB
一键复制 编辑 原始数据 按行查看 历史
Burgess Chang 提交于 2024-06-13 09:42 . chore: initial this project
{
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.
};
}
);
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/vorne/pages.git
git@gitee.com:vorne/pages.git
vorne
pages
傲来操作系统训练营报告网站
main

搜索帮助