如果想用 flake 版,配置如下: ~/nixos-config/flake.nix : (参考:一个简单的 Flake 起步模板) {inputs={nixpkgs.url="github:NixOS/nixpkgs/nixos-unstable";# 新加入 nixos-wslnixos-wsl={url="github:nix-community/NixOS-WSL";inputs.nixpkgs.follows="nixpkgs";};outputs=inputs@{self,nixpkgs,nix...
In Nix flakes, inputs must be written as pure data, without functions or thunks (see issues NixOS/nix#3966 and NixOS/nix#4945). To generate inputs with the full power of the Nix language, one can create a template file, e.g. flake.in.nix and generate the flake.nix by evaluating ...
inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.hydra.url = "github:NixOS/hydra/nix-next"; inputs.hydra.inputs.nix.follows = "nix"; inputs.hydra.inputs.nixpkgs.follows = "nixpkgs"; Member lorenzleutgeb May 16, 2024 Let Hydra keep its own Nix and Nixpkgs. It...
{ description = "Ryan"s NixOS Flake"; # 这是 flake.nix 的标准格式,inputs 是 flake 的依赖,outputs 是 flake 的输出 # inputs 中的每一项依赖都会在被拉取、构建后,作为参数传递给 outputs 函数 inputs = { # flake inputs 有很多种引用方式,应用最广泛的是 github:owner/name/reference,即 github...
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" "i686-linux" ] (system: let pkgs = nixpkgs.le...
That it is one of the few "community distros" was on top of my pro list. Now this. (Ok, it's not only now but just got clearer and clearer for me over the last months the deeper I got into it.) 2024年4月25日 Aral Balkan@aral@mastodon.ar.al ...
The Nix flake is inflake.nixand looks like this: {description="flask-example";inputs={nixpkgs.url="github:nixos/nixpkgs/release-22.11";flake-utils.url="github:numtide/flake-utils";};outputs={self,nixpkgs,flake-utils}:flake-utils.lib.eachDefaultSystem(system:letpkgs=importnixpkgs{inheritsystem...
flake.lock: Update Flake lock file updates: • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/8c9fa2545007b49a5db5f650ae91f227672c3877' (2023-11-01) → 'github:hercules-ci/flake-parts/34fed993f1674c8d06d58b37ce1e0fe5eebcb9f5' (2023-12-01) • Updated input 'flake...
# add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix nixos-hardware.nixosModules.dell-xps-13-9380 ]; }; }; } Using fetchGit You can fetch the git repository directly: imports = [ "${builtins.fetchGit { url = "https://github.com/NixOS...
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your...