Initial attempt at configuring use-package with nix

This commit is contained in:
Joe Frikker
2026-09-17 14:06:42 -04:00
parent 5bda0b3ad6
commit 28e58c72de
3 changed files with 36 additions and 11 deletions
Generated
+22 -1
View File
@@ -83,7 +83,28 @@
"claude-code": "claude-code",
"home-manager": "home-manager",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"rycee": "rycee"
}
},
"rycee": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1788678358,
"narHash": "sha256-xFu9deElkBd81tRYo2yRSZQ40LDXMnVd/gO1/uELxhI=",
"owner": "~rycee",
"repo": "nur-expressions",
"rev": "2554c0e25259c6ab3e71dac5177f8d38f76a6e1c",
"type": "sourcehut"
},
"original": {
"owner": "~rycee",
"repo": "nur-expressions",
"type": "sourcehut"
}
},
"systems": {
+7
View File
@@ -22,6 +22,11 @@
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
rycee = {
url = "sourcehut:~rycee/nur-expressions";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
@@ -30,6 +35,7 @@
home-manager,
claude-code,
nix-index-database,
rycee,
...
}:
let
@@ -75,6 +81,7 @@
modules = [
nix-index-database.homeModules.default
rycee.hmModules.emacs-init
"${modules}"
]
++ [
+7 -10
View File
@@ -885,6 +885,7 @@ helps with a few places where nix's string interpolation was causing problems.
(mkIf cfg.desktop.enable {
programs.emacs = {
enable = true;
init.enable = true;
extraConfig = builtins.readFile ./emacs.el;
};
})
@@ -2281,20 +2282,16 @@ And finally, we want to hide the cursor when presenting.
** Terminal
#+BEGIN_SRC nix
{
programs.emacs = {
extraPackages = epkgs: with epkgs; [
eat
];
programs.emacs.init.usePackage = {
eat = {
enable = true;
command = ["eat"];
hook = ["(eshell-load . eat-eshell-mode)"];
};
};
}
#+END_SRC
#+BEGIN_SRC elisp
(use-package eat
:commands (eat)
:hook (eshell-load . eat-eshell-mode))
#+END_SRC
** Ledger
#+BEGIN_SRC nix
{