2024-07-27 12:44:11 +00:00
|
|
|
{ inputs, config, lib, ... }: {
|
2024-01-15 14:06:12 +00:00
|
|
|
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
|
2024-01-15 14:06:12 +00:00
|
|
|
./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
|
2024-02-22 07:14:19 +00:00
|
|
|
|
|
|
|
# Subprojects.
|
|
|
|
./bahaghari.nix
|
2024-07-04 14:35:17 +00:00
|
|
|
./wrapper-manager-fds.nix
|
2024-01-15 14:06:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
_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;
|
2024-06-10 10:29:06 +00:00
|
|
|
|
|
|
|
defaultSystems = [ "x86_64-linux" ];
|
2024-01-15 14:06:12 +00:00
|
|
|
};
|
|
|
|
|
2024-07-16 05:47:41 +00:00
|
|
|
setups.sharedNixpkgsConfig = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
|
|
|
|
2024-01-15 14:06:12 +00:00
|
|
|
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.
|
2024-01-15 14:06:12 +00:00
|
|
|
pkgs = import inputs.nixpkgs {
|
|
|
|
inherit system;
|
2024-07-27 12:44:11 +00:00
|
|
|
config = config.setups.sharedNixpkgsConfig;
|
2024-01-15 14:06:12 +00:00
|
|
|
overlays = lib.attrValues inputs.self.overlays ++ [
|
|
|
|
inputs.nur.overlay
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|