mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
Gabriel Arazas
ec3fdab52c
At least we've set the right sources for the system's nixpkgs and home-manager branches.
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{ inputs, lib, ... }: {
|
|
imports = [
|
|
./dev.nix
|
|
./packages.nix
|
|
./templates.nix
|
|
|
|
# The environment configurations.
|
|
./disko.nix
|
|
./home-manager.nix
|
|
./nixos.nix
|
|
./nixvim.nix
|
|
|
|
# Subprojects.
|
|
./bahaghari.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;
|
|
};
|
|
|
|
perSystem = { lib, system, ... }: {
|
|
_module.args = {
|
|
# 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
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|