grimm-nix-shared/flake.nix

38 lines
892 B
Nix
Raw Normal View History

2024-03-16 10:07:36 +01:00
{
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";
2024-03-16 15:31:18 +01:00
nix-gaming = {
url = "github:fufexan/nix-gaming";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-03-16 10:07:36 +01:00
};
2024-03-16 15:31:18 +01:00
outputs = inputs @ { self, utils, nixpkgs, nix-gaming, ... }: let
2024-03-16 10:07:36 +01:00
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosModules = rec {
2024-03-16 16:15:46 +01:00
default = grimmShared;
grimmShared = {
2024-03-16 16:23:57 +01:00
imports = [
./.
inputs.nix-gaming.nixosModules.pipewireLowLatency
];
2024-03-16 16:15:46 +01:00
_module.args.grimm-shared-inputs = inputs;
};
2024-03-16 10:07:36 +01:00
};
# nixosModule = self.nixosModules.default; # compatibility
};
}