Install spacemacs

This commit is contained in:
Kiana Sheibani 2022-04-10 16:15:13 -04:00
parent 19b450eca9
commit 01762d4283
5 changed files with 34 additions and 2 deletions

View file

@ -25,6 +25,7 @@ in {
slurp slurp
imv imv
emacs
direnv direnv
nix-direnv-with-flakes nix-direnv-with-flakes
]; ];

View file

@ -3,7 +3,7 @@
home.username = username; home.username = username;
home.homeDirectory = "/home/" + username; home.homeDirectory = "/home/" + username;
imports = [ ./shell ./wayland ]; imports = [ ./shell ./wayland ./spacemacs.nix ];
xdg.enable = true; xdg.enable = true;
xdg.userDirs.enable = true; xdg.userDirs.enable = true;

View file

@ -0,0 +1,10 @@
{ config, pkgs, spacemacs, ... }:
{
# Set up spacemacs using local emacs config
home.file.".emacs.d" = {
recursive = true;
source = spacemacs;
};
}

View file

@ -71,7 +71,25 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "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"
} }
} }
}, },

View file

@ -9,6 +9,9 @@ inputs = rec {
home-manager.url = "github:nix-community/home-manager/master"; home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
spacemacs.url = "github:syl20bnr/spacemacs/develop";
spacemacs.flake = false;
}; };
outputs = { self, outputs = { self,
nixpkgs, nixpkgs,