add emacs
This commit is contained in:
parent
9a1e9e0c31
commit
d747904572
3 changed files with 26 additions and 0 deletions
|
|
@ -14,6 +14,9 @@
|
|||
|
||||
cos.remoteBuild.enable = false;
|
||||
|
||||
cos.emacs.enable = true;
|
||||
cos.emacs.org-directory = "~/Nextcloud/Emacs/org/";
|
||||
|
||||
cos.gnupg.enable = true;
|
||||
|
||||
boot = {
|
||||
|
|
|
|||
1
cos.nix
1
cos.nix
|
|
@ -8,6 +8,7 @@
|
|||
./remoteBuild.nix
|
||||
./gnupg.nix
|
||||
./bikeability.nix
|
||||
./emacs.nix
|
||||
"${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