Reloacted packages, compiles, emacs deps work.

This commit is contained in:
2024-09-07 01:11:53 +03:00
parent 5971d9534e
commit 85ecb7b4a0
10 changed files with 72 additions and 43 deletions
+3 -3
View File
@@ -30,10 +30,10 @@
inherit (self) outputs;
# Supported systems for your flake packages, shell, etc.
systems = [
# "aarch64-linux"
"aarch64-linux"
"x86_64-linux"
# "aarch64-darwin"
# "x86_64-darwin"
"aarch64-darwin"
"x86_64-darwin"
];
# This is a function that generates an attribute by calling a function you
# pass to it, with each system as an argument
+10 -10
View File
@@ -29,8 +29,8 @@
programs.home-manager.enable = true;
azos.suites.base.enable = true;
# azos.suites.editor.enable = true;
# azos.suites.dev.enable = true;
azos.suites.editor.enable = true;
azos.suites.dev.enable = true;
azos.name = "Aner Zakobar";
# TODO: Set your username
@@ -39,17 +39,17 @@
homeDirectory = "/home/aner";
};
home.packages = with pkgs; [
# steam
pandoc
offlineimap #emailing
liberation_ttf #fonts
graphviz #graphing
];
# home.packages = with pkgs; [
# # steam
# pandoc
# offlineimap #emailing
# liberation_ttf #fonts
# graphviz #graphing
# ];
# Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "23.05";
home.stateVersion = "24.05";
}
@@ -10,20 +10,7 @@ in
config = lib.mkIf isEnabled {
#Base emacs suite definition
azos.emacs.pkgs = [(emacspkgs.trivialBuild (azos-utils.trivialFromOrg {
pname = localPkgName;
version = "0.1.6";
src = ./el/azos-emacs-dev.org;
packageRequires = with emacspkgs; [
flycheck
cmake-mode
yaml
nix-mode
python
rust-mode
ein
];
}))];
azos.emacs.pkgs = [pkgs.azos.emacs.dev];
azos.emacs.enabledSuites = [localPkgName];
};
@@ -11,15 +11,7 @@ in
config = lib.mkIf isEnabled {
#Base emacs suite definition
azos.emacs.pkgs = [(emacspkgs.trivialBuild (azos-utils.trivialFromOrg {
pname = localPkgName;
version = "0.1.6";
src = ./el/azos-emacs-editor.org;
packageRequires = with emacspkgs; [
graphviz-dot-mode
markdown-mode
];
}))];
azos.emacs.pkgs = [pkgs.azos.emacs.base];
azos.emacs.enabledSuites = [localPkgName];
+2 -1
View File
@@ -1,6 +1,7 @@
{
orgTrivialBuild,
epkgs
epkgs,
pkgs
}:
orgTrivialBuild {
pname = "azos-emacs-base";
+21
View File
@@ -0,0 +1,21 @@
{
orgTrivialBuild,
epkgs,
pkgs
}:
orgTrivialBuild {
pname = "azos-emacs-dev";
version = "0.1.6";
src = ./elisp/azos-emacs-dev.org;
packageRequires = with epkgs; [
flycheck
cmake-mode
yaml
nix-mode
python
rust-mode
ein
pkgs.azos.emacs.base
pkgs.azos.emacs.editor
];
}
+15
View File
@@ -0,0 +1,15 @@
{
orgTrivialBuild,
epkgs,
pkgs
}:
orgTrivialBuild {
pname = "azos-emacs-editor";
version = "0.1.6";
src = ./elisp/azos-emacs-editor.org;
packageRequires = with epkgs; [
graphviz-dot-mode
markdown-mode
pkgs.azos.emacs.base
];
}
+4 -2
View File
@@ -35,8 +35,10 @@ let
esac
'';
}));
localEmacsPkg = (src: pkgs.callPackage src { orgTrivialBuild = orgTrivialBuild; epkgs = epkgs; pkgs = pkgs; });
in
{
azos.emacs.base = (pkgs.callPackage ./azos-emacs-base.nix
{ orgTrivialBuild = orgTrivialBuild; epkgs = epkgs; });
azos.emacs.base = localEmacsPkg ./azos-emacs-base.nix;
azos.emacs.editor = localEmacsPkg ./azos-emacs-editor.nix;
azos.emacs.dev = localEmacsPkg ./azos-emacs-dev.nix;
}
@@ -95,10 +95,10 @@ Integration with flycheck
;; python-shell-interpreter "python3"
python-shell-completion-native-enable nil)
(defun anerenv/python/set-fringes () "Sets fringes for python"
(defun azos/python/set-fringes () "Sets fringes for python"
(setq left-fringe-width 10 right-fringe-width 0))
(add-hook 'python-mode-hook 'anerenv/python/set-fringes)
(add-hook 'python-mode-hook 'azos/python/set-fringes)
(use-package elpy
:ensure t
@@ -106,7 +106,7 @@ Integration with flycheck
;; :init
;; (elpy-enable))
(define-key anerenv/global-minor-mode/open-keymap
(define-key azos/global-minor-mode/open-keymap
(kbd "r p") 'run-python)
#+end_src
@@ -126,3 +126,9 @@ Integration with flycheck
;; (elpy-mode -1)
(define-key ein:notebook-mode-map (kbd "C-c C-k") nil)))))
#+end_src
* Provide
#+begin_src emacs-lisp
(provide 'azos-emacs-dev)
#+end_src
@@ -58,7 +58,6 @@ Let's add a TOC
(use-package markdown-toc)
#+end_src
* ORG
** PDF exporting
@@ -174,3 +173,9 @@ Comments:
(file-name-sans-extension (buffer-file-name))
(format-time-string "-%Y-%m-%d-%H%M%S") ".docx")))
#+end_src
* Provide
#+begin_src emacs-lisp
(provide 'azos-emacs-editor)
#+end_src