add emacs
This commit is contained in:
parent
9a1e9e0c31
commit
d747904572
3 changed files with 26 additions and 0 deletions
|
|
@ -13,6 +13,9 @@
|
||||||
cos.docker.enable = true;
|
cos.docker.enable = true;
|
||||||
|
|
||||||
cos.remoteBuild.enable = false;
|
cos.remoteBuild.enable = false;
|
||||||
|
|
||||||
|
cos.emacs.enable = true;
|
||||||
|
cos.emacs.org-directory = "~/Nextcloud/Emacs/org/";
|
||||||
|
|
||||||
cos.gnupg.enable = true;
|
cos.gnupg.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
1
cos.nix
1
cos.nix
|
|
@ -8,6 +8,7 @@
|
||||||
./remoteBuild.nix
|
./remoteBuild.nix
|
||||||
./gnupg.nix
|
./gnupg.nix
|
||||||
./bikeability.nix
|
./bikeability.nix
|
||||||
|
./emacs.nix
|
||||||
"${inputs.home-manager}/nixos"
|
"${inputs.home-manager}/nixos"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
22
emacs.nix
Normal file
22
emacs.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
{ lib, config, ... }:
|
||||||
|
let cfg = config.cos.emacs; in
|
||||||
|
{
|
||||||
|
options.cos.emacs = {
|
||||||
|
enable = lib.mkEnableOption "emacs";
|
||||||
|
org-directory = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "~/org";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home-manager.users.${config.cos.username} = {pkgs, ...}: {
|
||||||
|
programs.emacs = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
(setq package-archives nil)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue