refactor: ponytail audit
This commit is contained in:
1 parent
de8b59ec16
commit
f080ebe36e
57 files changed
+566
-2137
No files matched your search
@@ -1,4 +1,4 @@
|
||||
{ config, lib, ... }:
|
||||
{ lib, ... }:
|
||||
let
|
||||
palette = (import ./_kanagawa.nix).palette;
|
||||
hex = lib.removePrefix "#";
|
||||
@@ -9,9 +9,9 @@ in
|
||||
flake.modules.nixos.limine =
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
displayValues = builtins.attrValues config.facts.machine.displays;
|
||||
primaryDisplays = lib.filter (display: display.primary) displayValues;
|
||||
primaryDisplay = if primaryDisplays == [ ] then null else builtins.head primaryDisplays;
|
||||
primaryDisplay = lib.findFirst (display: display.primary) null (
|
||||
builtins.attrValues config.facts.machine.displays
|
||||
);
|
||||
interfaceResolution =
|
||||
if primaryDisplay != null && primaryDisplay.width != null then
|
||||
"${toString primaryDisplay.width}x${toString primaryDisplay.height}"
|
||||
@@ -24,6 +24,7 @@ in
|
||||
limine = {
|
||||
enable = true;
|
||||
maxGenerations = 10;
|
||||
resolution = interfaceResolution;
|
||||
|
||||
style = {
|
||||
backdrop = hex palette.secondaryBackground;
|
||||
@@ -64,13 +65,9 @@ in
|
||||
interface = {
|
||||
branding = config.networking.hostName;
|
||||
brandingColor = hex palette.accents.blue;
|
||||
helpHidden = false;
|
||||
resolution = interfaceResolution;
|
||||
};
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs (interfaceResolution != null) {
|
||||
resolution = interfaceResolution;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user