mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
fix(lint): nixfmt the whole tree
This commit is contained in:
parent
643b136863
commit
bf219a30c2
69 changed files with 2605 additions and 1726 deletions
|
|
@ -1,23 +1,25 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
xcfg = config.services.xserver;
|
||||
generalCfg = config.aviallon.general;
|
||||
in {
|
||||
in
|
||||
{
|
||||
config = {
|
||||
services.kmscon = {
|
||||
hwRender = mkDefault xcfg.enable;
|
||||
extraConfig = ""
|
||||
+ optionalString ( ! isNull xcfg.layout )
|
||||
"xkb-layout=${xcfg.layout}"
|
||||
+ optionalString ( ! isNull xcfg.xkbVariant )
|
||||
"xkb-variant=${xcfg.xkbVariant}"
|
||||
+ optionalString ( ! isNull xcfg.xkbOptions )
|
||||
"xkb-options=${xcfg.xkbOptions}"
|
||||
+ "font-dpi=${toString (xcfg.dpi or 96)}"
|
||||
;
|
||||
enable = mkDefault (! generalCfg.minimal );
|
||||
extraConfig =
|
||||
""
|
||||
+ optionalString (!isNull xcfg.layout) "xkb-layout=${xcfg.layout}"
|
||||
+ optionalString (!isNull xcfg.xkbVariant) "xkb-variant=${xcfg.xkbVariant}"
|
||||
+ optionalString (!isNull xcfg.xkbOptions) "xkb-options=${xcfg.xkbOptions}"
|
||||
+ "font-dpi=${toString (xcfg.dpi or 96)}";
|
||||
enable = mkDefault (!generalCfg.minimal);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue