Files
nixarr/flake.nix
T
Sergei Zimmerman 3fa7c21239 fix: remove stale nixpkgs override for vpnconfinement
This gets rid of a pesky warning:
`warning: input 'vpnconfinement' has an override for a non-existent input 'nixpkgs'`

VPN Confinement flake no longer has a nixpkgs input since 2435967.
2024-11-14 23:28:04 +03:00

51 lines
1.2 KiB
Nix

{
description = "The Nixarr Media Server Nixos Module";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
vpnconfinement.url = "github:Maroka-chan/VPN-Confinement";
};
outputs = {
nixpkgs,
vpnconfinement,
...
} @ inputs:
let
# Systems supported
supportedSystems = [
"x86_64-linux" # 64-bit Intel/AMD Linux
"aarch64-linux" # 64-bit ARM Linux
"x86_64-darwin" # 64-bit Intel macOS
"aarch64-darwin" # 64-bit ARM macOS
];
# Helper to provide system-specific attributes
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in {
nixosModules = {
default = {
imports = [ ./nixarr vpnconfinement.nixosModules.default ];
};
};
devShells = forAllSystems ({ pkgs } : {
default = pkgs.mkShell {
packages = with pkgs; [
alejandra
nixd
];
};
});
packages = forAllSystems ({ pkgs } : {
default = pkgs.callPackage ./mkDocs.nix {inherit inputs;};
});
formatter = forAllSystems ({ pkgs }: pkgs.alejandra);
};
}