mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-17 13:33:37 -05:00
Add check for home-manager module
This commit is contained in:
21
checks.nix
21
checks.nix
@@ -9,8 +9,29 @@ let
|
||||
# this means we need to import the overlay in a hack-ish way
|
||||
overlays = [ (import emacs-overlay) ];
|
||||
};
|
||||
home-manager = pkgs.fetchFromGitHub {
|
||||
owner = "nix-community";
|
||||
repo = "home-manager";
|
||||
rev = "8160b3b45b8457d58d2b3af2aeb2eb6f47042e0f";
|
||||
sha256 = "sha256-/aN3p2LaRNVXf7w92GWgXq9H5f23YRQPOvsm3BrBqzU=";
|
||||
};
|
||||
in
|
||||
{
|
||||
home-manager-module = (import "${home-manager}/modules" {
|
||||
inherit pkgs;
|
||||
configuration = {
|
||||
imports = [ self.outputs.hmModule ];
|
||||
home = {
|
||||
username = "nix-doom-emacs";
|
||||
homeDirectory = "/tmp";
|
||||
stateVersion = "22.11";
|
||||
};
|
||||
programs.doom-emacs = {
|
||||
enable = true;
|
||||
doomPrivateDir = ./test/doom.d;
|
||||
};
|
||||
};
|
||||
}).activationPackage;
|
||||
init-example-el = self.outputs.package.${system} {
|
||||
doomPrivateDir = ./test/doom.d;
|
||||
dependencyOverrides = inputs;
|
||||
|
Reference in New Issue
Block a user