Initial attempt at configuring use-package with nix
This commit is contained in:
Generated
+22
-1
@@ -83,7 +83,28 @@
|
|||||||
"claude-code": "claude-code",
|
"claude-code": "claude-code",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nix-index-database": "nix-index-database",
|
"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": {
|
"systems": {
|
||||||
|
|||||||
@@ -22,6 +22,11 @@
|
|||||||
url = "github:nix-community/nix-index-database";
|
url = "github:nix-community/nix-index-database";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rycee = {
|
||||||
|
url = "sourcehut:~rycee/nur-expressions";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
@@ -30,6 +35,7 @@
|
|||||||
home-manager,
|
home-manager,
|
||||||
claude-code,
|
claude-code,
|
||||||
nix-index-database,
|
nix-index-database,
|
||||||
|
rycee,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -75,6 +81,7 @@
|
|||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
nix-index-database.homeModules.default
|
nix-index-database.homeModules.default
|
||||||
|
rycee.hmModules.emacs-init
|
||||||
"${modules}"
|
"${modules}"
|
||||||
]
|
]
|
||||||
++ [
|
++ [
|
||||||
|
|||||||
@@ -885,6 +885,7 @@ helps with a few places where nix's string interpolation was causing problems.
|
|||||||
(mkIf cfg.desktop.enable {
|
(mkIf cfg.desktop.enable {
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
init.enable = true;
|
||||||
extraConfig = builtins.readFile ./emacs.el;
|
extraConfig = builtins.readFile ./emacs.el;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
@@ -2281,20 +2282,16 @@ And finally, we want to hide the cursor when presenting.
|
|||||||
** Terminal
|
** Terminal
|
||||||
#+BEGIN_SRC nix
|
#+BEGIN_SRC nix
|
||||||
{
|
{
|
||||||
programs.emacs = {
|
programs.emacs.init.usePackage = {
|
||||||
extraPackages = epkgs: with epkgs; [
|
eat = {
|
||||||
eat
|
enable = true;
|
||||||
];
|
command = ["eat"];
|
||||||
|
hook = ["(eshell-load . eat-eshell-mode)"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+BEGIN_SRC elisp
|
|
||||||
(use-package eat
|
|
||||||
:commands (eat)
|
|
||||||
:hook (eshell-load . eat-eshell-mode))
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** Ledger
|
** Ledger
|
||||||
#+BEGIN_SRC nix
|
#+BEGIN_SRC nix
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user