add theme file
This commit is contained in:
parent
5af33d365d
commit
3fc09b571b
3 changed files with 16 additions and 4 deletions
|
|
@ -25,6 +25,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
wrappers.flakeModules.wrappers
|
wrappers.flakeModules.wrappers
|
||||||
./modules/programs/emacs/emacs.nix
|
./modules/programs/emacs/emacs.nix
|
||||||
|
./modules/theme.nix
|
||||||
];
|
];
|
||||||
flake.nixosConfigurations.nerv = inputs.nixpkgs.lib.nixosSystem {
|
flake.nixosConfigurations.nerv = inputs.nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
{ inputs, lib, config, ... }: {
|
{ inputs, lib, config, ... }: {
|
||||||
flake.wrappers.emacs = { pkgs, wlib, lib, config, ... }: {
|
flake.wrappers.emacs = { pkgs, wlib, config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
wlib.wrapperModules.emacs
|
wlib.wrapperModules.emacs
|
||||||
inputs.base16.nixosModule
|
|
||||||
];
|
];
|
||||||
emacsPackages =
|
emacsPackages =
|
||||||
epkgs: with epkgs.melpaPackages; [
|
epkgs: with epkgs.melpaPackages; [
|
||||||
|
|
@ -11,7 +12,8 @@
|
||||||
qml-mode
|
qml-mode
|
||||||
lua-mode
|
lua-mode
|
||||||
elcord
|
elcord
|
||||||
nix-mode
|
nix-mode
|
||||||
|
base16-theme
|
||||||
];
|
];
|
||||||
|
|
||||||
runtimePkgs = with pkgs; [
|
runtimePkgs = with pkgs; [
|
||||||
|
|
@ -23,7 +25,7 @@
|
||||||
configFile = ''
|
configFile = ''
|
||||||
;;; -*- lexical-binding: t; -*-
|
;;; -*- lexical-binding: t; -*-
|
||||||
(setq make-backup-files nil)
|
(setq make-backup-files nil)
|
||||||
(load-theme "${base16.lib.scheme-slug}" t
|
(load-theme "base16-${config.theme.scheme}" t)
|
||||||
(use-package
|
(use-package
|
||||||
corfu
|
corfu
|
||||||
:init
|
:init
|
||||||
|
|
|
||||||
9
modules/theme.nix
Normal file
9
modules/theme.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ inputs, lib }: {
|
||||||
|
options.scheme = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "${inputs.tt-schemes}/base16/oxocarbon-dark.yaml";
|
||||||
|
example = "${inputs.tt-schemes}/base16/catppuccin-mocha.yaml";
|
||||||
|
description = "set the used theme";
|
||||||
|
};
|
||||||
|
config.scheme = "${inputs.tt-schemes}/base16/oxocarbon-dark.yaml";
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue