mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
Further lib handling
This commit is contained in:
parent
11dd6aabd5
commit
5b8a624f97
2 changed files with 63 additions and 61 deletions
|
|
@ -5,12 +5,12 @@
|
||||||
std,
|
std,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
inherit (lib.option) mkOption;
|
||||||
inherit (lib.types) attrsOf str enum;
|
inherit (lib.types) attrsOf str enum;
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (std) string set tuple list;
|
inherit (std) string set tuple list;
|
||||||
cfg = config.base16;
|
cfg = config.base16;
|
||||||
in
|
in {
|
||||||
with lib; {
|
|
||||||
options.base16 = {
|
options.base16 = {
|
||||||
palette = mkOption {
|
palette = mkOption {
|
||||||
type = attrsOf str;
|
type = attrsOf str;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ _: let
|
||||||
tree,
|
tree,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
inherit (lib.modules) mkDefault;
|
||||||
|
in {
|
||||||
imports = with tree.nixos.hardware;
|
imports = with tree.nixos.hardware;
|
||||||
[
|
[
|
||||||
common-wifi-bt
|
common-wifi-bt
|
||||||
|
|
@ -44,8 +46,8 @@ _: let
|
||||||
boot.kernelModules = ["kvm-amd"];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
boot.supportedFilesystems = ["ntfs"];
|
boot.supportedFilesystems = ["ntfs"];
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/" = {
|
"/" = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue