configuration.nix/flake-modules/nixos-modules.nix
Jalil David Salamé Messina 4c90de34e9
All checks were successful
/ check (push) Successful in 9s
/ check-renovaterc (push) Successful in 3s
/ build-packages (push) Successful in 15s
/ build-vm (push) Successful in 22s
/ report-size (push) Successful in 1m8s
wip: niri take 2
Take two, since one wasn't enough.
2025-04-01 22:55:56 +02:00

30 lines
690 B
Nix

{
self,
inputs,
lib,
...
}:
{
flake.nixosModules =
let
nixosModule = {
imports = [
inputs.niri.nixosModules.niri
inputs.stylix.nixosModules.stylix
inputs.home-manager.nixosModules.home-manager
../modules/nixos
] ++ lib.optional (inputs.lix-module != null) inputs.lix-module.nixosModules.default;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
sharedModules = [ self.homeModules.nixos ];
};
# Pin nixpkgs
nix.registry.nixpkgs.flake = inputs.nixpkgs;
};
in
{
default = nixosModule;
inherit nixosModule;
};
}