nix-config/hosts/laptop/configuration.nix
Donovan Glover eac686339b
flake: drop usage of @attrs
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).
2024-10-11 13:35:45 -04:00

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;
};
};
}