Done
This commit is contained in:
@@ -42,10 +42,6 @@
|
|||||||
offlineimap #emailing
|
offlineimap #emailing
|
||||||
liberation_ttf #fonts
|
liberation_ttf #fonts
|
||||||
graphviz #graphing
|
graphviz #graphing
|
||||||
(python3.withPackages (python-pkgs: [
|
|
||||||
python-pkgs.graphviz
|
|
||||||
python-pkgs.pygments
|
|
||||||
]))
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|||||||
@@ -11,23 +11,14 @@
|
|||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./emacs
|
./emacs
|
||||||
|
./python
|
||||||
./gpg-agent
|
./gpg-agent
|
||||||
./name.nix
|
./name.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options.azos.python.pkgs = lib.mkOption{
|
|
||||||
default = [];
|
|
||||||
type = lib.types.list;
|
|
||||||
description = "List of packages for python.";
|
|
||||||
};
|
|
||||||
|
|
||||||
options.azos.name = lib.mkOption{
|
options.azos.name = lib.mkOption{
|
||||||
default = "YOUR NAME HERE";
|
default = "YOUR NAME HERE";
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "Your full name.";
|
description = "Your full name.";
|
||||||
};
|
};
|
||||||
|
|
||||||
# config = lib.mkIf cfg.enable {
|
|
||||||
# # Global suite options
|
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#+title: Aner's Emacs Base Configuration
|
#+title: Aner's Emacs Base Configuration
|
||||||
#+property: header-args :results silent
|
#+property: header-args :results silent
|
||||||
|
|
||||||
* Bootstrapping
|
* Base setup
|
||||||
|
** Bootstrapping
|
||||||
|
|
||||||
Taken from [[https://stackoverflow.com/questions/151945/how-do-i-control-how-emacs-makes-backup-files][this post on StackOverflow]]
|
Taken from [[https://stackoverflow.com/questions/151945/how-do-i-control-how-emacs-makes-backup-files][this post on StackOverflow]]
|
||||||
|
|
||||||
@@ -34,7 +35,7 @@ This just makes sure the code is loaded early on for later use.
|
|||||||
(require 'cl-lib)
|
(require 'cl-lib)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Keymap setup
|
** Keymap setup
|
||||||
|
|
||||||
In this section global keybindings are defined using a global minor mode.
|
In this section global keybindings are defined using a global minor mode.
|
||||||
|
|
||||||
@@ -115,7 +116,7 @@ This keymap will be referenced many times during this document at relevant point
|
|||||||
|
|
||||||
Keymaps are included with relevant sections.
|
Keymaps are included with relevant sections.
|
||||||
|
|
||||||
* EVIL mode
|
** EVIL mode
|
||||||
|
|
||||||
Using evil mode.
|
Using evil mode.
|
||||||
|
|
||||||
@@ -165,7 +166,7 @@ Setting theme colors
|
|||||||
(defvar azos/evil-color-operate "sandy brown")
|
(defvar azos/evil-color-operate "sandy brown")
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Undo tree
|
** Undo tree
|
||||||
|
|
||||||
Loading =undo-tree= for undo/redo functionality with evil.
|
Loading =undo-tree= for undo/redo functionality with evil.
|
||||||
|
|
||||||
@@ -182,7 +183,7 @@ Redo taken from https://github.com/syl20bnr/spacemacs/issues/14036
|
|||||||
)
|
)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* IVY
|
** IVY
|
||||||
|
|
||||||
Enabling IVY. Taken from [[https://github.com/abo-abo/swiper][their website]].
|
Enabling IVY. Taken from [[https://github.com/abo-abo/swiper][their website]].
|
||||||
|
|
||||||
@@ -235,7 +236,7 @@ Setting up keymaps
|
|||||||
(evil-collection-ivy-setup)
|
(evil-collection-ivy-setup)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Projectile
|
** Projectile
|
||||||
|
|
||||||
Startup up projectile.
|
Startup up projectile.
|
||||||
|
|
||||||
@@ -287,7 +288,7 @@ Ensuring tramp is loaded, and loading counsel-tramp for easy tramping.
|
|||||||
(use-package counsel-tramp)
|
(use-package counsel-tramp)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Assorted utility functions
|
** Assorted utility functions
|
||||||
|
|
||||||
Defining a function to copy filename.
|
Defining a function to copy filename.
|
||||||
|
|
||||||
@@ -317,7 +318,7 @@ Need to define this here so that other parts of code have access to it
|
|||||||
matches)))
|
matches)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Tie it up
|
** Tie it up
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(provide 'azos-emacs-base)
|
(provide 'azos-emacs-base)
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
{ lib, config, pkgs, azos-utils, ... }:
|
||||||
|
let
|
||||||
|
isEnabled =
|
||||||
|
config.azos.python.enable && config.azos.suites.base.enable;
|
||||||
|
pythonpkgs = config.azos.python.pythonpkg.pkgs;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.azos.python.enable = (azos-utils.mkFeatureEnableOption {});
|
||||||
|
|
||||||
|
options.azos.python.pythonpkg = lib.mkOption{
|
||||||
|
type = lib.types.package;
|
||||||
|
default = pkgs.python3;
|
||||||
|
};
|
||||||
|
|
||||||
|
options.azos.python.pkgs = lib.mkOption{
|
||||||
|
default = [];
|
||||||
|
description = "List of packages for python.";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf isEnabled {
|
||||||
|
azos.python.pkgs = with pythonpkgs; [
|
||||||
|
graphviz
|
||||||
|
pygments
|
||||||
|
];
|
||||||
|
|
||||||
|
home.packages = with pkgs;
|
||||||
|
[(config.azos.python.pythonpkg.withPackages (python-pkgs: config.azos.python.pkgs))
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user