n-osborne has quit [Remote host closed the connection]
K0kada has joined #nixos
iqubic` has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
supersandro2000 has quit [Quit: Ping timeout (120 seconds)]
<drozdziak1>
I'm writing an overrideAttrs expression but I need to access the existing derivation's `callPackage` args. What are my options?
supersandro2000 has joined #nixos
supersandro2000 has quit [Remote host closed the connection]
supersandro2000 has joined #nixos
<sterni>
drozdziak1: this doesn't work afaik, unless they are to be found somewhere in attrs, e. g. some inputs you'll find in old.buildInputs for example
<drozdziak1>
sterni I'm namely looking to pass the `kernel` variable to fix r8168
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #113522 → collection: remove unused inputs, stale substituteInPlace, mark some python packages broken for darwin → https://github.com/NixOS/nixpkgs/pull/113522
supersandro2000 has quit [Ping timeout: 264 seconds]
supersandro20006 is now known as supersandro2000
zn10 has quit [Quit: Connection closed]
<{^_^}>
[nixpkgs] @NeQuissimus pushed 2 commits to release-20.09: https://git.io/JtDUS
<sterni>
drozdziak1: <kernelPackage>.drvAttrs?
ToxicFrog has quit [Remote host closed the connection]
<drozdziak1>
sterni: Yep, used just that, thanks
<sterni>
drozdziak1: for version and dev you don't even need the attrs
<sterni>
okay yeah that's just a set that should work
<drozdziak1>
How do I insert a *.ko.xz? Do I need to unpack?
<sterni>
idk how the kernel is built actually
<sterni>
you'll have to look through the nix expression that does that
litschi has quit [Quit: WeeChat 2.9]
<drozdziak1>
sterni `xz -d -k *.ko.xz` was enough
<sterni>
(also not sure what you are trying to achieve)
<sterni>
are you trying to insert an additional module?
<drozdziak1>
wterni r8168 is borked because kernel builds started mutating their own tree so I'm cheating by looking how `r8125` does things :P So far so good, it built
<drozdziak1>
Now I want to test the module without making it part of the boot configuration
<drozdziak1>
so that I can reboot if things go wrong
ahmedelgabri has quit [Ping timeout: 272 seconds]
supersandro2000 has quit [Ping timeout: 265 seconds]
supersandro20004 is now known as supersandro2000
<sterni>
drozdziak1: are you overriding r8125 or kernel?
<drozdziak1>
(Don't quote me on the tree mutation, but I was getting permission denied from a build that would cd the kernel dir and use one of Linux' module build styles that runs make in-tree and references the module dir)
<drozdziak1>
sterni r8168 is the problem module, it's broken == true ATM
<sterni>
ahhh
mbrgm_ has joined #nixos
<sterni>
instead of overriding yourself to death you could also just use a local checkout of nixpkgs to make changes and rebuild from there using -I nixpkgs=$HOME/src/nixpkgs
ddellacosta has quit [Read error: Connection reset by peer]
ddellacosta has joined #nixos
ahmedelgabri has joined #nixos
PhantomFutaba has joined #nixos
<MarcWeber>
I tried packaging linuxcnc. However it installs to /etc (install fails). What is the best way to debug the build? i mean wouldn't it be very useful to have a DEBU|G like statement allowing to access to the protected chroot from the otuside?
<MarcWeber>
nix-sell can be used, but the chroot is missing, rigght ?
mkaito has quit [Quit: WeeChat 3.0]
<MarcWeber>
So is creating new user on a linux and using nix-shell like to mimic the build env closest I can get without much patching ?
troydm has joined #nixos
<supersandro2000>
there is breakpointHook
<supersandro2000>
also you can try to build the package with -K and then open a restricted shell from there
inkbottle has quit [Quit: Konversation terminated!]
<edrex>
i am trying to modprobe on a nixos usb installer, and getting "exec format error". I assume it's because the modules are xz'd. Not finding anything about this. Guidance?
luxemboye has quit [Remote host closed the connection]
nhs has quit [Ping timeout: 260 seconds]
luxemboye has joined #nixos
nhs has joined #nixos
ahmedelgabri has joined #nixos
nhs has quit [Ping timeout: 265 seconds]
ahmedelgabri has quit [Ping timeout: 272 seconds]
nhs has joined #nixos
<matthewcroughan>
Is there a command like hwinfo that only outputs non-variable things? For example, the CPU frequency changes with hwinfo, which means it's not useful to diff.
<AlesHuzik[m]>
Hey. I was updating the version of one of the packages, when I've seen some new sha256 syntax: instead of `sha256 = "0f7xysk0cl48q7i28m25hasmrp30grgm3kah0s7xmkjgm33887pi"` it was `sha256 = "sha256-R1e+eTheS9KqPIHw1QoMJgpSB1ss0gwTUGAojdJM0Zw=";` . Can I read somewhere about it?
<supersandro2000>
AlesHuzik[m]: that are sri-hashes
ahmedelgabri has joined #nixos
<AlesHuzik[m]>
Cool, found it, thanks
<supersandro2000>
PhantomFutaba: it is already in a PR
dongcarl has quit [Quit: Ping timeout (120 seconds)]
dongcarl has joined #nixos
lsix has joined #nixos
RowanG has joined #nixos
<RowanG>
Hello everyone, I want to install nixos on a new Dell XPS 13. But when I boot the installer from USB everything seems to go fine but the gui never appears. Only a cursor stays on screen without anything else. I can't switch to another terminal as it's completely unresponsive.
<RowanG>
Would anyone here have an idea how I can tackle this problem?:)
<rhit>
Hey, hey. Hopefully quick question. `nix store sign-paths` gives me "you are not privileged to add signatures" unless I use sudo. This is only on my NixOS machine. On Fedora with Nix installed, I don't have this issue. Any idea what's going wrong?
attila_lendvai has joined #nixos
<supersandro2000>
rhit: fedora is also running in daemon mode?
Soo_Slow has joined #nixos
<supersandro2000>
maybe trusted user or a similar setting
<rhit>
Is there anyway to debug what's happening while `sign-paths` is running? "trustedUsers" got rid of the privilege error, but now it just hangs forever.
<levels>
Hi all, quick question: when I reference a package dynamically, I get an error that it's not considered a package. This used to work just fine, has something changed this in 20.09?
ddellacosta has quit [Ping timeout: 265 seconds]
<levels>
pkgs."php${v}" where v is eg 73
<levels>
throws The option value `services.phpfpm.pools.pool74.phpPackage' in `...' is not of type `package'.
<levels>
I know php74 is not a package, so I do set v to "" in this case
<levels>
Things seem to be getting worse, now I get this error as well when using `services.phpfpm.phpPackage = pkgs.php;` error: The option value `services.phpfpm.phpPackage' in `/etc/nixos/vagrant-provision.nix' is not of type `package'.
<levels>
Ok, something is definitely broken in nix. Now I get this error after removing every explicit declaration of the phpPackage option for phpfpm: `error: The option value `services.phpfpm.phpPackage' in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/web-servers/phpfpm/default.nix' is not of type `package'.`
<levels>
I'm on the latest channel, just ran nix-channel --update
<srhb>
levels: latest what channel?
<levels>
20.09
<srhb>
levels: That is, nixos-20.09?
<levels>
yes indeed
<srhb>
levels: All the php tests pass on 5c53c720ff690ef82a9fe4849e7b70c104e1c82f, which is current 20.09, likely a local problem.
<levels>
but how, I do not edit /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/web-servers/phpfpm/default.nix
<srhb>
levels: Have you overlayed the php package somehow? :)
<srhb>
levels: The error message is implying that the php package it's supposed to use isn't in fact a package.
<levels>
No overlays for php
<levels>
I do have a bunch of overlays though, but those are for php extensions etc
<levels>
not php itself
ddellacosta has joined #nixos
<srhb>
levels: Start disabling them and see when evaluation passes :)
<levels>
I removed every specific declaration of the phpPackage option so it's using the default value now, which is pkgs.php
Jd007 has joined #nixos
<srhb>
levels: So you've likely broken pkgs.php specifically.
waleee-cl has joined #nixos
<levels>
I'll try without any overlays then
<srhb>
levels: You can also see if nix-instantiate '<nixpkgs>' -A php gives you some more insight.
nhs has joined #nixos
<levels>
srhb that gives /nix/store/m7lffr34ifjiyj0qs6mfsm02nnvjxas6-php-with-extensions-7.4.15.drv
ddellaco_ has joined #nixos
<levels>
I guess that's the correct one
<srhb>
levels: Yes, that does sound right.
<levels>
with and without the overlays
vidbina_ has joined #nixos
<srhb>
levels: Which implies that it's not an overlay that's picked up from the environment that's breaking it (if that truly is the case)
<srhb>
levels: Where are yours defined?
<srhb>
levels: in-config?
domogled has joined #nixos
ddellacosta has quit [Ping timeout: 260 seconds]
<levels>
I have a separate overlays.nix file, which I include as follows: nixpkgs.overlays = map (n: import n) [
<levels>
"${dataPath}/src/overlays/overlays.nix"
ahmedelgabri has joined #nixos
<levels>
];
<srhb>
levels: Right, ok, then the instantiate test tells us nothing, since it isn't using those.
<srhb>
levels: In other words they may still be the culprit :)
<levels>
this has been working for years now, that's why I'm so confused it all of the sudden now starts failing on me
<srhb>
Hopefully it'll become clearer once the error is eliminated.
<levels>
I'll continue trying without overlays, quite some stuff depends on those though...
nhs has quit [Ping timeout: 264 seconds]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
<srhb>
levels: If it's too cumbersome you can try building php _with_ the overlays instead, explicitly
<levels>
ok, now all overlays are gone, and I'm back to the same error: error: The option value `services.phpfpm.phpPackage' in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/web-servers/phpfpm/default.nix' is not of type `package'.
erhandsome has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
maier has joined #nixos
erhandsome has joined #nixos
<maier>
In my multi-package Haskell project, I need one nix expression that is a set of all "our" packages. Is there a way to "discover" those by finding cabal files somehow? (I'd still need to exclude one, but I guess that's possible somehow).
rb2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<maier>
At the moment we're just writing those down manually, but that makes it three locations where I need to think of adding it, and two would be much better (one being the README then).
<zn46>
My nixos install journey so far: background - I'm familiar with distros like debian, I've used nix-on-debian for several months, I used nix to develop an alternative to a somewhat thorny build system for a project I work on. So given that background: I was able to install nixos on a bare metal machine after 2 hours of effort. Much of that time was
<zn46>
sorting through how to get lvm-atop-luks for the `/` partition set up, and there were maybe 4 or 5 hurdles.
cptchaos83 has joined #nixos
<maier>
-quit
maier has quit [Quit: leaving]
<zn46>
Now, after about 1 hour of effort I have failed to create a user account I can log into after experimenting with many different `configuration.nix` tweaks, but all of them have `users.mutableUsers = false`.
<zn46>
Currently I have `users.users = { root = { hashedPassword = "…"; }; myuser = { hashedPassword = "..."; }; };` and after doing a `nixos-rebuild build` I can log out and in as root, but not as `myuser`. Furthermore, `myuser` doesn't appear in `/etc/passwd`. Should that user appear there after a rebuild?
<zn46>
A really helpful tidbit from IRC yesterday was someone telling me `man configuration.nix` and `nixos-option` exist. I wish the manual had said both of those things at the very beginning of the Configuration section…
<srhb>
zn46: That would probably be a helpful addition. :)
justanotheruser has joined #nixos
<srhb>
zn46: And yes, the user should appear in /etc/passwd
<srhb>
zn46: First things first, are you sure your configuration was actually switched with your myuser addition?
<zn46>
The user doesn't appear in /etc/passwd, and no homedir exists in /home.
nhs has quit [Ping timeout: 272 seconds]
<zn46>
Maybe? Do I need to do anything after `nixos-rebuild build`?
<zn46>
hehe... oh man. I haven't activated any of these changes. No wonder.
<srhb>
zn46: It happens, and there's a lot to take in. :)
vidbina_ has joined #nixos
hyper_ch has joined #nixos
mupf has joined #nixos
<zn46>
I'm not the best at reading docs linearly. I often just jump straight to a specific section that I assume is the next logical step…
dev_mohe has joined #nixos
<zn46>
If I had also done `nixos-rebuild --help` I would have figured out the same thing.
<srhb>
Well, you came here, and usually the channel is pretty quick to help as well. :)
nhs has joined #nixos
grahamf has joined #nixos
aleph- has quit [Quit: WeeChat info:version]
<zn46>
Ok, here's a snag that seems system specific but is slowing me down: when I first started the install, I could press `alt-f2` on the installer to get a new tty. Later, I discovered the keyboard didn't work while entering the disk encryption password, and https://github.com/NixOS/nixpkgs/pull/96639 seemed to solve my issue, so I added
<zn46>
`hid_microsoft` to `boot.initrd.kernelModules`. Now however, I cannot switch to other ttys, even when booting the installer (not my installed instance). In the installer shell prompt it prints `^@`. Does anyone have clues about this?
<zn46>
Do I want a different hid driver, and how can I diagnose / discover which one is correct?
ddellaco_ has quit [Remote host closed the connection]
aleph- has joined #nixos
abathur has quit [Quit: abathur]
<grahamf>
hi folks. are there string comparison functions in the Nix language? I was looking to filter a set of attrNames, e.g. builtins.filter (name: hasSubstring name "xyz") (attrNames someSet). But I can't find a hasSubstring function anywhere.
<srhb>
zn46: Does the keyboard have a function key? "Fn"? (Not F1... etc)
alexherbo2 has quit [Remote host closed the connection]
<zn46>
srhb, that's a good idea. Is there a console tool I can use that will display solid debug info about all keyboard input?
bvdw has joined #nixos
<zn46>
Different issue: I am generating user-specific hashed password files with `mkpasswd -m sha-512 > /path/to/user/passwd`, then in `configuration.nix` in each user section I have `hashedPassword = builtins.readFile /path/to/user/passwd`. This works for one password file but not another. I've tried swapping them (one for root one for normal user).
<srhb>
zn46: I don't know of any. But if you do have the Fn key, I would guess that Fn+ESC toggles FnLock
<zn46>
I've tried rerunning `mkpasswd -m sha-512`, and newly generated results don't work. The build process issues a warning that the hash "may be invalid".
<aleph->
So question, I'm currently mirroring the 20.09 channel via https://paste.rs/xHD once I've fully generated this dump of .nar/.narinfo files how exactly would I go about ingesting them into the machines binary cache/(/nix/store)
<zn46>
Ah, it was the newline in the file, so `mkpasswd -m sha-512 | tr -d '\n' > /path/to/file` does work.
<zn46>
Is there an easier way to configure hashed user passwords in separate files from `configuration.nix`?
<srhb>
zn46: If you surround the hash with "" it's a valid nix string, so it can be imported.
<srhb>
zn46: Whether you consider that easier, I don't know :)
<jasom>
for upstreams using autotools that don't include the "configure.sh" is just putting "bash ./autogen.sh" in the preConfigure hook the right solution?
supersandro2000 has joined #nixos
simonpe^^ has quit [Remote host closed the connection]
<aminechikhaoui>
Would nix verify --all do an update to the local sqlite database if it would find for example a deleted path that was removed without nix knowledge ?
<simpson>
In general, no, actual communication with the Docker daemon is not okay, but it's still possible to build OCI-compatible containers using Nix alone.
<rauno>
Actually my prob is that one kernel module that i need is now developed with building with docker only..
<rauno>
And i'm trying to find a easiest way how to port that solution so i could get that module and insert it :D
<simpson>
Huh. That's an interesting situation. Perhaps in that case we could somehow "decontainerize" the build automatically?
<mpickering>
I have deployed two machines to ec2 with nixops and setup an encryptedLinksTo between them. I am trying to ping one machine from the other without success
<mpickering>
From my local machine I can ping them both
<mpickering>
Security policies are set-up to allow icmp..
<mpickering>
Ideas?
IRCsum has quit [Remote host closed the connection]
<rauno>
simpson, any ideas about that decontainerizing? reverse-engineering it totally would take alot time i think
<mindavi>
I'm looking at this PR: https://github.com/NixOS/nixpkgs/pull/102398. The patch adds some tools to the a2x script that builds documentation. However, due to the direct referencing with ${libxml2.bin}, cross-compiling is broken. Is there any way to reference the nixpkgs from the host platform using the inline syntax?
<zn46>
Yay, so I'm running nixos with an herbstluftwm session and have done my first pass through the manual's configuration section. I don't quite yet understand how to manage the user account in a nixy way. For example, I'd like herbstluftwm to start some terminal on start, say alacritty. Is there some way I can use nix to declaritively specify "this
<zn46>
user's herbstluftwm config depends on alacritty"?
<zn46>
I know how to do "nix-env -i alacritty" then edit the herbstluftwm config, but then I don't maintain that dependency info and it's not declarative.
<qyliss>
zn46: have you come across home-manager?
ddellacosta has joined #nixos
<qyliss>
it allows you to declaratively specify user config files and packages, and can be integrated into NixOS
hiro98 has quit [Remote host closed the connection]
ddellacosta has joined #nixos
<AmandaC>
Is `security.wrappers.gitolite-shell-nginx = { source = "${pkgs.gitolite}/bin/gitolite-shell"; owner = "gitolite"; group = "nginx"; };` Correct to create a wrapper that will run `source` as user gitolite, group nginx?
<alexfmpe>
mdash: I did get it building for me way back then, but upstreaming the dependencies had lots of latency and at some point someone chipped in linking to their own packaging of tezos (by that point using more newer versions of some dependencies) - given that already existed I didn't see much point in me replicating that work, dunno if that was ever upstreamed though
domogled has quit [Read error: Connection reset by peer]
<infty>
Hey, does anybody know what the executable name for R (the statistics programming language) is? I tried running `r` in a `nix-shell -p rWrapper`, but it's not found. Single-letter-named languages are a pain D:
<dxb[m]>
<crockity "so, and this question probably c"> well when you use nix-shell, the packages _do_ go into the nix store, but once you leave the nix-shell they're no longer linked to anything (unless they're linked somewhere else…) and will be cleaned up next time a gc runs
<crockity>
gotcha, reading the first link you sent and basically if I do nix-build instead of shell, they become part of the system permanently right?
ddellaco_ has quit [Ping timeout: 260 seconds]
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #nixos
<dxb[m]>
i don't think so…
<crockity>
oh lmaooo
ddellacosta has quit [Ping timeout: 240 seconds]
<dxb[m]>
so you're not wanting to add these to your configuration.nix, right?
<crockity>
wait...
<crockity>
ur telling me i misunderstood the whole thing and i can just add the packages to configuration.nix and theyll get installed
<Guest55499>
dxb[m]: i am BACK, so i am reading that configuration.nix is only available on nixos, if this is true, I think i will just bite the bullet and use nixos!
<dxb[m]>
<Guest55499 "dxb: i am BACK, so i am reading "> yeah that's true. you can use `nix-env -iA <package>` to install something using the nix package manager on other distros
<Guest55499>
found this, this is exactly what i wanted!
erasmas has quit [Quit: leaving]
<Guest55499>
i just kept reading and i see what you meant by what u said now!! very clever, i love it!
<qyliss>
Guest55499: you could also look into home-manager, for the closest experience to NixOS you can get without using NixOS
<Guest55499>
yeah i have it open funnily enough, but i think i will look at it once i get more comfortable with nix
justanotheruser has quit [Ping timeout: 240 seconds]
<qyliss>
makes sense :)
growpotkin has joined #nixos
<Guest55499>
ohhh so with that config.nix i declare the configs like "firefox enableflash" blah blah blah before and then i use nix -iA nixpkgs.mypkg
<Guest55499>
i get it now, im so smart rn
<qyliss>
Guest55499: if you want declarative package management, you should avoid nix-env -i
<qyliss>
(or -iA)
<qyliss>
,declarative
<{^_^}>
There are multiple ways of managing a user declaratively. 1) nix-env -ir, compatible with "temporary" imperative use of nix-env; 2) buildEnv, providing more control over the paths that are linked into the profile; 3) home-manager, providing nixos-like config for your ~. https://git.io/fp0aU contains a comparison of the three methods and a sample expression for option 2.
<Guest55499>
thank you! and qyliss why avoid -iA?
<qyliss>
because it's not declarative!
<Guest55499>
oh so wait what would i run then? D:
<qyliss>
moment
dsrt^ has joined #nixos
<qyliss>
Guest55499: oh actually if you're doing it the way the manual tells you that's fine
ddellacosta has joined #nixos
<qyliss>
the way it suggests slightly suboptimal and we should maybe rewrite it, but not in any way that matters when you're just getting started
<qyliss>
the problem with -iA is that you can also use it to install packages without having them in a configuration anywhere
<qyliss>
e.g. nix-env -iA nixpkgs.hello
slack1256 has joined #nixos
<qyliss>
and you don't get all the benefits of Nix by doing that
<Guest55499>
so i should give them horrible unrememberable names, got it thenk u
<Guest55499>
oh?
chisui has quit [Ping timeout: 240 seconds]
<qyliss>
well, if you install packages one at a time imperatively, like nix-env -iA nixpkgs.hello to install the hello program, that'll mean the packages you have installed will get out of sync with what's in your nix file
<qyliss>
make sense?
<Guest55499>
oh, well i would avoid really hard to do that
<Guest55499>
ye ye
<qyliss>
yeah
is_null has quit [Remote host closed the connection]
<Guest55499>
because the idea is to be able to carry this file with me
growpotkin has quit [Ping timeout: 246 seconds]
<qyliss>
but the way the manual says is fine, because you're only ever installing one package (your package defined in your nix file) and it's always the same one
<notpiika>
I have my DPI scaling set via `Xft.dpi` in my Xresources. Every app renders fine. However, whenever a GTK app opens a file dialog, it's opened more zoomed in than full screen, so I can't even use the dialog. If I unset `Xft.dpi`, the window opens small and normal, but every other app is very small.
Acou_Bass has quit [Read error: Connection reset by peer]
<rednaZ[m]>
I want to run python app pancritic.
<rednaZ[m]>
It is not contained in `nixos.pythonPackages`
Acou_Bass has joined #nixos
ahmedelgabri has quit [Ping timeout: 264 seconds]
bn_work has quit [Quit: Connection closed for inactivity]
growpotkin has quit [Ping timeout: 256 seconds]
<rednaZ[m]>
So I tried `nix-shell -p 'python3Packages.pip'`, `pip install -t . pancritic`, `bin/pancritic`
<rednaZ[m]>
But that gives me `ModuleNotFoundError: No module named 'pancritic'`.
<rednaZ[m]>
I do not really know the python ecosystem.
<rednaZ[m]>
The pip command seems generally broken the way I use it. `pip search` gives me `xmlrpc.client.Fault: <Fault -32500: "RuntimeError: PyPI's XMLRPC API is currently disabled due to unmanageable load and will be deprecated in the near future. See https://status.python.org/ for more information.">`.
<qyliss>
if you want to run a program that isn't packaged your best bet is to write a derivation for it
faffolter has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rednaZ[m]>
qyliss: If a package is not in nodePackages, I can simply run `npm install` and `npx`. If a package is not in haskellPackages, I can simply run `stack install`.
acarrico has joined #nixos
<rednaZ[m]>
qyliss: In these ecosystems, my best bet is not to write a deriviation for it, is it?
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 260 seconds]
Mateon2 is now known as Mateon1
Hail_Spacecake has quit [Ping timeout: 268 seconds]
ddellacosta has joined #nixos
<rednaZ[m]>
qyliss: Does pip in NixOS behave differently than on other linux distributions?