grimm-nix-shared/flake.nix

46 lines
1.2 KiB
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-18 00:34:52 +01:00
swaymux = {
url = "git+https://git.grimmauld.de/Grimmauld/swaymux";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-03-21 16:03:56 +01:00
ff_nightly = {
url = "github:nix-community/flake-firefox-nightly";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-03-16 10:07:36 +01:00
};
2024-03-21 16:03:56 +01:00
outputs = inputs @ { self, swaymux, utils, nixpkgs, nix-gaming, ff_nightly, ... }: let
2024-03-16 10:07:36 +01:00
lib = nixpkgs.lib;
system = "x86_64-linux";
2024-03-21 16:03:56 +01:00
pkgs = import nixpkgs { inherit system; overlays = []; };
2024-03-16 10:07:36 +01:00
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
};
}