mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 17:53:17 +01:00
eac686339b
Using @attrs for the flake was cool at first, but this doesn't actually work if we want to use our nix-config inside NixOS containers due to how `self` works. Because of this, it's easier to simply ban @attrs altogether and use `nix-config` for everything since it's possible to access *all* the inputs of nix-config from itself instead of having to manually inherit each input we want (which could be any of them).
28 lines
526 B
Nix
28 lines
526 B
Nix
{ nix-config, pkgs, ... }:
|
|
|
|
let
|
|
inherit (builtins) attrValues;
|
|
in
|
|
{
|
|
imports = attrValues nix-config.nixosModules;
|
|
nixpkgs.overlays = attrValues nix-config.overlays;
|
|
home-manager.sharedModules = attrValues nix-config.homeModules;
|
|
environment.systemPackages = attrValues nix-config.packages.${pkgs.system};
|
|
|
|
modules = {
|
|
hardware = {
|
|
keyboardBinds = true;
|
|
lidIgnore = true;
|
|
bluetooth = true;
|
|
};
|
|
|
|
system = {
|
|
mullvad = true;
|
|
};
|
|
|
|
desktop = {
|
|
bloat = true;
|
|
};
|
|
};
|
|
}
|