feat: reuse the pre-installed channel

This commit is contained in:
David Arnold 2022-11-06 00:30:18 -05:00 committed by lassulus
parent fa17cfe878
commit a023d391a0
2 changed files with 3 additions and 29 deletions

View file

@ -1,7 +1,8 @@
{
description = "Description for the project";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# don't lock to give precedence to a USB live-installer's registry
inputs.nixpkgs.url = "nixpkgs";
outputs = { self, nixpkgs, ... }: {
nixosModules.disko = import ./module.nix;
@ -9,8 +10,8 @@
inherit (nixpkgs) lib;
};
packages.x86_64-linux.disko = let
inherit (nixpkgs) lib;
pkgs = nixpkgs.legacyPackages.x86_64-linux;
inherit (pkgs) lib;
inclFiles = {src, name}: files: lib.cleanSourceWith {
inherit src name;
filter = _path: _type: _type == "regular"