deadnix
This commit is contained in:
parent
df1ea7ce32
commit
f8a9914d3c
4 changed files with 18 additions and 45 deletions
17
flake.nix
17
flake.nix
|
|
@ -3,14 +3,11 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
treefmt-nix.url = "github:numtide/treefmt-nix";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
treefmt-nix,
|
||||
}:
|
||||
let
|
||||
systemList = [
|
||||
|
|
@ -30,28 +27,32 @@
|
|||
);
|
||||
|
||||
# ISRG Root X1 Certificate package per system
|
||||
isrgRootX1 = eachSystem (pkgs: system: pkgs.callPackage ./pkgs/by-name/is/isrg-root-x1 { });
|
||||
isrgRootX1 = eachSystem (
|
||||
pkgs: _system: pkgs.callPackage ./pkgs/by-name/is/isrg-root-x1/package.nix { }
|
||||
);
|
||||
in
|
||||
{
|
||||
formatter = eachSystem (pkgs: _system: pkgs.nixfmt-rfc-style);
|
||||
|
||||
# Packages per system
|
||||
packages = eachSystem (
|
||||
pkgs: system: {
|
||||
_pkgs: system: {
|
||||
isrg-root-x1 = isrgRootX1.${system};
|
||||
}
|
||||
);
|
||||
|
||||
# NixOS Modules per system
|
||||
nixosModules = eachSystem (
|
||||
pkgs: system:
|
||||
lib: pkgs: system:
|
||||
import ./nixos-modules/wifi.nix {
|
||||
inherit pkgs;
|
||||
inherit pkgs lib;
|
||||
isrgRootX1Cert = isrgRootX1.${system};
|
||||
}
|
||||
);
|
||||
|
||||
# Dev Shells per system
|
||||
devShells = eachSystem (
|
||||
pkgs: system: {
|
||||
pkgs: _system: {
|
||||
default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
nixos-rebuild
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue