refactor(nixos): Use new helpers; formatting
Some checks are pending
CI / Format Nix files (push) Waiting to run
CI / Test Modules (push) Waiting to run
CI / Validate sources (push) Waiting to run
Release / Make release (push) Waiting to run
Release / Publish to Flake registries (push) Blocked by required conditions
Build & deploy website / Build site (push) Waiting to run
Build & deploy website / Deploy website (push) Blocked by required conditions

This commit is contained in:
punkfairie 2024-11-04 20:56:04 -08:00
parent ebc1dbcd69
commit f26b1be83f
Signed by: punkfairie
GPG key ID: 01823C057725C266
4 changed files with 24 additions and 15 deletions

View file

@ -2,14 +2,16 @@
config,
lib,
...
}: let
}:
let
inherit (config.rose-pine) sources;
cfg = config.console.rose-pine;
enable = cfg.enable && config.console.enable;
palette = (lib.importJSON "${sources.rose-pine-palette}/palette.json").${cfg.flavor}.colors;
in {
in
{
options.console.rose-pine = lib.rp.mkRosePineOpt { name = "console"; };
config.console.colors = lib.mkIf enable (

View file

@ -1,4 +1,5 @@
{lib, ...}: {
{ lib, ... }:
{
config = {
assertions = [ (lib.rp.assertMinimumVersion "24.05") ];
};
@ -18,7 +19,8 @@
description = "Global Rosé Pine accent";
};
sources = let
sources =
let
defaultSources = import ../../.sources;
in
lib.mkOption {

View file

@ -2,12 +2,14 @@
config,
lib,
...
}: let
}:
let
inherit (config.rose-pine) sources;
cfg = config.boot.loader.grub.rose-pine;
enable = cfg.enable && config.boot.loader.grub.enable;
in {
in
{
options.boot.loader.grub.rose-pine = lib.rp.mkRosePineOpt { name = "grub"; };
config.boot.loader.grub = lib.mkIf enable {

View file

@ -3,11 +3,14 @@
config,
pkgs,
...
}: let
}:
let
inherit (config.rose-pine) sources;
cfg = config.services.displayManager.sddm.rose-pine;
enable = cfg.enable && config.services.displayManager.sddm.enable;
in {
in
{
options.services.displayManager.sddm.rose-pine = lib.rp.mkRosePineOpt { name = "sddm"; };
config = lib.mkIf enable {