You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.8 KiB
Nix

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{
inputs,
lib,
outputs,
self,
...
}@flakeArg:
let
importModuleGroup = lib.importFlakeMod;
importModule = path: { imports = lib.singleton path; };
in
{
default = self.withDepends;
# assertions checking for good practices
assertions = importModule ./assertions;
# this one includes all of my modules
# - most of them only change things when enabled (e.g. x-banananetwork.*.enable)
# - others only introduce small, reasonable changes if other modules options are set, as reasonable defaults (if I intend to upstream them)
# however, use on your own discretion
banananetwork.imports = [
# flake
self.assertions
# directories
./extends
./frontend
./improvedDefaults
./vmDisko
# files
./autoUnfree.nix
./debugMinimal.nix
./graphics.nix
./kernel.nix
./options.nix
./privacy.nix
./secrix.nix
./sshSecurity.nix
./useable.nix
./vmCommon.nix
];
# this one defines common options for my systems to my modules
# you definitely do not want to use this
myOptions = importModule ../myOptions.nix;
# this one also includes required dependencies from flake inputs
withDepends =
{ config, pkgs, ... }:
{
imports = [
inputs.disko.nixosModules.disko
inputs.home-manager.nixosModules.home-manager
inputs.impermanence.nixosModules.impermanence
inputs.secrix.nixosModules.secrix
self.banananetwork
];
config = {
nixpkgs.overlays = [
outputs.overlays.backports
outputs.overlays.fromFlake
];
};
};
# from sub groups
# NOTE: these will change possibly unsensible stuff just by importing them
inherit (importModuleGroup ./overlays)
# (make list commitable)
systemd-radv-fadeout
;
}