DO
Size: a a a
DO
DO
АБ
nixpkgs.overlays = import ./overlays;
DO
АБ
DO
АБ
DO
АБ
/root
не кладиАБ
nix.nixPath = config.nix.nixPath.default ++ [ "nixpkgs-overlays=/etc/nixos/overlays" ];
АБ
default.nix
нужно написать что-то вроде[
(self: super: { ....... ; })
]
DO
DO
АБ
DO
self: super:
with super.lib;
let
# Using the nixos plumbing that's used to evaluate the config...
eval = import <nixpkgs/nixos/lib/eval-config.nix>;
# Evaluate the config,
paths = (eval { modules = [ (import <nixos-config>) ]; })
# then get the `nixpkgs.overlays` option.
.config.nixpkgs.overlays;
in
foldl' (flip extends) (_: super) paths self
SM
emacsWithPackagesFromUsePackage
нужно, чтобы конфиг был в одном файле? Или можно подсунуть в качестве файла конфига.emacs.d
?АБ
self: super:
with super.lib;
let
# Using the nixos plumbing that's used to evaluate the config...
eval = import <nixpkgs/nixos/lib/eval-config.nix>;
# Evaluate the config,
paths = (eval { modules = [ (import <nixos-config>) ]; })
# then get the `nixpkgs.overlays` option.
.config.nixpkgs.overlays;
in
foldl' (flip extends) (_: super) paths self
nixpkgs.overlays
в твоем конфиге