fix(modules): fix various issues

This commit is contained in:
Infinidoge 2021-12-03 23:14:35 -05:00
parent f02c9f0e1b
commit 7f22410427
5 changed files with 12 additions and 11 deletions

View file

@ -1,4 +1,4 @@
{ channel, inputs, pkgs, lib, ... }:
{ config, channel, inputs, pkgs, lib, self, ... }:
with lib;
{
nix = {

View file

@ -29,7 +29,7 @@ in
(mkIf cfg.btrfs.enable {
environment.systemPackages = with pkgs; [ btrfs-progs ];
services.btrfs.autoScrub = mkAliasDefinitions opt.scrub;
services.btrfs.autoScrub = mkAliasDefinitions opt.btrfs.scrub;
})
];
}

View file

@ -3,6 +3,7 @@ with lib;
with lib.hlissner;
let
cfg = config.modules.locale;
opt = options.modules.locale;
in
{
options.modules.locale = with types; {
@ -13,10 +14,10 @@ in
fonts = {
fonts = mkOpt (listOf package) [ ];
defaults = {
serif = mkOpt (listOf str) "DejaVu Serif";
emoji = mkOpt (listOf str) "Noto Color Emoji";
monospace = mkOpt (listOf str) "DejaVu Sans Mono";
sansSerif = mkOpt (listOf str) "DejaVu Sans";
serif = mkOpt (listOf str) [ "DejaVu Serif" ];
emoji = mkOpt (listOf str) [ "Noto Color Emoji" ];
monospace = mkOpt (listOf str) [ "DejaVu Sans Mono" ];
sansSerif = mkOpt (listOf str) [ "DejaVu Sans" ];
};
};
};
@ -29,7 +30,7 @@ in
time.timeZone = cfg.timezone;
fonts.fontconfig.defaultFonts = mkAliasDefinitions options.defaults;
fonts.fontconfig.defaultFonts = cfg.fonts.defaults;
console.packages = cfg.fonts.fonts;
};

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, options, lib, ... }:
with lib;
with lib.hlissner;
let
@ -28,9 +28,9 @@ in
enable = true;
hwRender = true;
extraConfig = ''
font-size=${cfg.kmscon.font.size}
font-size=${toString cfg.kmscon.font.size}
font-name=${cfg.kmscon.font.font}
${opt.kmscon.extraConfig}
${cfg.kmscon.extraConfig}
'';
extraOptions = mkAliasDefinitions opt.kmscon.extraOptions;
};