chore: Move overlay to OS config
This commit is contained in:
parent
0d0ea496f1
commit
dd7433d5b7
3 changed files with 16 additions and 6 deletions
|
|
@ -86,7 +86,9 @@
|
||||||
{
|
{
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
overlays = with inputs; [ emacs.overlay ];
|
overlays = with inputs; [
|
||||||
|
emacs.overlay
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
@ -95,6 +97,9 @@
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.extraSpecialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
{ home-manager.users.alex = ./hosts/thrall/alex.nix; }
|
{ home-manager.users.alex = ./hosts/thrall/alex.nix; }
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
{ inputs, config, lib, pkgs, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
emacsclient-wrapper = pkgs.writeShellScriptBin "e" ''
|
emacsclient-wrapper = pkgs.writeShellScriptBin "e" ''
|
||||||
exec ${pkgs.emacs}/bin/emacsclient --reuse-frame --no-wait "$@"
|
exec ${pkgs.emacs}/bin/emacsclient --reuse-frame --no-wait "$@"
|
||||||
'';
|
'';
|
||||||
in {
|
in
|
||||||
nixpkgs.overlays = [ inputs.emacs.overlay ];
|
{
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
sessionPath = [ "$HOME/.emacs.d/bin" ];
|
sessionPath = [ "$HOME/.emacs.d/bin" ];
|
||||||
packages = [ emacsclient-wrapper ];
|
packages = [ emacsclient-wrapper ];
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,13 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(
|
(
|
||||||
{ ... }:
|
{ inputs, lib, ... }:
|
||||||
{
|
{
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
overlays = with inputs; [
|
||||||
|
emacs.overlay
|
||||||
|
];
|
||||||
};
|
};
|
||||||
home-manager.extraSpecialArgs = { inherit stable; };
|
home-manager.extraSpecialArgs = { inherit stable; };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue