use native dependencies

This commit is contained in:
陈浩南 2023-09-26 13:49:21 +08:00
parent 312dbd0529
commit 612ef46244
2 changed files with 2 additions and 25 deletions

View File

@ -1013,22 +1013,6 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_5": {
"locked": {
"lastModified": 1695360818,
"narHash": "sha256-JlkN3R/SSoMTa+CasbxS1gq+GpGxXQlNZRUh9+LIy/0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e35dcc04a3853da485a396bdd332217d0ac9054f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1695048039, "lastModified": 1695048039,
@ -1159,8 +1143,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"nixos": "nixos", "nixos": "nixos"
"nixpkgs": "nixpkgs_5"
} }
}, },
"sops-nix": { "sops-nix": {

View File

@ -1,15 +1,9 @@
{ {
inputs.nixos.url = "github:CHN-beta/nixos"; inputs.nixos.url = "github:CHN-beta/nixos";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = inputs: outputs = inputs:
let let
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; pkgs = inputs.nixos.nixosConfigurations.pc.pkgs.unstablePackages;
# pkgs = import inputs.nixpkgs
# {
# localSystem = { system = "x86_64-linux"; gcc = { arch = "alderlake"; tune = "alderlake"; }; };
# config.allowUnfree = true;
# };
localPackages = import "${inputs.nixos}/local/pkgs" { inherit pkgs; inherit (inputs.nixpkgs) lib; }; localPackages = import "${inputs.nixos}/local/pkgs" { inherit pkgs; inherit (inputs.nixpkgs) lib; };
in in
{ {