Skip to content

Instantly share code, notes, and snippets.

View Jomik's full-sized avatar

Jonas Holst Damtoft Jomik

View GitHub Profile
{ config, lib, pkgs,... }:
with lib;
let
cfg = config.programs.fish;
fileType = import ../../lib/file-type.nix { inherit lib pkgs; storePrefix = "fish_function"; };
mapAttrNames = f: set:
listToAttrs (map (attr: { name = f attr; value = set.${attr}; }) (attrNames set));
in {
{
"background_opacity": 1,
"colors": {
"bright": {
"black": "0x666666",
"blue": "0x7aa6da",
"cyan": "0x54ced6",
"green": "0x9ec400",
"magenta": "0xb77ee0",
"red": "0xff3334",
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.services.emacs;
package = config.programs.emacs.finalPackage;
in {
options.services.emacs.enable = mkEnableOption "Emacs";
config = mkIf cfg.enable {
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.programs.emacs;
initEntry = types.submodule {
options = {
data = mkOption {
type = types.lines;
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.programs.emacs;
initEntry = types.submodule {
options = {
data = mkOption {
type = types.lines;
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.emacs;
themeNames = map (removeSuffix "-theme") (filter (hasSuffix "-theme") (attrNames pkgs.emacsPackagesNg));
in {
options.programs.emacs.theme = mkOption {
type = types.enum themeNames;
default = null;
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.emacs;
in {
options.programs.emacs = {
evil = mkEnableOption "Should we be evil?";
leader = mkOption {
type = types.strMatching ".";
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.emacs;
in {
options.programs.emacs = {
evil = mkEnableOption "Should we be evil?";
leader = mkOption {
type = types.strMatching ".";
error: while evaluating the attribute 'activationPackage' at /nix/store/qhaylxq4ym047d0j3s9hxn1i7dbah2di-master.tar.gz/modules/default.nix:43:3:
while evaluating 'showWarnings' at /nix/store/qhaylxq4ym047d0j3s9hxn1i7dbah2di-master.tar.gz/modules/default.nix:16:18, called from /nix/store/qhaylxq4ym047d0j3s9hxn1i7dbah2di-master.tar.gz/modules/default.nix:28:12:
while evaluating 'foldr' at /nix/store/hy6xy3w8p628ai84kph1grj49m4aznkp-nixos-18.09.1806.928ff62213b/nixos/lib/lists.nix:39:20, called from /nix/store/qhaylxq4ym047d0j3s9hxn1i7dbah2di-master.tar.gz/modules/default.nix:20:7:
while evaluating 'fold'' at /nix/store/hy6xy3w8p628ai84kph1grj49m4aznkp-nixos-18.09.1806.928ff62213b/nixos/lib/lists.nix:42:15, called from /nix/store/hy6xy3w8p628ai84kph1grj49m4aznkp-nixos-18.09.1806.928ff62213b/nixos/lib/lists.nix:46:8:
while evaluating 'collectFailed' at /nix/store/qhaylxq4ym047d0j3s9hxn1i7dbah2di-master.tar.gz/modules/default.nix:13:19, called from /nix/store/qhaylxq4ym047d0j3s9hxn1i7dbah2di-master.tar.gz/modules/
error: while evaluating the attribute 'buildCommand' of the derivation 'home-manager-generation' at /nix/store/hy6xy3w8p628ai84kph1grj49m4aznkp-nixos-18.09.1806.928ff62213b/nixos/pkgs/stdenv/generic/make-derivation.nix:177:11:
while evaluating the attribute 'text' of the derivation 'activation-script' at /nix/store/hy6xy3w8p628ai84kph1grj49m4aznkp-nixos-18.09.1806.928ff62213b/nixos/pkgs/stdenv/generic/make-derivation.nix:177:11:
while evaluating 'mkCmd' at /nix/store/qhaylxq4ym047d0j3s9hxn1i7dbah2di-master.tar.gz/modules/home-environment.nix:316:17, called from undefined position:
while evaluating the attribute 'data' at /nix/store/qhaylxq4ym047d0j3s9hxn1i7dbah2di-master.tar.gz/modules/lib/dag.nix:96:41:
while evaluating the attribute 'data' at /nix/store/qhaylxq4ym047d0j3s9hxn1i7dbah2di-master.tar.gz/modules/lib/dag.nix:89:11:
while evaluating the attribute 'data' at /nix/store/qhaylxq4ym047d0j3s9hxn1i7dbah2di-master.tar.gz/modules/lib/dag.nix:115:12:
while evaluating the attribute 'passAsFile' of the deriva