From 01762d4283f82f87e7ed6a6629c54622edbb52df Mon Sep 17 00:00:00 2001 From: kiana-S Date: Sun, 10 Apr 2022 16:15:13 -0400 Subject: [PATCH] Install spacemacs --- common/config/packages.nix | 1 + common/home-manager/default.nix | 2 +- common/home-manager/spacemacs.nix | 10 ++++++++++ flake.lock | 20 +++++++++++++++++++- flake.nix | 3 +++ 5 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 common/home-manager/spacemacs.nix diff --git a/common/config/packages.nix b/common/config/packages.nix index 6310331..430c423 100644 --- a/common/config/packages.nix +++ b/common/config/packages.nix @@ -25,6 +25,7 @@ in { slurp imv + emacs direnv nix-direnv-with-flakes ]; diff --git a/common/home-manager/default.nix b/common/home-manager/default.nix index 63b08f5..88685fc 100644 --- a/common/home-manager/default.nix +++ b/common/home-manager/default.nix @@ -3,7 +3,7 @@ home.username = username; home.homeDirectory = "/home/" + username; - imports = [ ./shell ./wayland ]; + imports = [ ./shell ./wayland ./spacemacs.nix ]; xdg.enable = true; xdg.userDirs.enable = true; diff --git a/common/home-manager/spacemacs.nix b/common/home-manager/spacemacs.nix new file mode 100644 index 0000000..7f6e593 --- /dev/null +++ b/common/home-manager/spacemacs.nix @@ -0,0 +1,10 @@ +{ config, pkgs, spacemacs, ... }: +{ + # Set up spacemacs using local emacs config + + home.file.".emacs.d" = { + recursive = true; + source = spacemacs; + }; +} + diff --git a/flake.lock b/flake.lock index 90a1132..b4cbf82 100644 --- a/flake.lock +++ b/flake.lock @@ -71,7 +71,25 @@ "home-manager": "home-manager", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", - "nur": "nur" + "nur": "nur", + "spacemacs": "spacemacs" + } + }, + "spacemacs": { + "flake": false, + "locked": { + "lastModified": 1649271578, + "narHash": "sha256-xKSjb88YL5fByieMnaLscLRVfyV22fdzxRyHSNj3J9g=", + "owner": "syl20bnr", + "repo": "spacemacs", + "rev": "5c0650282fe09f852ecd4109bf2a6bc9cb5a950b", + "type": "github" + }, + "original": { + "owner": "syl20bnr", + "ref": "develop", + "repo": "spacemacs", + "type": "github" } } }, diff --git a/flake.nix b/flake.nix index ad06de5..8cd7e42 100644 --- a/flake.nix +++ b/flake.nix @@ -9,6 +9,9 @@ inputs = rec { home-manager.url = "github:nix-community/home-manager/master"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; + + spacemacs.url = "github:syl20bnr/spacemacs/develop"; + spacemacs.flake = false; }; outputs = { self, nixpkgs,