2018-03-01

<joko> Hey, is it possible to patch a single-file source? nix-build mentions "can't find file to patch"

2018-02-28

<joko> sphalerite_: More or less I am trying to create a small NixOS installation on an SD card with the current network (and other) settings
<joko> Good morning, people. I was wondering if it is possible to execute a sudo command in system.extraSystemBuilderCmds. I have tried with /run/wrappers/bin/sudo, but the wrapper complains

2018-02-27

<joko> Hey, is is possible to give the root password for nixos-install as a parameter?

2018-02-26

<joko> Have also a look at https://github.com/deepfire/nix-install-vendor-gl This is actually what I wanted to try then, but the machine had an Intel graphics card
<joko> I tested nix over Debian six months ago. Shell applications were running as intended, but I ended up using Debian's Firefox to make it work
<joko> cmcdragonkai1: There was a wrapper for OpenGL https://github.com/guibou/nixGL , but I haven't tried it
<joko> Found it, I had to use pkgs.substituteAll and set an attribute dir = "bin" to make it work
<joko> Is there anything like writeScriptBin with substituteAll?
<joko> clever: Awesome, this is what I wanted! system.extraDependencies
<joko> Hello, I would like to create an installation ISO which already contains some of the derivations I will have on the installation target, so that they don't get downloaded. Any idea how to do so?

2018-02-23

<joko> Just replace master with a rev
<joko> genesis: indeed, it's on master
<joko> genesis: use fetchzip as Mic92 suggested
<joko> genesis: just use overrideAttrs
<joko> sphalerite_: just the version
<joko> Hello, is it possible to override easily a Linux kernel version? I've tried with linux_4_9.overrideAttrs(), but it seems that kernel config was lost (lots of failed assertions like "CONFIG_DEVTMPFS is not enabled!")

2018-02-22

<joko> guibou: I am not that confident, I've been using NixOS for quite some time now, but I had not seen callPackages anywhere else
<joko> guibou: this one seems to be from cross-compilation and I am not sure how to use it
<joko> guibou: callPackage is defined in lib/customisation.nix of nixpkgs, I couldn't find callPackageS
<joko> guibou: where have you seen this?
<joko> Lisanna: https://nixos.org/nix/manual/#conf-restrict-eval the latest nix seems to enforce that, at least in Hydra where I saw it
<joko> Is there any workaround to import from a derivation when nix is in restricted mode? As if the child derivation is calculated in the parent one (the one calling it), so that the latter does not have to access the nix store
<joko> Maybe I should create a proper (:P) impurity by using a NIX_PATH value / Hydra input
<joko> manveru: using plain drv.out shows the following: "The option `GIT_SSL_CAINFO' defined in `/nix/store/nh639rljcbb2wli5rfd5sqs219326nfn-git-export/machines/munch-hardware.nix' does not exist." Most likely default.nix from that repository is not imported
<joko> manveru: with "${drv.out}", Hydra still complains: access to path '/nix/store/rs285514z306wy14y5bnkqi36c64j9b6-systemd-zfs-generator-1e33bd2' is forbidden in restricted mode
<joko> manveru: Right, it's a wrapper for fetchgit
<joko> So far I was using its outPath, but it no longer works
<joko> Is it possible to import a nix file from a derivation (= sth I get via fetchgit)?
<joko> Hello, could anyone help me with restrict-eval? Hydra evaluator returns now errors like "error: access to path /nix/store/xxxx is forbidden in restricted mode"

2018-02-21

<joko> hydra-eval-jobs is also not working from my workstation (from nix-build '<nixpkgs>' -A hydra) due to that
<joko> sphalerite_: I couldn't make it
<joko> Hello, could anyone help me with importing nix files from a package? Using a package's outPath is not working in the newest nix
<joko> maurer: Saw your problem a bit late, I also delete the state file at startup: https://git.joko.gr/joko/dotfiles/src/linux-workstation/home/.config/xmonad/xmonad.hs#L373

2018-02-20

<joko> sphalerite_: right, 2.0pre. Importing them how?
<joko> (and recent Hydra versions -even in 17.09- complain that "access to path /nix/store/xxxx is forbidden in restricted mode")
<joko> (I am using outPath directly - a nix store directory - to import stuff from there)
<joko> Good morning, people! Could anyone help me with nix 1.12 and nixos? It appears that expressions like this: https://git.joko.gr/joko/etc-nixos/src/master/machines/munch-hardware.nix#L21 are not allowed anymore.

2018-02-07

<joko> adisbladis: For me it's currently totally manual, I rebase some commits on the latest nixos-unstable-small and my hydra instance compiles the packages and the channel (no testing still)
<joko> tilpner: it's a valid concern, had some rough times with that, too
<joko> But I am thinking of automating the bump, too
<joko> srhb: indeed
<joko> on themselves
<joko> srhb: this is what I am also doing on a personal channel, check that everything is built and then create a new channel, but my servers then get the updates
<joko> tilpner: yup
<joko> tilpner: point taken, it's your laptop. But what if you have to manage tenths of servers?
<joko> srhb: if you stay on the stable channel, then I find system.autoUpgrade quite convenient
<joko> burdensome *
<joko> Having pinned pkgs is burdersome, though, you have to attend every update, right?
<joko> thanks
<joko> srhb: I see now
<joko> Hello! Could anyone tell me how to setup kodi? I see config.kodi in all-packages.nix, but I am unsure how to configure it

2018-02-05

<joko> hyper_ch: :D
<joko> Something about VT-x? Look for other virtualization settings
<joko> What's your mobo?
<joko> hyper_ch: vt-d is for io
<joko> hyper_ch: "dmesg | grep kvm" reports anything strange?
<joko> hyper_ch: with sudo?
<joko> (or kvm_amd)
<joko> hyper_ch: sudo modprobe kvm_intel
<joko> ah
<joko> hyper_ch: then it's enabled... Try "lsmod | grep kvm" then
<joko> hyper_ch: if nothing, then it's not enabled
<joko> hyper_ch: what "grep -E --color=auto 'vmx|svm|0xc0f' /proc/cpuinfo" reports?
<joko> hyper_ch: they must be stopped, virsh list -a would list them
<joko> hyper_ch: try to start them via virsh start
<joko> aminechikhaoui: So you recommend running nixops deploy for the actual host?
<joko> Anyone with nixops experience to share his thoughts on unattended system upgrades? https://github.com/NixOS/nixops/issues/842
<joko> ;)
<joko> srhb: Just use export INSTALL_MOD_PATH="$out"
<joko> srhb: Had the same conclusion!
<joko> srhb: They are a bit messy, sec to try with overlays and packageOverrides (this doesn't sound good, I admit it)
<joko> I must migrate to overlays asap
<joko> True dat
<joko> :>
<joko> srhb: I am using still packageOverrides :S , but something similar to that: http://nixpaste.lbr.uno/wqq0c3Lf?nix + the previous link as drbd-module.nix
<joko> It's a copy-paste of the acpi_call kernel module mostly
<joko> and thanks :D
<joko> srhb: sure thing, there you go: http://nixpaste.lbr.uno/Qr9XZQLe?nix
<joko> srhb: right, even lself is not working
<joko> So I suppose it's ok
<joko> srhb: I used "drbd-module = lsuper.callPackage ./drbd-module.nix {};"
<joko> TonyTheLion: I build my channel in Hydra like that: https://git.joko.gr/joko/etc-nixos/src/master/jobs.nix#L63
<joko> srhb: I am getting attribute ‘moduleBuildDependencies’ missing, any clue what's wrong? I have kernel in input arguments and use this attribute of his, just like in acpi-call
<joko> srhb: I feel incomfortable with the "extends" keyword, any documentation on that?
<joko> srhb: So I override linuxPackagesFor with this one?
<joko> linuxPackagesFor.overrideAttrs is not working obviously :S
<joko> Hey, is it possible to override linuxPackagesFor? I would like to add one more kernel module

2018-02-02

<joko> Ah, no, there was no ZFS over LUKS - https://imgur.com/a/zqJhD
<joko> (compared with ZFS over LUKS)
<joko> Is encrypted ZFS mature enough? I saw on Reddit a benchmark with not so good results

2018-01-31

<joko> Hey, any way to override a NixOS service module?

2018-01-30

<joko> Hey, is it still not possible to override attributes in NixOS services?

2018-01-29

<joko> sphalerite: I see what you mean, right
<joko> sphalerite: many thanks!
<joko> okidoki
<joko> right
<joko> I think I need something like the $ operator in Haskell
<joko> Hey, I would like to do something like: map (builtins.fromJson builtins.readFile) [ file1 file2 ]

2018-01-27

<joko> Anyone with nixops experience to post some thoughts/opinion on https://github.com/NixOS/nixops/issues/842 ? Thanks in advance
<joko> freeman42x: this won't load your modified nix file
<joko> freeman42x: I think you would need a second nix file, where you import nixpkgs and then use haskellPackages.callPackage there. Then you do nix-env -i on that file
<joko> freeman42x: you would need to use nix-env, let me think how to do so
<joko> freeman42x: that's right, it merely creates a result directory

2018-01-26

<joko> iqubic: You could use a tag, too
<joko> iqubic: try the command I gave yuou
<joko> iqubic: no, nix-build knows nothing about stdenv, fetchFromGitHub etc.
<joko> iqubic: in that case use something like "nix-build -E 'with import <nixpkgs> { }; callPackage /path/to/default.nix { }'"
<joko> Well, { stdenv, fetchFromGitHub, autoreconfhook } is a attribute set used as an input argument
<joko> Could you link it?
<joko> Does it have input arguments?
<joko> iqubic: your nix file is as if it was in nixpkgs?
<joko> https://git.joko.gr/joko/etc-nixos/src/8ccb394e3dd67e5760e19f0c26f1af37afff3f69/jobs.nix <- I am trying to set an "aggregated" job and I need to put "machines" in the constituents.
<joko> sphalerite_: Now that I think about it, maybe I need the values, as clever said
<joko> iqubic: You could use nix-build
<joko> sphalerite_: builtins.attrNames would also return list of strings, right?
<joko> Hey, I am trying to get a list of attribute names from an attribute set. I've tried with "mapAttrsToList (n: _: n) myAttrSet", but I think I am getting a list of strings, not the actual attributes
<joko> CapsAdmin: sorry, I was afk for a while, hopefully you made it with manveru's reply
<joko> CapsAdmin: you don't have to specify how SDL2 needs to be built in the package you are developping; you just put it as an input and then you install the package with the overriden SDL2 as input

2018-01-25

<joko> Any idea what could go wrong with netbooting? dnsmasq reports trying to give an IP, but the VM does not boot
<joko> Is anyone aware of losing UDP packets over virtual networks (ovs bridges)
<joko> well, I had clever's netboot server setup in mind, but my employer wanted dnsmasq and I could not tag properly ipxe, so that I pass undionly.kpxe and move to proper ipxe
<joko> sphalerite: with 512 it doesn't, it says booting and that's it
<joko> It's funny, today I was experimenting with network boot, too... I found out that NixOS minimal netboot wants at least 1GB of RAM and dnsmasq is really stupid
<joko> LnL: noted it, too :D

2018-01-22

<joko> __red__: then yes
<joko> __red__: or do git rebase upstream/master master
<joko> sphalerite: gc-keep-outputs did it, but it keeps outputs for every derivation, right? Is there an option to keep outputs just for the nixos-system one?
<joko> If I change the IP address on one interface, then it tries to download another stage-2-init.sh
<joko> LnL: actually there is a stage-2-init.sh with a different hash... Strange
<joko> LnL: it didn't work, /etc/nixos/system-root does not seem to contain the derivations I've mentioned (stage-2-init etc.)
<joko> manveru: I also have an identical log for nixos-17.09 and rust there: https://hydra.microlab.ntua.gr/build/668/nixlog/40/tail
<joko> LnL: what if I need to build a complete nixos system? E.g. I see dependencies such as gnumake, paxctl, stage-2-init.sh, stdenv and patchelf getting downloaded and then removed on the next "nix-collect-garbage -d"
<joko> LnL: let me try it, thanks
<joko> More or less I want to keep stuff like stage-2-init.sh in the nix store, so that nothing gets downloaded if I modify configuration files, e.g. network settings
<joko> Hello, I would like to keep some derivations in nix store even after nix-collect-garbage, how to do so in NixOS?

2018-01-21

<joko> srhb: bingo
<joko> I also run zsh right after running nix-shell, any way to automate this?
<joko> infinisil: so you mean, on my PC to have a systemd timer/service which updates the nixpkgs channel I am going to use and runs nixops deploy?
<joko> infinisil: how to do so?
<joko> So with nixops one cannot perform unattended upgrades if I understand well
<joko> And any ideas for combining nixops with system.autoUpgrade or sth else equivalent?
<joko> srhb: ok, I see the pattern
<joko> srhb: ok, are you at least aware that the machine needs a reboot?
<joko> Anyone using system.autoUpgrade in NixOS? How do you deal with reboots for kernel upgrades?

2018-01-20

<joko> Any thoughts on system.autoUpgrade and how to deal with a) kernel upgrades which require reboots and b) combining it with a Nixops deploy?
<joko> lol, no worries
<joko> What's the third one?
<joko> gchristensen: So far I have seen Douane and OpenSnitch, has anyone tried them?
<joko> Somewhat related, I have never found an application-level firewall for Linux, something like Little Snitch for macOS. Is anyone aware of something relevant?
<joko> Hahah
<joko> deltasquared: will do, thanks :D
<joko> deltasquared: this is awesome! Thanks for mentioning ti
<joko> azazel: I would say end of next month, I still have some other deadlines to catch first
<joko> But imho one should write nftables
<joko> azazel: I am porting it for my employer, hopefully I will be able to release it as open source once it is ready
<joko> Right, mapAttrs' allows you to change the attribute name, too
<joko> lejonet: you can't use "->" directly, you need mapAttrs
<joko> typetetris: I am not sure when packageOverrides is going to be removed, all I can say is that it works for now
<joko> lejonet: A translator is not that bad
<joko> typetetris: packageOverrides works for the time being, but I would recommend using overlays. I am also transitioning slowly to them
<joko> lejonet: I would vouch for removeAttrs to keep conformity

2018-01-17

<joko> pie_: Why risk it? Theoritically speaking if you suspend to disk you might be safe (don't know if the total RAM would be available), but I would do a proper shutdown for any hardware upgrade
<joko> pauldub: cluster as in what?

2018-01-15

<joko> Mic92: Bah, I'm giving up, I've tried to remove it, but no luck
<joko> Mic92: I see now, thanks :D
<joko> Mic92: would "for e in $(find -executable); do strings "$e" | grep gcc; done" in its bin dir be enough? it shows nothing
<joko> Hello, any idea why the nfs-utils package requires gcc as runtime dependency?

2018-01-12

<joko> jetien: cool!
<joko> I think the latter would work
<joko> jetien: dual boot with grub?
<joko> jetien: you're welcome! :)
<joko> jetien: fingers crossed it works!
<joko> jetien: mount boot partition, too, fix /mnt/etc/nixos/configuration.nix and run nixos-install --root /mnt -j 4
<joko> lexomsthn: maybe use its full path, e.g. steam-run ./One_Night_Stand.sh? (I have never run steam-run though)
<joko> Any thoughts abouts nixops and automatic upgrades?
<joko> LnL: the package has a custom builder?
<joko> gchristensen: many thanks, it worked!
<joko> How to properly escape ${sth} in indented string?
<joko> Is there any way to insert a CA cert at runtime for download-from-binary-cache.pl? I've tried with SSL_CERT_FILE and NIX_SSL_CERT_FILE, but no luck...
<joko> andi-: I think so, running "sudo autorandr -c" works, I was hoping it would also work automatically, when booting
<joko> Hey, is anyone using autorandr? It appears it is not working on my laptop, any ideas what could be wrong? I've tried both lightdm and sddm

2018-01-11

<joko> Any way to store explicitly a path in nix store which is not necessarily a package?
<joko> Is there a way to include explicitly a closure in NixOS /nix/store?
<joko> eoifmom: I don't have any experience with lightdm on NixOS, but a simple enable would suffice, strange
<joko> eoifmom: do you have lightdm, sddm or another display manager?
<joko> eoifmom: could you post somewhere your configuration.nix? It appears you don't have a display manager :D
<joko> Could anyone explain to me ordering in definitions, e.g. mkBefore and mkAfter? https://github.com/NixOS/nixpkgs/blob/213bd2847bb6590126591435766793df0410b4d1/lib/modules.nix#L499
<joko> Li[m]: I don't mind using fetchGit, but if I understood well, that would require Nix 1.12, right?
<joko> Is there any equivalent of fetchurl for ssh?

2018-01-10

<joko> goibhniu: Ah, saw an example on the last link
<joko> goibhniu: oh, thanks! And if I no longer needed? Is there a way to delete it?
<joko> Is it possible to keep derivations needed by nix-shell intact after nix-collect-garbage? Do I need to have a symlink or sth like that somewhere?
<joko> tilpner: I guess so, too
<joko> tilpner: /run/booted-system is what I was looking for, thanks!
<joko> alp: oops, you are right, I meant to write generation not configuration
<joko> I mean the configuration a system booted
<joko> Is it possible to identify the current boot configuration?
<joko> clever: alright, thanks :D
<joko> If I remove system-* symlinks in /nix/var/nix/profiles, then the respective generations would get garbage collected?
<joko> Or perhaps I didn't know where to look
<joko> dhess: It's a shame Hydra didn't show any report on that
<joko> dhess: yes, as I said, I was using a different machines files for Hydra, where the big-parallel feature was not enabled there
<joko> Hello, does nix-collect-garbage support deleting all generations but the last x? I don't see it as an option on its manual

2018-01-09

<joko> Is it possible to refer to input arguments inside <pkg>.overrideAttrs?
<joko> dhess: I think I've found it! I had to declare the big-parallel feature in my updated services.hydra.buildMachineFiles file... I had also stumbled on the deadlock issue and after clever's suggestion I was using a file for Hydra other than /etc/nix/machines
<joko> dhess: that's ok, thanks for your help nonetheless :D
<joko> dhess: I'd say the latter - exactly 11 tasks here, too
<joko> dhess: It's active (running)
<joko> dhess: I have indeed Hydra as a remote host with hostName "localhost"
<joko> dhess: I have just one, the local one
<joko> dhess: I do so all the time, no change unfortunately
<joko> dhess: none
<joko> dhess: I've just tried it, no luck :(
<joko> No worries... The derivation file doesn't mention anything about requiredSystemFeatures
<joko> LnL: I'm not building LibreOffice, I've just mentioned it as an example
<joko> Maybe it's a missing supportedFeature? How to check this?
<joko> packages for a NixOS system *
<joko> LnL: a NixOS system
<joko> dhess: more than a day
<joko> "journalctl -f -u hydra-queue-runner" shows '"nrUnfinishedSteps":6,"nrRunnableSteps":1', any way something is wrong? I remember LibreOffice needs something special
<joko> Hello, a job in my Hydra server has status "Scheduled to be built", but Hydra does nothing. Any way to debug this?

2018-01-08

<joko> sphalerite: many thanks! With overlays I noticed the following: I was overriding a package (e.g. lvm2), but the rest of the packages were not using the new package as a dependency, I had to override their lvm2 dependency attribute. Is this intended or I was doing sth wrong?
<joko> srhb: I don't get it, nix-env etc. should realise without any extra command that a path is available, right?
<joko> Is it possible for nix-build to comply with nixpkgs.config.packageOverrides of the system?
<joko> ok, I'm running it, but it seems unpackPhase does not create a temporary directory, is this correct?
<joko> srhb: I was looking for nix-build --run-env
<joko> Hello, is there a way to access a shell while making a derivation and control the build process? Sth like a shell where I enter unpack, patch etc.

2018-01-06

<joko> Hello, could anyone enlighten me on how to use objcopy on a package I am writing? The binutils pkg points to binutils-wrapped which no longer has objcopy

2018-01-05

<joko> Is there a way to properly link files from one package to another? As if the first package has a plugins dir and the second one needs them on its $out/lib/ ... If I do ln -s, I get collisions...
<joko> longrin1: you could try adding "with lib;" on top
<joko> adisbladis: it says undefined variable 'VAR'
<joko> Hello, I would like to use substituteInPlace to replace ${VAR}, how to properly escape it? I've tried "\${VAR}" and "\$\{VAR\}", but no luck so far

2018-01-04

<joko> ok, I think I could use binutils-unwrapped, but inside a script it's not replaced with the nix store path, any ideas?
<joko> Ralith: how about github? nix-env --file 'https://github.com/NixOS/nixpkgs-channels/archive/nixos-17.09.zip' -iA pkg ???
<joko> Hey, could anyone tell me where to find objcopy? binutils has a wrapper these days and does not include it there :S
<joko> srhb: ok, let me try it then :D
<joko> srhb: Yes... The installation also tries to create the directories, set permissions etc., but I guess I could patch this part
<joko> srhb: But how to create it out-of-band when its contents are going to be symlinks of directories found in the packages?
<joko> I am trying to package pacemaker and some other packages (resource-agents etc.) and all those packages deploy stuff on a shared directory called OCF_ROOT. I was wondering how to approach this
<joko> srhb: yes
<joko> srhb: ok, let me explain a bit more....
<joko> srhb: And would that be ok with circular dependencies?
<joko> srhb: I mean packages that will eventually face environment.systemPackages or so
<joko> srhb: I am talking about system packages, though, I am not sure how buildEnv could fit
<joko> srhb: Do you have any nix file I could read?
<joko> ixxie: I have something like pkgA/share, pkgB/share, where pkgX is the nix store path. I would like to have a metapackage (?) or so, so that I place symlinks of the share dirs inside pkgMeta/share... Hope it's more understandable now
<joko> Hello, I would like to place some directories in a common parent, so that programs could scan the parent and find all the proper files. Any ideas on how to do so with Nix?

2017-12-19

<joko> yegortimoshenko: I am a bit afraid of patchelf for that, this is why I was asking :D
<joko> Hello, has anyone used VMware Professional on NixOS?

2017-12-18

<joko> I was using a VM, so it was relatively easy to get past this, but hey, 2GB are a lot
<joko> Hmm, I think I've found the error, it needed 2GB RAM to finish the boot :S
<joko> Is anyone using successfully netboot?
<joko> yegortimoshenko: right, it's 5:30AM there xD
<joko> clever: are you here?
<joko> Has anyone used netboot recently? I am trying to use it, but I am getting kernel panic, unable to mount root fs on unknown-block(0,0)
<joko> dhess: please do so :D
<joko> dhess: this is awesome! For these holidays I was considering setting up a PFsense firewall, but now a NixOS machine could do that :D

2017-12-15

<joko> Hello, guys, I was wondering for possible web app development on NixOS, e.g. you want nginx, php-fpm and postgres running, but not as system services all the time. Any thoughts on that?

2017-12-13

<joko> kuznero: If you want just to develop, a simple nix-shell -p go should be enough
<joko> kuznero: are you using go2nix?

2017-12-12

<joko> fikovnik: Typically it's nixpkgs on non-NixOS installations, where only nix is used, vs. nixos on NixOS
<joko> garbas: you could check overrides.nix @ http://nixpaste.lbr.uno/j_tqxSBb?nix and the requirements @ https://github.com/postgres/pgadmin4/blob/master/requirements.txt (hopefully I will do a PR on that soon :D)
<joko> garbas: I am struggling using unittest2 on pypi2nix as in https://github.com/garbas/pypi2nix/issues/135, could you help me a bit?
<joko> aw: ditto, thanks
<joko> Just nix-shell instead of nix-build :P
<joko> How one could build a package manually? I have forgotten... As in typing buildPhase etc. in the shell

2017-12-09

<joko> srhb: I see, thanks
<joko> srhb: and what if you have a mix of nixpkgs cases? E.g. a mix of nixos-17.09 and nixos-unstable
<joko> Hello, people, I've just started using nixops and so far, it's been great. I was wondering how you manage the nixpkgs version of target machines, any ideas or even better any code to check?

2017-12-07

<joko> mbrock: could you try without -p bash?

2017-12-06

<joko> sphalerite: many thanks!
<joko> sphalerite: thanks, any way to bypass the lack of signature?
<joko> I mean not with nix-copy-closure, export them first with their dependencies and then install them locally
<joko> Hello, could anyone tell me how to move closures as files between hosts?

2017-12-05

<joko> Hello, it appears that the lua-5.3 package depends on hostPlatform, is this right?

2017-11-24

<joko> hyper_ch: if you are referring to { eth0 = {...}; eth1 = {...}; }, there is absolutely no need to focus there, I just need to fix availableInterfaces if possible
<joko> But if anyone else has an idea, please hop on
<joko> hyper_ch: nvm, I'm seeing 19 lines, I'm already tired :P
<joko> hyper_ch: is it better now? http://nixpaste.lbr.uno/00ccC-L0?nix I have also added a second interface and my point is that on some setups there is eth0 and eth1 and on some others not. So, on the latter I would like networking.interfaces to be evaluated as { }
<joko> hyper_ch: I just wanted to focus on the availableInterfaces part in let, not the attribute set, but anyway, let me transform it a bit
<joko> hyper_ch: you mean eth0.ip4 = ... ?
<joko> hyper_ch: sorry, I don't understand, the code has multiple lines via let, right?
<joko> hyper_ch, clever: I was hoping for something like that: http://nixpaste.lbr.uno/AcmGx1ln?nix
<joko> hyper_ch: Because if eth0 exists, I want to have it set up. If it doesn't, the network services restart really slowly
<joko> clever: when would that be? I.e. before network-link-eth0.service?
<joko> hyper_ch: I have something like networking.interfaces = { eth0 = { ip4 = [ { address = "131.211.84.78"; prefixLength = 25; } ]; }; } in my setup, I would like to check if eth0 exists before setting it.
<joko> Is it possible to run commands in configuration.nix? E.g., I am already setting statically the IPv4 address of an interface and I would like not to set it if it doesn't exist (so "ip link show | blabla" should run and store its results on a list, so that I can do the check in nix)
<joko> ?
<joko> Only package modules are overridable
<joko> So if I have to add an env var to a service, I should copy the target NixOS service module and edit it, right?
<joko> ok, I thought so...
<joko> Do environment.sessionVariables or .variables affect systemd services or should I rewrite the target services?
<joko> Basically I would like to add extra arguments in configuration.nix as in https://github.com/NixOS/nixpkgs/issues/7272