38 lines
892 B
Nix
38 lines
892 B
Nix
{
|
|
description = "A library flake for shared modules accross my installations";
|
|
|
|
inputs = {
|
|
flake-compat = {
|
|
url = "github:edolstra/flake-compat";
|
|
flake = false;
|
|
};
|
|
utils.url = "github:numtide/flake-utils";
|
|
nixpkgs.url = "flake:nixpkgs/nixos-unstable";
|
|
nix-gaming = {
|
|
url = "github:fufexan/nix-gaming";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs @ { self, utils, nixpkgs, nix-gaming, ... }: let
|
|
lib = nixpkgs.lib;
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
nixosModules = rec {
|
|
default = grimmShared;
|
|
grimmShared = {
|
|
imports = [
|
|
./.
|
|
inputs.nix-gaming.nixosModules.pipewireLowLatency
|
|
];
|
|
_module.args.grimm-shared-inputs = inputs;
|
|
};
|
|
};
|
|
# nixosModule = self.nixosModules.default; # compatibility
|
|
};
|
|
}
|
|
|
|
|
|
|