<littlebenlittle>
colemickens: That is much better than ${"\${!p}"}. Thank you :)
wiml has quit [Quit: Leaving]
<pinpox>
Any good introductions to flakes? I'm looking to see if I can organize my nixos machines with it. Found a talk from eelco on youtube from 2019, is that information still valid in 2020?
<colemickens>
pinpox: I'll personally help you if it means another flake convert
<pinpox>
colemickens: :D
<pinpox>
That's a nice offer
<colemickens>
pinpox: what angle are you coming from? Are you trying to convert a nixos configuration to be flake enabled?
Rusty1 has joined #nixos
<colemickens>
pinpox: or maybe you're building software with Nix and want to make it available via flake?
<pinpox>
Give me some pointers on where to start. I'm currently running laptop+desktop+a few servers with nixos and would ilke to make it "flake enabled"
<colemickens>
that largely will mean writing a flake.nix, specifying the inputs you use (maybe just nixpkgs) and then some code to import your system configurations and expose them as output attributes under "nixosConfigurations".
<colemickens>
It explains some benefits of flakes, and would represent the very least you'd need to do to build one of your system configs with flakes, instead of classic NIX_PATH.
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JIj2t
<colemickens>
(It also serves to demonstrate that you can build identical system configs with or without flakes.)
<pinpox>
colemickens: nice, thank you for both links!
<pinpox>
Have to do some reading before I start, but I'll come back with more questions ;)
<pinpox>
colemickens+
<pinpox>
colemickens++
<{^_^}>
colemickens's karma got increased!
<{^_^}>
[nixpkgs] @chessai opened pull request #106861 → simdjson: init at 0.7.0 → https://git.io/JIjah
KarlJoad has joined #nixos
<KarlJoad>
How can I change the timeout for querying for a binary cache for nix-build?
jorbak has joined #nixos
fuzzypixelz has quit [Quit: fuzzypixelz]
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm_ has joined #nixos
mbrgm_ is now known as mbrgm
jorbak has left #nixos [#nixos]
g-w1 has joined #nixos
<KarlJoad>
Sorry, I should specify that I am building this from `nix repl` while I'm working on stuff. The timeout flag is already available for `nix build`.
<g-w1>
hello, is there a way to get (from an install) the configuration.nix that was generated when I installed it?
<{^_^}>
[nixpkgs] @mweinelt pushed 3 commits to staging-20.09: https://git.io/JLvQH
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
ManiacOfMadness has joined #nixos
m4ts has joined #nixos
Darkmatter66 has joined #nixos
aswanson has quit [Quit: aswanson]
KarlJoad has joined #nixos
<KarlJoad>
Can someone explain the use of sourceRoot to me? Right now, I am saying `sourceRoot = "source/src"`. I thought it would need to be `sourceRoot = "${src}/src"`.
<simpson>
KarlJoad: The idea is to emulate classic build tool workflows where, rather than running `make`, you'd have to run `make -C src`, or maybe `cd src; make` etc.
<simpson>
This allows us to *declare* the directory where the source is, rather than writing shell script to find it.
<KarlJoad>
simpson: Ok. Now, why should I be saying "source/src", rather than "${src}/src"?
<simpson>
KarlJoad: I'm not sure. I figure that it should be a relative path, at the minimum; "${src}" is going to be an absolute path. Also it's usually done that way in nixpkgs, when searching with `git grep sourceRoot`.
<KarlJoad>
That's weird, because `source` doesn't expand to anything (either through nix or bash) (at least not to my knowledge). My source also doesn't have a "source" directory, but has a "src" directory, which /is/ found.
<simpson>
Oh, the literal "source" string is because that's what Nix calls source package unpack directories.
<simpson>
`git grep 'sourceRoot = "source' | wc -l` gives me 105 different examples across nixpkgs; it's a popular choice. Because it's Nix's default choice.
<KarlJoad>
simpson: So, `source` refers to the unpacked contents of $src? Even though, for me (in nix-shell) $src="/nix/store/6v7lp44q8bwp4x3f81g12lhad7cwl8lm-source"?
<KarlJoad>
simpson: So, I did that test. When `sourceRoot = "source/src"` it builds correctly. When `sourceRoot = "${src}/src"`, I get permission-denied errors about copying to $out.
<simpson>
Makes sense, since that absolute path is going to point into the Nix store.
<KarlJoad>
So, where is the unpacked source during the build then? /tmp?
endformationage has quit [Quit: WeeChat 2.9]
<KarlJoad>
Also, since the Nix store is read-only, why couldn't I copy to $out? Isn't $out writable during the build process?
<KarlJoad>
The program builds in /build, the input source is in /build/source? Then how does the output of cp in.something $out/bin work? Since $out is a full path into the nix stor.
<{^_^}>
[nixpkgs] @antifuchs opened pull request #106876 → mosh: Hermeticize mosh-client path reference from mosh.pl → https://git.io/JLJqp
sangoma has joined #nixos
Darkmatter66 has quit [Ping timeout: 256 seconds]
<KarlJoad>
clever: Ok. I think I'm starting to get it. Then, why would a `cp` from ${src}/src to $out fail? The builder should be able to read the input, so why couldn't it copy to the output?
palo1 has joined #nixos
gerschtli has quit [Quit: WeeChat 2.9]
gerschtli has joined #nixos
<KarlJoad>
`nix build` returns an error about `chmod` not being permitted.
palo has quit [Ping timeout: 265 seconds]
palo1 is now known as palo
thelounge52 has joined #nixos
amfl_ has joined #nixos
amfl has quit [Ping timeout: 256 seconds]
amfl_ is now known as amfl
<meatcar>
Is there a trick to git-bisect nixpkgs, when nixos-unstable is marked good, and master is marked bad, without rebuilding 400 packages including gcc "an estimated 8" times? How can I tell whats the freshest commit in master that has all the derivations cached?
KarlJoad has quit [Quit: ERC (IRC client for Emacs 27.1)]
<srhb>
meatcar: Not _really_ -- nixos/nixpkgs-unstable _is_ the latest master that has all derivations cached, so it becomes a bit tricky with skips etc.
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 33 commits to staging-next: https://git.io/JLJB0
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 34 commits to staging: https://git.io/JLJBE
<srhb>
meatcar: It may be helpful to look at the hydra falures if there were several attempts between the two commits you're bisecting.
mounty has quit [Ping timeout: 258 seconds]
<meatcar>
Hmm ok thanks.
orivej has quit [Ping timeout: 260 seconds]
<srhb>
meatcar: Sort of a truth with modifications, the problem is that the branches conflates completion of all attempts with test failure. But usually, a cache failure, if it's not a very fresh master (ie. just after a big merge) means some important build failed..
<srhb>
meatcar: You could try the latest finished run for nixos-unstable (with failures) instead of master to be sure that hydra has at least attempted building things.
<{^_^}>
[nixpkgs] @lheckemann merged pull request #105397 → nixos/mailman: make Postfix support optional (provided you configure the MTA yourself) → https://git.io/Jkp10
<{^_^}>
"This is an Octant plugin for Starboard which provides visibility into vulnerability assessment reports for\nKubernetes workloads stored as custom security resources.\n"
<viric>
hm no, it fails still. grmbl.
greaka has joined #nixos
vuko has quit [Ping timeout: 256 seconds]
<kenran>
I used to build a project that uses OpenGL on NixOS unstable by entering a nix-shell containing pkgs.glfw3 and pkgs.epoxy and including the respective headers. I didn't touch it for some weeks (and some nix-channel updates), but now this no longer works. I get "file not found" errors on all the included header files. Do I need something special now to make the include paths available in a nix shell?
<viric>
oh I have this:
<viric>
"don't know how to build these paths:"
<viric>
why nix tells me it doesn't know how to build paths?
<kfound>
the options appear to be to try and patchelf glibc itself (which doesn't seem to be a good idea), or to modify the glibc derivation to fetch the additional module at source-fetch time
<{^_^}>
[nix] @edolstra pushed 0 commits to ca/properly-store-outputs: https://git.io/JLk7d
<viric>
niksnut: do you want me to file an Issue to nix requesting the check for signatures when copying to a binarycache?
<thibm>
tomturbo: yes, same answer as las time: add a derivation to `contents` which contains the symlink
iH8c0ff33 has joined #nixos
bitmapper has joined #nixos
<{^_^}>
[nixpkgs] @stephank opened pull request #106905 → phpPackages.imagick: upgrade to ImageMagick 7 → https://git.io/JLkbm
werner292 has joined #nixos
iH8c0ff33 has quit [Ping timeout: 260 seconds]
<tomturbo>
thibm: if I remember correctly, last time I only wanted to write a text file with writeTextDir, no? how would a derivation which contains a symlink look like? sorry, I'm still very unfamiliar with nix
<thibm>
tomturbo: (or with runAsRoot/extraCommands maybe)
<esotericn>
if I'm using nix-env on a non nixos box; how do I remove something previously installed? just delete the symlink in ~/.nix-profile/bin?
werner291 has quit [Ping timeout: 260 seconds]
werner292 is now known as werner291
<esotericn>
looks like there's also some stuff in share/ so probably not
<kfound>
esotericn: nix-env --uninstall $pkgname - but make sure you get the pkgname correct or it fails silently
<esotericn>
ah brilliant. doh :P
<kfound>
the store contents will remain until they gets garbage collected
<thibm>
tomturbo: it could look like: `runCommandLocal "linkToHello" { inherit hello; } "mkdir -p $out/some/sub/dir ; ln -s $hello/bin/hello $out/some/sub/dir/link"`
<esotericn>
yep, that makes sense; I just wanted to remove pollution in $PATH
<thibm>
tomturbo: (runCommandLocal, writeTextDir and others are helpers to do simple tasks. They all are wrappers around mkDerivation)
<esotericn>
doesn't matter to have a bit of disk space used :P
<tomturbo>
thibm: I've already tried runAsRoot with "ln -s ${pkgs.jdk11}/bin/java bin/java" but it complained about there not being enough space left on the device so I'm assuming I did something wrong. I wasn't aware of runCommandLocal, thanks!
respawn_ has quit [Quit: Leaving]
<kfound>
it would be great if it at least warned when the package name wasn't found
<thibm>
tomturbo: like as said, runCommand* are wrappers on mkDerivation, so you can do the same with the classic mkDerivation (with more noise).
<thibm>
tomturbo: the doc says for extraCommands: "can create additional directories and files.", so runAsRoot probably can't
<kfound>
does anyone know if it is possible to add a new NSS module without either using nscd or modifying glibc?
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JLkjE
<kfound>
the context is that glibc 2.32 moved libnss_nis to a separate codebase; i can build the module but glibc won't find it without something like LD_LIBRARY_PATH
<pinpox>
Your krops.nix is quite a lot more complicated than mine. What does writeCommand do exactly?
<pinpox>
I see you write on each machine to /bin/...
<Mic92>
pinpox: just executes a command on the remote machine
<pinpox>
Mic92: Ok, so I don't need that part to "convert" my krops.nix to flakes?
<lassulus>
writeCommand is for writing your own build command. the default writeDeploy is basically a writeCommand which does `nixos-rebuild -I /var/src switch`
<lassulus>
or whatever your targetPath is. I guess you need to change your writeDeploy to the writeCommand Mic92 uses.
<Mic92>
pinpox: if your are at it, please also add it to the krops README :)
<pinpox>
Mic92: I will do after I figure everthing out!
<lassulus>
pinpox: basically you add the command somewhere in a let and change all your writeDeploy to writeCommand
<lassulus>
and inherit the command in there also. hope that makes sense
SanchayanMaity has quit [Quit: SanchayanMaity]
<pinpox>
I think I get it. So the only thing that changes is the command that is executed to provision the machine so that it includes the --flake... option
echelon has quit [Remote host closed the connection]
<pinpox>
lassulus: Thanks, that makes sense to me.
plfn has quit []
<pinpox>
I have yet to actually add the flakes part to the machine configurations, atm they are just "plain normal" configs I want to migrate to flakes
sangoma has quit [Ping timeout: 256 seconds]
<lassulus>
I have no idea about flakes though :D
zupo has quit [Ping timeout: 260 seconds]
<pinpox>
Mic92: Sorry if the question is not strictly nix-related, but how/where can I add that to the readme?
<Im_a_newbie>
Hi, I have nixos recently installed. Got my nvidia-card working (with prorprietary drivers), but with x-server my fonts are huge. When opening a terminal (alacritty), I have a 80x25 terminal. With my browser (qutebrowser) the top and bottom bar (tabs and commands) are huge as well. Browser content (like this webirc) are normal. Anyone any idea what
<Im_a_newbie>
the problem could be and how to change that?
Izorkin has joined #nixos
<simpson>
Im_a_newbie: Possibly Xorg is not detecting the proper DPI (dots per inch); you can check /var/log/X.0.log to see whether anything interesting happens during monitor detection, and you can set `services.xserver.dpi = 200;` if you need to set DPI to e.g. 200.
<srhb>
Im_a_newbie: You probably want to look at services.xserver.dpi, but I think alacritty has something special for that too, I must have it somewhere in my config, sec..
<simpson>
srhb++
<{^_^}>
srhb's karma got increased to 140
Im_a_newbie has quit [Remote host closed the connection]
<srhb>
Oh, no rusts winit was patched long ago, so it shouldn't be special for alacritty anymore, I misremembered.
<srhb>
So services.xserver.dpi should suffice :)
<srhb>
(I had to force mine too on nvidia, apparently that driver is crazy.)
Im_a_newbie has joined #nixos
<Im_a_newbie>
Thx. That's it. Looks a lot better now.
<srhb>
Im_a_newbie: Great :)
werner291 has quit [Ping timeout: 260 seconds]
<Im_a_newbie>
I think the problem might be my kvm-switch. With it my monitor often gets recognized as a 7" (maybe 9")-monitor, but in reality it is 24".
<srhb>
Well, fwiw, it's broken even on my internal laptop monitor with the nvidia driver...
<srhb>
Though that's some weird hybrid setup too, so maybe that affects things.
<Im_a_newbie>
Maybe there is a dpi-calculation based on the size of the monitor?
<tpw_rules>
so i'm interested in submitting a PR to update python-lz4 from 2.1.10 to 3.1.1 but 3.0.0 drops python 2 support. should that version be a new package?
kfound has quit [Remote host closed the connection]
<hyper_ch>
what's the url again to see where each release is at currently?
<pinpox>
Mic92: I saw in your configs that you import from ./modules, but that's inside the machines folder (e.g. in your eve/configuration.nix), how would I import the files from my ./common folder?
<pinpox>
(Also, should I rename it to modules?_
<pinpox>
)
freezeboy has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @lheckemann pushed commit from @bachp to release-20.09 « unifiStable: 5.14.22 -> 5.14.23 »: https://git.io/JLL4L
konobi has quit [Ping timeout: 260 seconds]
zupo has joined #nixos
<tpw_rules>
how does nixpkgs-review determine which packages are updated and need to be built? i see quite a lot of big ones that don't seem related to the change i made and i'd rather not wait for them to build
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davidv7 has quit [Ping timeout: 240 seconds]
domogled has joined #nixos
<fendor>
Having troubles with steam and proton on nixos, When launching a game I get an error message "Error creating Direct3D9 object". Until some update ago, this used to work fine, ideas how I can debug this?
zupo has joined #nixos
vidbina has joined #nixos
zupo has quit [Client Quit]
o1lo01ol_ has joined #nixos
<{^_^}>
[nixpkgs] @con-f-use opened pull request #106917 → docopts: init at 0.6.3-rc2 → https://git.io/JLLVd
o1lo01ol1o has quit [Ping timeout: 256 seconds]
shorberg has joined #nixos
mallox has quit [Quit: WeeChat 3.0]
mallox has joined #nixos
KarlJoad has joined #nixos
domogled has quit [Quit: domogled]
iH8c0ff33 has quit [Ping timeout: 260 seconds]
mallox has quit [Client Quit]
<{^_^}>
[nixpkgs] @kalbasit opened pull request #106918 → python3Packages.pre-commit-hooks: init at 3.3.0 → https://git.io/JLLob
<{^_^}>
[nixpkgs] @arcz opened pull request #106919 → echidna: init at 1.6.0 → https://git.io/JLLoN
<Mic92>
pinpox: flakes only recognize files that are added to git
<Mic92>
i.e. with git add
Darkmatter66 has joined #nixos
madalu has quit [Remote host closed the connection]
<Mic92>
pinpox: do ../../common
sangoma has quit [Read error: Connection reset by peer]
<peelz>
my PR (although simple in nature) causes all the kdeApplications derivations to recompile. Should I submit it to staging in this case?
berberman_ has quit [Ping timeout: 264 seconds]
<KarlJoad>
How should I go about changing a Makefile for it to work in nix-build. /bin/bash is hard-coded, and right now octave (from octaveFull) is broken (but octave-cli isn't). Right now, I'm just doing in-place changes with `sed`.
<halfbit>
is there a nice way of printing the dependency tree of a derivation?
<halfbit>
I know there's a way to print out the direct dependencies with nix-store -q, was hoping there was a nice way of getting like a tree printout of deps
<halfbit>
like cargo tree/npm list
o1lo01ol_ has quit [Remote host closed the connection]
<halfbit>
nix-tree?
vidbina has quit [Ping timeout: 260 seconds]
sangoma has joined #nixos
thelounge52 has joined #nixos
<KarlJoad>
I am trying to run tests on a program that doesn't have a build phase. I get the log message "no Makefile or custom buildPhase, doing nothing". I've checked, and there is a Makefile, so it's the fact I'm skipping the buildPhase.
<KarlJoad>
How can I test with checkPhase, without having a buildPhase?
mthst has joined #nixos
<lordcirth>
KarlJoad, perhaps buildPhase = ""; rather than skipping? I dunno
<bqv>
julm: there's no module overlay system, but you could leverage disabledModules
<KarlJoad>
sphalerite: When dontBuild = true, I get that error.
<halfbit>
how do I have the gcc-debug dependency?
<halfbit>
is that because I need to seperate debug symbols or something? its just bogus atm that I get glibc in an otherwise musl built set of stuff for a docker
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lordcirth>
halfbit, are you using 'stdenv' anywhere?
fendor has quit [Remote host closed the connection]
<lordcirth>
IIRC stdenv has gcc, so you would need to replace stdenv with a musl one
fendor has joined #nixos
<bqv>
also i have so many substituters that cachix is 429ing me on a single system build
zupo has joined #nixos
<pinpox>
Mic92: That gives me a different error: access to path '/nix/common/user-profiles/pinpox.nix' is forbidden in restricted mode
<pinpox>
It seems I am not allowed to access the files
<halfbit>
I'm using stdenv everywhere to build things
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/JLLSu
<halfbit>
however... I do have crossSystem = "x86_64-unknown-linux-musl" in my docker.nix
<pinpox>
Mic92: /var/src/common/user-profiles/pinpox.nix is present on the system
eoli3n has joined #nixos
chloekek has joined #nixos
<{^_^}>
[nixpkgs] @LouisTakePILLz opened pull request #106923 → kdeApplications: split derivation name into pname and version attributes → https://git.io/JLL9l
vika_nezrimaya has joined #nixos
<vika_nezrimaya>
Does anyone have a Nix function that does something like ({ a = [ b c d ]; e = [f]; } -> { b = [a]; c = [a]; d = [a]; f = [e]; })? My brain for some reason doesn't work properly today and I'm too lazy to list a thousand MIME types in my home-manager config
euandreh has quit [Remote host closed the connection]
<julm>
bqv: it got merged once, don't you think it has good chance to be remerged again now?
orivej_ has quit [Ping timeout: 240 seconds]
<bqv>
julm: do you want the kind answer or the honest answer?
euandreh has joined #nixos
<bqv>
because remember the last time it was only merged because i made enough of a fuss that someone took bloody sympathy
iH8c0ff33 has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @thornycrackers opened pull request #106926 → py3status: add file as runtime dependancy → https://git.io/JLtvc
<julm>
yes, and you're pushing again so it could happen again i guess
<bqv>
if you'd like to do the honours, say now, otherwise I'm just gonna take the diff and turn it into a self sufficient flake so i can stop caring about nixpkgs
<julm>
what are the benefits of making it a flake?
<bqv>
roughly the same benefits of it being a standalone repository with a default.nix, unless you use flakes
<bqv>
but it would also mean you could do a lot of creative and useful apparmor things without being behest to the merge cycle of nixpkgs
<bqv>
and given apparently nobody besides us actually even cares about it, that seems more sensible
<julm>
for me the main problem is the mass rebuild right now, and that is best solved with a merge imho
<bqv>
none of your changes formally require a mass rebuild, do they. it's just because you replace pkgs.apparmor
<bqv>
in a standalone repo, that won't be the case, hence there is no mass rebuild
konobi has joined #nixos
<julm>
well, maybe we should explore the flake you propose but still continue to maintain that PR and talk about it more, let it be known it's here and ready
<bqv>
i'm offering you to make the flake because it's entirely your work, and i'm sure you have further plans, but at this point whether it's you or me that makes it, i'm done caring about that PR
<julm>
well i have no further plan so far, nor trouble if you make such flake
orivej has joined #nixos
thelounge52 has joined #nixos
<LilleCarl>
Is it possible to install the nixos tools from Nix? I've booted into a rescue debian system on Hetzner
<LilleCarl>
Disks i wanna install on are unused, system is running from NFS
<{^_^}>
[nixpkgs] @andir merged pull request #106881 → gopass: fix impurity which breaks gopass after 'nix-store --gc' → https://git.io/JLUId
<bqv>
julm: github.com/bqv/apparmor-nix then, in a while
thc202 has quit [Quit: thc202]
<nature>
Are flakes the future of nix ?
<LilleCarl>
Nvm, found the manual for installing from another dist
madalu has quit [Ping timeout: 240 seconds]
madalu has joined #nixos
etalecohomology has joined #nixos
<julm>
nature: seems so, at least they're the present for me because they help and ensure more reproducibility for everything : packages, nixosConfigurations, apps, devShell
<hexagoxel>
in a clean checkout of the nix repository, I tried bootstrap, configure, then `make man`, which (after some dependency fixing) gives me "nlohmann/json_fwd.hpp: No such file or directory"
<hexagoxel>
how to fix?
<hexagoxel>
"do a full `make default`" ? :D
thelounge52 has quit [Ping timeout: 260 seconds]
<bqv>
nature: and as mentioned above, they would prevent the constant uphill merge battle that i seem to encounter with every PR i touch
<bqv>
huh, github actually changed the default branch name for new repos, i missed that.
<nature>
it's actually pretty neat, currently reading the rfc for it. Reminds me a little bit of the nim package manager nimble, but done better :D
<nature>
bqv: This also mean nixpkgs wouldn't be at the center of the package distribution in nixos anymore ?
<bqv>
unlikely. nixpkgs is huge and has most things. at worst it'd give the people that care about nixpkgs more room to be happy while also relieving the suffering that contributing currently is
<bqv>
i had a PR almost a year ago now, to add a guix module. it got stuck, i got pissed, i turned it into a flake instead. now people are actually using it and someone's taken it off my hands, and progress and development can actually happen without waiting on someone to deign it ok for the code to be merged
<nature>
nice!
<bqv>
and i reckon as this keeps happening, we should just churn out more flakes, because it will result in either better merging policy, or less things to merge
<bqv>
both of which are a solution
<hexagoxel>
in a pure nix shell I get .. different errors :)
<nature>
Maybe coming up with a pseudo "official" list of nix packages ?
o1lo01ol1o has quit [Remote host closed the connection]
<halfbit>
simpson: thanks!
<ixxie>
I'm developing a webapp with PostgREST/PostgreSQL and Sapper/Svelte; I setup a server with nixops and now I am wondering what would be a clean way to develop and deploy this setup
lordcirth has quit [Remote host closed the connection]
<ixxie>
I would like to avoid containers if possible
o1lo01ol1o has joined #nixos
<ixxie>
I'm thinking systemd services, but that seems weird for development side of things
lordcirth has joined #nixos
<nature>
ixxie: I don't have an answer, but I am curious why you would want to avoid containers
<chloekek>
ixxie: May also be worth thinking about getting it working in CI, right from the start
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<chloekek>
I usually end up maintaining both systemd unit files (for production) and a Procfile (for development and automated tests, to run using nixpkgs.hivemind). Use them for all the services, including postgres, not installing them globally on dev machine.
<chloekek>
Haven’t found a satisfying solution offered by stock NixOS for this though.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chloekek>
Some services require a bunch of configuration to run them as non-root and with a non-default state/logs directory. Takes a few hours to set up but once you’ve done it, it makes onboarding, CI, and integration testing completely trivial. And unlike containers, you don’t suffer from the problems caused by containers.
<chloekek>
No telling all maintainers “you have to copy this file to /etc” nonsense every time the infrastructure changes.
philr has joined #nixos
nature has quit [Ping timeout: 260 seconds]
nature has joined #nixos
fendor has quit [Read error: Connection reset by peer]
<simpson>
Sure. The problematic service mentioned is Pg, whose state is somewhat persistent.
<ixxie>
main issue with containers: builds are slow, caching of builds isn't very granular so results in large rebuilds for minor changes, and pushing large image files over the network between build machines, deployment machines and registries is slow and inefficient
hplar has quit [Ping timeout: 260 seconds]
<simpson>
I could imagine a hybrid solution where Pg is in a container and everybody else is Nix-managed, but I haven't seen a ready-made solution like that.
fendor has joined #nixos
<chloekek>
A container solution that just creates a user namespace mounts a Nix closure and runs a systemd service would be a blessing. No network isolation, images, or stateful daemon.
fuzzypixelz has joined #nixos
<ixxie>
simpson: I'm currently using a hosted pg solution but I may just run it with a NixOS module in the future
<ixxie>
at the moment I am just concerned with running the PostgREST binary and an `npm run` command in a way which supports sane logging and reasonable development workflow
hplar has joined #nixos
<ixxie>
I was thinking of making two systemd services for them and then a script that opens a tmux monitoring panel that funnels their journalctl feeds
zupo has joined #nixos
grumble has quit [Quit: Well, would you look at the time. I've almost missed my ambiguous, non-existent appointment that I have scheduled just when I start to lose interest in my current conversation.]
nomisiv[m] has joined #nixos
<nature>
Any examples of configuration.nix ported to flakes ?
etalecohomology has quit [Quit: leaving]
fuzzypixelz_ has joined #nixos
fuzzypixelz has quit [Ping timeout: 256 seconds]
fuzzypixelz_ is now known as fuzzypixelz
euandreh has quit [Remote host closed the connection]
<pinpox>
lassulus: it is outside of the flake.nix though
KarlJoad has quit [Ping timeout: 260 seconds]
malook has joined #nixos
malook has quit [Client Quit]
<lassulus>
hmm, you could trying populating the whole git repo instead of the common subfolder. maybe then the relative paths will work better. nixos-config.file should also be nixos-config.symlink then
fuzzypixelz has quit [Remote host closed the connection]
NeoCron has quit [Remote host closed the connection]
<veleiro>
how can i tell what is going on with a 'nixos-rebuild switch'
<veleiro>
if it seems to get stuck on "starting the following units"
<pinpox>
lassulus: it seems to work, if i put the common folder insede the folder with the flake.nix
THC is now known as EnchanterTim
<pinpox>
but that is not a very good organisation
<pinpox>
I'll try the whole repo like you said
eoli3n has quit [Remote host closed the connection]
fuzzypixelz has quit [Client Quit]
orivej has quit [Ping timeout: 256 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
Rusty1 has joined #nixos
kenran has quit [Remote host closed the connection]
<veleiro>
or "setting up /tmp files"
<veleiro>
is there a more verbose nixos-rebuild?
orivej has joined #nixos
KarlJoad has joined #nixos
<KarlJoad>
What's the best way to work with a /bin/bash hard-code in a Makefile? I'm using `sed` to replace that with /usr/bin/env bash. Is there a better way?
veleiro has quit [Remote host closed the connection]
<aminechikhaoui>
Anyone had redshift service failing to geoclue returning a 403 ?
astrofog has quit [Quit: Quite]
* aminechikhaoui
eyes are already hurting
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dycan has joined #nixos
thelounge52 has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #106761 → cifs-utils: don't check for AC_FUNC_MALLOC when cross compiling → https://git.io/JIiFq
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/JLt8t
<pinpox>
You helped me the other day with flakes right?
<pinpox>
(not sure about the nick anymore)
thelounge52 has quit [Ping timeout: 240 seconds]
<pinpox>
can you tell me how to import relative files with flakes?
jb55 has quit [Ping timeout: 240 seconds]
thomas-matrix[m] has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
fendor has quit [Read error: Connection reset by peer]
nf has quit [Quit: Fairfarren.]
nf has joined #nixos
Darkmatter66 has quit [Ping timeout: 256 seconds]
chang has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KarlJoad` has joined #nixos
KarlJoad has quit [Ping timeout: 256 seconds]
KarlJoad` has quit [Ping timeout: 246 seconds]
aswanson has joined #nixos
SomeoneSerge has joined #nixos
mkaito has quit [Quit: WeeChat 2.9]
<vk3wtf>
i have a pull request that's stalled for a few months, is anybody available to review it and push it along?
<eacameron>
Where can I learn more about how cmake is handled by stdenv? My test suite isn't linking against the library cmake built and I'm trying to find out why.