From 0fd04907145dde329c193c463836c6631e8523b6 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 22 Aug 2023 16:35:21 -0600 Subject: [PATCH] [NixOS] Enable emacs service in home manager again --- nixos/configuration.nix | 2 ++ nixos/emacs.nix | 9 +++++++++ nixos/imalison.nix | 7 +++++++ 3 files changed, 18 insertions(+) create mode 100644 nixos/emacs.nix create mode 100644 nixos/imalison.nix diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 4d9904e5..198fa725 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -11,7 +11,9 @@ ./extra.nix ./games.nix ./git-sync.nix + ./imalison.nix ./internet-computer.nix + ./kat.nix ./keybase.nix ./nix.nix ./nixified.ai.nix diff --git a/nixos/emacs.nix b/nixos/emacs.nix new file mode 100644 index 00000000..7ed72753 --- /dev/null +++ b/nixos/emacs.nix @@ -0,0 +1,9 @@ +{ pkgs, config, specialArgs, ... }: +{ + services.emacs = { + enable = true; + defaultEditor = true; + startWithUserSession = "graphical"; + socketActivation.enable = true; + }; +} diff --git a/nixos/imalison.nix b/nixos/imalison.nix new file mode 100644 index 00000000..5fc1d152 --- /dev/null +++ b/nixos/imalison.nix @@ -0,0 +1,7 @@ +{ ... }: { + home-manager.users.imalison = { + imports = [ + ./emacs.nix + ]; + }; +}