nixos-config/configs/flake-parts/default.nix

50 lines
1.2 KiB
Nix
Raw Normal View History

{ inputs, lib, ... }: {
imports = [
./dev.nix
./packages.nix
./templates.nix
2024-05-26 08:38:22 +00:00
# Environment configurations.
2024-02-27 13:06:12 +00:00
./disko.nix
./home-manager.nix
./nixos.nix
2024-01-25 14:51:05 +00:00
./nixvim.nix
2024-07-23 09:57:38 +00:00
./wrapper-manager.nix
# Subprojects.
./bahaghari.nix
./wrapper-manager-fds.nix
];
_module.args = {
# This will be shared among NixOS and home-manager configurations.
defaultNixConf = { config, lib, pkgs, ... }: {
# Extend nixpkgs with our overlays except for the NixOS-focused modules
# here.
nixpkgs.overlays = lib.attrValues inputs.self.overlays;
};
defaultOverlays = lib.attrValues inputs.self.overlays;
defaultSystems = [ "x86_64-linux" ];
};
setups.sharedNixpkgsConfig = {
allowUnfree = true;
};
perSystem = { lib, system, ... }: {
_module.args = {
2024-01-16 06:54:50 +00:00
# nixpkgs for this module should be used as less as possible especially
# for building NixOS and home-manager systems.
pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = lib.attrValues inputs.self.overlays ++ [
inputs.nur.overlay
];
};
};
};
}