fix spacemacs

Signed-off-by: Xe <me@christine.website>
This commit is contained in:
Cadey Ratio 2023-01-24 22:00:24 -05:00
parent 075f5d6426
commit 5fcd164ef3
3 changed files with 53 additions and 37 deletions

View File

@ -1,21 +1,28 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
let e = pkgs.writeTextFile {
with lib;
let
e = pkgs.writeTextFile {
name = "cadey-emacs.desktop";
destination = "/share/applications/cadey-emacs.desktop";
text = ''
[Desktop Entry]
Exec=emacsclient -nc
Icon=emacs
Name[en_US]=Emacs Client
Name=Emacs Client
StartupNotify=true
Terminal=false
Type=Application
[Desktop Entry]
Exec=emacsclient -nc
Icon=emacs
Name[en_US]=Emacs Client
Name=Emacs Client
StartupNotify=true
Terminal=false
Type=Application
'';
};
in
{
cfg = config.within.spacemacs;
in {
options.within.spacemacs.enable = mkEnableOption "emacs with spacemacs";
config = mkIf cfg.enable {
home.packages = with pkgs; [ anonymousPro e sqlite-interactive graphviz ];
programs.emacs.enable = true;
@ -43,4 +50,5 @@ in
systemctl --user restart emacs
fi
'';
};
}

View File

@ -48,4 +48,8 @@
};
systemd.services.tailscaled.path = with pkgs; [ mosh getent shadow ];
home-manager.users.cadey = { ... }: {
within.spacemacs.enable = true;
};
}

View File

@ -68,4 +68,8 @@
};
within.users.enableSystem = true;
home-manager.users.cadey = { ... }: {
within.emacs.enable = true;
};
}