parent
075f5d6426
commit
5fcd164ef3
|
@ -1,21 +1,28 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let e = pkgs.writeTextFile {
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
e = pkgs.writeTextFile {
|
||||||
name = "cadey-emacs.desktop";
|
name = "cadey-emacs.desktop";
|
||||||
destination = "/share/applications/cadey-emacs.desktop";
|
destination = "/share/applications/cadey-emacs.desktop";
|
||||||
text = ''
|
text = ''
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Exec=emacsclient -nc
|
Exec=emacsclient -nc
|
||||||
Icon=emacs
|
Icon=emacs
|
||||||
Name[en_US]=Emacs Client
|
Name[en_US]=Emacs Client
|
||||||
Name=Emacs Client
|
Name=Emacs Client
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
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 ];
|
home.packages = with pkgs; [ anonymousPro e sqlite-interactive graphviz ];
|
||||||
|
|
||||||
programs.emacs.enable = true;
|
programs.emacs.enable = true;
|
||||||
|
@ -43,4 +50,5 @@ in
|
||||||
systemctl --user restart emacs
|
systemctl --user restart emacs
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,4 +48,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.tailscaled.path = with pkgs; [ mosh getent shadow ];
|
systemd.services.tailscaled.path = with pkgs; [ mosh getent shadow ];
|
||||||
|
|
||||||
|
home-manager.users.cadey = { ... }: {
|
||||||
|
within.spacemacs.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,4 +68,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
within.users.enableSystem = true;
|
within.users.enableSystem = true;
|
||||||
|
|
||||||
|
home-manager.users.cadey = { ... }: {
|
||||||
|
within.emacs.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue