Further lib handling

This commit is contained in:
Kat Inskip 2023-07-30 10:05:15 -07:00
parent 11dd6aabd5
commit 5b8a624f97
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
2 changed files with 63 additions and 61 deletions

View file

@ -5,12 +5,12 @@
std,
...
}: let
inherit (lib.option) mkOption;
inherit (lib.types) attrsOf str enum;
inherit (lib.modules) mkIf;
inherit (std) string set tuple list;
cfg = config.base16;
in
with lib; {
in {
options.base16 = {
palette = mkOption {
type = attrsOf str;
@ -72,4 +72,4 @@ in
};
_module.args = {inherit (config.lib) kittywitch;};
};
}
}

View file

@ -5,7 +5,9 @@ _: let
tree,
pkgs,
...
}: {
}: let
inherit (lib.modules) mkDefault;
in {
imports = with tree.nixos.hardware;
[
common-wifi-bt
@ -44,8 +46,8 @@ _: let
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
boot.supportedFilesystems = ["ntfs"];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
nixpkgs.hostPlatform = mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
fileSystems = {
"/" = {