This commit is contained in:
Lucy 2025-09-25 13:57:05 +02:00
parent df1ea7ce32
commit f8a9914d3c
4 changed files with 18 additions and 45 deletions

37
flake.lock generated
View file

@ -16,44 +16,9 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1754340878,
"narHash": "sha256-lgmUyVQL9tSnvvIvBp7x1euhkkCho7n3TMzgjdvgPoU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "cab778239e705082fe97bb4990e0d24c50924c04",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs"
"treefmt-nix": "treefmt-nix"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1758728421,
"narHash": "sha256-ySNJ008muQAds2JemiyrWYbwbG+V7S5wg3ZVKGHSFu8=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "5eda4ee8121f97b218f7cc73f5172098d458f1d1",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
} }
} }
}, },

View file

@ -3,14 +3,11 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
treefmt-nix.url = "github:numtide/treefmt-nix";
}; };
outputs = outputs =
{ {
self,
nixpkgs, nixpkgs,
treefmt-nix,
}: }:
let let
systemList = [ systemList = [
@ -30,28 +27,32 @@
); );
# ISRG Root X1 Certificate package per system # 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 in
{ {
formatter = eachSystem (pkgs: _system: pkgs.nixfmt-rfc-style);
# Packages per system # Packages per system
packages = eachSystem ( packages = eachSystem (
pkgs: system: { _pkgs: system: {
isrg-root-x1 = isrgRootX1.${system}; isrg-root-x1 = isrgRootX1.${system};
} }
); );
# NixOS Modules per system # NixOS Modules per system
nixosModules = eachSystem ( nixosModules = eachSystem (
pkgs: system: lib: pkgs: system:
import ./nixos-modules/wifi.nix { import ./nixos-modules/wifi.nix {
inherit pkgs; inherit pkgs lib;
isrgRootX1Cert = isrgRootX1.${system}; isrgRootX1Cert = isrgRootX1.${system};
} }
); );
# Dev Shells per system # Dev Shells per system
devShells = eachSystem ( devShells = eachSystem (
pkgs: system: { pkgs: _system: {
default = pkgs.mkShell { default = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
nixos-rebuild nixos-rebuild

View file

@ -0,0 +1,7 @@
{ fetchurl }:
fetchurl {
name = "isrg-root-x1.pem";
url = "https://letsencrypt.org/certs/isrgrootx1.pem";
sha256 = "sha256-C5+lpZ7tcVwmwQIMcRtPbsQtWLABXhQzejna0wHFr8M=";
}

View file

@ -1,5 +1,5 @@
# treefmt.nix # treefmt.nix
{ pkgs, ... }: { ... }:
{ {
projectRootFile = "flake.nix"; projectRootFile = "flake.nix";
} }