attempt 1
This commit is contained in:
parent
fb6f66ebba
commit
956096ba33
3 changed files with 35 additions and 8 deletions
|
@ -5,20 +5,24 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
|
trivialBuild,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.modules.dev.editors.emacs;
|
cfg = config.modules.dev.editors.emacs;
|
||||||
|
|
||||||
myEmacs = pkgs.emacsWithPackagesFromUsePackage {
|
myEmacs = pkgs.emacsWithPackagesFromUsePackage {
|
||||||
config = ../../../../config/emacs/emacs.org;
|
#config = ../../../../config/emacs/emacs.org;
|
||||||
|
config = ../../../../config/emacs/init.el;
|
||||||
package = cfg.package;
|
package = cfg.package;
|
||||||
alwaysEnsure = true;
|
alwaysEnsure = true;
|
||||||
alwaysTangle = true;
|
#alwaysTangle = true;
|
||||||
|
defaultInitFile = true;
|
||||||
extraEmacsPackages = epkgs: [
|
extraEmacsPackages = epkgs: [
|
||||||
epkgs.use-package
|
epkgs.use-package
|
||||||
epkgs.mu4e
|
epkgs.mu4e
|
||||||
# TODO make this check if EXWM is enabled or not
|
# TODO make this check if EXWM is enabled or not
|
||||||
|
sako.sakomacsModules
|
||||||
epkgs.exwm
|
epkgs.exwm
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -72,12 +76,13 @@ in {
|
||||||
|
|
||||||
home-manager.users.sako = {lib, ...}: {
|
home-manager.users.sako = {lib, ...}: {
|
||||||
home.file = {
|
home.file = {
|
||||||
".emacs.d/init.el".source = pkgs.runCommand "init.el" {} ''
|
# ".emacs.d/init.el".source = pkgs.runCommand "init.el" {} ''
|
||||||
cp ${../../../../config/emacs/emacs.org} emacs.org
|
# cp ${../../../../config/emacs/emacs.org} emacs.org
|
||||||
${pkgs.emacs}/bin/emacs -Q --batch ./emacs.org -f org-babel-tangle
|
# ${pkgs.emacs}/bin/emacs -Q --batch ./emacs.org -f org-babel-tangle
|
||||||
mv init.el $out
|
# mv init.el $out
|
||||||
'';
|
# '';
|
||||||
".emacs.d/dashboard.png".source = ../../../../config/emacs/dashboard.png;
|
#".emacs.d/dashboard.png".source = ../../../../config/emacs/dashboard.png;
|
||||||
|
".emacs.d/modules".source = ../../../../config/emacs/modules;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -4,4 +4,5 @@
|
||||||
# example = pkgs.callPackage ./example { };
|
# example = pkgs.callPackage ./example { };
|
||||||
sako.davinci-resolve = pkgs.callPackage ./davinci-resolve.nix {};
|
sako.davinci-resolve = pkgs.callPackage ./davinci-resolve.nix {};
|
||||||
nullpomino = pkgs.callPackage ./nullpomino.nix {};
|
nullpomino = pkgs.callPackage ./nullpomino.nix {};
|
||||||
|
sako.sakomacsModules = pkgs.callPackage ./sakomacsModules.nix {};
|
||||||
}
|
}
|
||||||
|
|
21
packages/sakomacsModules.nix
Normal file
21
packages/sakomacsModules.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
trivialBuild
|
||||||
|
, lib
|
||||||
|
}:
|
||||||
|
|
||||||
|
trivialBuild {
|
||||||
|
pname = "sakomodules";
|
||||||
|
version = "lol";
|
||||||
|
src = ../../../../config/emacs/modules;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
cp -r $src $LISPDIR
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "lol";
|
||||||
|
license = lib.licenses.gpl3;
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue