samueldr changed the topic of #nixops to: NixOps related talk | logs: https://logs.nix.samueldr.com/nixops/
<mikky> hi, I'm trying to figure out how to use overlays with NixOPS. Got a functional overlay on my control machine (which uses nixos-unstable repo) but when I try to use this overlay in nixops deployment which uses nixos-1909, I get this error: `error: value is a function while a list was expected, at /nix/store/wi3cmk87lhwgp1dvhs1j2p2lmz6al03c-stable-19.09.2036.c49da6435f3/stable/pkgs/top-level/stage.nix:243:8`
<clever> mikky: can you gist your code?
<mikky> which part?
<clever> mikky: the area where you set the overlays
<mikky> the overlay is used as `-I nixpkgs-overlays=/data/overlays/gitea.nix`
<mikky> same file is also in `~/.config/nixpkgs/overlays` and local `nix-env -iA nixos.gitea-latest` works
<mikky> A workaround for nixops which works is `defaults = { ... }: {nixpkgs.overlays= = [ (import /data/overlays/gitea.nix) ]; }`
<mikky> clever: I discovered the workaround just recently (it's your recommendation actually, from an issue at github) and I'm not sure which approach is cleaner - this, or the `-I` parameter
<clever> ive not used `-I nixpkgs-overlays` before, but the name implies it wants a list of overlays
<clever> so it should point to a directory, or a .nix file that returns a list?
<clever> also, nixos itself (including within nixops) will always ignore `-I nixpkgs-overlays` so it wouldnt have worked anyways
<clever> nixpkgs.overlays has higher priority, for purity
<mikky> -I nixpkgs-overlays, according to docs, can point to either a file or a directory and is interpreted as list. Pointing it to directory does nothing for nixops, pointing it to file yields the error
<mikky> anyway, I'll stick witht he nixops.overlays approach
<mikky> makes things more obvious
<clever> if pointed to a file, that file must still contain a list
<clever> and it likely wont do anything in either case, because the machines dont use that, only nixops itself
samueldr has quit [*.net *.split]
samueldr has joined #nixops
samueldr has quit [Excess Flood]
samueldr has joined #nixops
tg has quit [*.net *.split]
davidtwco has quit [*.net *.split]
Miyu-saki has quit [*.net *.split]
manveru has quit [*.net *.split]
{^_^} has quit [*.net *.split]
GlennS has quit [*.net *.split]
manveru has joined #nixops
Miyu-saki has joined #nixops
GlennS has joined #nixops
{^_^} has joined #nixops
davidtwco has joined #nixops
tg has joined #nixops
sevanspowell has quit [*.net *.split]
craige has quit [*.net *.split]
srk has quit [*.net *.split]
srk has joined #nixops
sevanspowell has joined #nixops
craige has joined #nixops
manveru has quit [Ping timeout: 270 seconds]
davidtwco has quit [Ping timeout: 246 seconds]
davidtwco has joined #nixops
samueldr has quit [*.net *.split]
monokrome has quit [*.net *.split]
sevanspowell has quit [*.net *.split]
craige has quit [*.net *.split]
srk has quit [*.net *.split]
tg has quit [*.net *.split]
Miyu-saki has quit [*.net *.split]
davidtwco has quit [*.net *.split]
{^_^} has quit [*.net *.split]
GlennS has quit [*.net *.split]
mutantmell has quit [*.net *.split]
aminechikhaoui has quit [*.net *.split]
clever has quit [*.net *.split]
adisbladis has quit [*.net *.split]
allgreed4 has quit [*.net *.split]
dongcarl has quit [*.net *.split]
johnny101 has quit [*.net *.split]
disasm has quit [*.net *.split]
pbb_ has quit [*.net *.split]
gchristensen has quit [*.net *.split]
mikky has quit [*.net *.split]
wirew0rm has quit [*.net *.split]
dmj` has quit [Max SendQ exceeded]
clever has joined #nixops
dongcarl has joined #nixops
clever has quit [*.net *.split]
samueldr has joined #nixops
monokrome has joined #nixops
dongcarl has quit [*.net *.split]
manveru has joined #nixops
monokrome has quit [Max SendQ exceeded]
samueldr has quit [Excess Flood]
manveru has joined #nixops
manveru has quit [Changing host]
adisbladis has joined #nixops
aminechikhaoui has joined #nixops
clever has joined #nixops
johnny101 has joined #nixops
dongcarl has joined #nixops
allgreed4 has joined #nixops
mikky has joined #nixops
gchristensen has joined #nixops
pbb_ has joined #nixops
wirew0rm has joined #nixops
monokrome has joined #nixops
meatcar has joined #nixops
disasm has joined #nixops
samueldr has joined #nixops
kalbasit has quit [Ping timeout: 260 seconds]
dmj` has joined #nixops
dmj` has quit [Excess Flood]
dmj` has joined #nixops
dmj` has quit [Excess Flood]
dmj` has joined #nixops
kalbasit has joined #nixops
kalbasit has joined #nixops
kalbasit has quit [Changing host]
lordcirth has joined #nixops
dongcarl8 has joined #nixops