<emptyflask>
I've been attempting to run a circleci suite using the nixpkgs/nix:nixos-20.03 docker image, but am getting hung up on tzdata -- it's not present. installing it via `nix-env -iA nixpkgs.tzdata` doesn't seem to help
supersandro2000 has quit [Disconnected by services]
<danderson>
I wonder if there's any appetite in the nixos world for making /bin/sh be dash instead of bash
<danderson>
my motivation: I have to write shell scripts that are strictly posix shell compliant (sans bash extensions), but bash when invoked as `sh` happily accepts bashisms. So I routinely break the build on other platforms that have a more strictly compliant posix shell.
heyitsrama has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JkTm1
<{^_^}>
[nixpkgs] @dbirks opened pull request #103255 → copilot: init at 0.6.0 → https://git.io/JkTmb
leungbk has joined #nixos
cole-h has quit [Ping timeout: 260 seconds]
<Ankhers>
My firefox appears to be broken. It keeps asking if it should be the default browser and my extensions seem to be installed, but none of them appear to be working. I'm on NixOS. Is there any chance anyone else is in a similar boat?
<srid>
Not being able to override cache priority at client level sucks. Is there reason why the server must force every user to use its defined priority?
h0m1 has joined #nixos
nuncanada has quit [Read error: Connection reset by peer]
<{^_^}>
[nix] @wizeman opened pull request #4242 → Fix stack overflow introduced in #4206 → https://git.io/JkTCp
nuncanada has joined #nixos
expelledboy has quit [Ping timeout: 264 seconds]
jakimfett has joined #nixos
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
jakimfett has left #nixos [#nixos]
spacefrogg has joined #nixos
cantstanya has quit [Ping timeout: 240 seconds]
jakimfett has joined #nixos
cantstanya has joined #nixos
cantstanya has quit [Remote host closed the connection]
nuncanada has quit [Quit: Leaving]
zakame has quit [Ping timeout: 256 seconds]
cantstanya has joined #nixos
zakame has joined #nixos
kaliumxy1 has joined #nixos
kaliumxyz has quit [Ping timeout: 256 seconds]
marco[m]3 has joined #nixos
<pittma>
what's the tick to probing kernel modules? I just installed v4l2loopback and tried to modprobe it and it can't be found. I'm sure there's a step I've missed somewhere.
<pittma>
*trick
leungbk has joined #nixos
stoile has quit [Ping timeout: 256 seconds]
lawr3nce has quit [Remote host closed the connection]
<clever>
pittma: already played with that locally a while back
domogled has joined #nixos
Supersonic112 has joined #nixos
<pittma>
Nice! Yeah. It's working now.
<pittma>
I found exactly that in the logs. From you, no less!
<clever>
heh
Supersonic has quit [Ping timeout: 272 seconds]
Supersonic112 is now known as Supersonic
<catern>
is there a good bug/issue/document anywhere documenting why NixOS/Nix packages on foreign distros need nscd? (I understand why myself but wondering if there's something I can link to)
<clever>
catern: its due to compatability problems between the libc nix choose, and how nss wants to dynamically load libs into the app for avahi's .local
<clever>
nss wants to be able to dynamically shove a lib into any app on the system, and they expect only one libc
<catern>
yes, I understand why myself but wondering if there's something I can link to
<clever>
because who would be crazy enough to allow a different libc in every single app? :P
cantstanya has quit [Ping timeout: 240 seconds]
<clever>
cant think of any documents that i know of
<omasanori[m]>
about /bin/sh: mrsh is promising ihmo, as, in contrast to dash is a successor of ash which predates POSIX iirc, it follows the spec tightly
<omasanori[m]>
anyway I hope NixOS will have a minimal and robust script interpreter and a ubiquitous interactive shell in the base system
<evax>
could anyone help with #102343? The question in particular is the possibility of caching a binary package somewhere. The source is releasing in place, so minor versions all use the same filename which breaks hashes.
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.streamz: 0.5.5 -> 0.6.1 »: https://git.io/JkTKS
spudly- has joined #nixos
<Scriptkiddi>
sorry to bother, but did somebody remove the hacktoberfest tag from nixpkgs? People who wanted to get a shirt and did prs in the last couple days of october are now Ineligible, could we fix this?
<bk1603[m]>
I just updated nixos and now the screen only updates when I move the mouse. (As in if I type something or scroll a page, I see nothing happening, the screen is just stuck, but then as soon as I move the mouse the screen updates and then is stuck again until I move the mouse again.) I don't know how do I search for this particular issue though. Any advices? I am on nixos unstable.
<worldofpeace>
bk1603: what desktop? It sounds like whatever the compositor is it crashed
<bk1603[m]>
Oh sorry forgot mentioning that, I am using dwm, so whatever is the default x compositor I guess?
cr4y1__ has joined #nixos
domogled has joined #nixos
<bk1603[m]>
I mean I would have said no compositor, but something must have been managing the transitions before this happened.
<{^_^}>
[nixos-homepage] @garbas pushed to redesign-features « description and new benefit »: https://git.io/JkTMp
jonatanb has joined #nixos
<bk1603[m]>
worldofpeace: nvm, upon reading the logs, I had the wrong display drivers set it seems, changing that worked. I wonder how did it not crash earlier. Thanks anyways!
detran has quit [Ping timeout: 260 seconds]
detran has joined #nixos
Chiliparrot has quit [Ping timeout: 268 seconds]
Chiliparrot has joined #nixos
philr has quit [Ping timeout: 260 seconds]
jonatanb has quit [Remote host closed the connection]
tom39291 has quit [Ping timeout: 256 seconds]
tom39291 has joined #nixos
cfricke has joined #nixos
werner292 has joined #nixos
<{^_^}>
[nixos-homepage] @garbas pushed to redesign-features « next benefit »: https://git.io/JkTyX
werner291 has quit [Ping timeout: 260 seconds]
werner292 is now known as werner291
jonatanb has joined #nixos
jonatanb has quit [Remote host closed the connection]
jonatanb has joined #nixos
griff_ has joined #nixos
maxfieldl[m] has quit [Quit: Idle for 30+ days]
test128383[m] has quit [Quit: Idle for 30+ days]
daGrevis has quit [Quit: Ping timeout (120 seconds)]
jhuizy7 has joined #nixos
daGrevis has joined #nixos
jhuizy has quit [Read error: Connection reset by peer]
jhuizy7 is now known as jhuizy
ryzokuken has quit [Remote host closed the connection]
ryzokuken_ has joined #nixos
m0rphism has joined #nixos
andreas31 has quit [Ping timeout: 240 seconds]
oida has quit [Ping timeout: 240 seconds]
nicoo has quit [Ping timeout: 240 seconds]
oida has joined #nixos
vidbina_ has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicoo has joined #nixos
andreas31 has joined #nixos
FRidh has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed 81 commits to staging-next: https://git.io/JkTQ6
<bk1603[m]>
How can I install a specific version of nvidia driver? I want to install 440.100, since that is the driver that worked perfectly well with my graphics card. I don't know why but anything newer just doesn't show any options in nvidia-settings.
jonatanb has quit [Remote host closed the connection]
civodul has joined #nixos
jonatanb has joined #nixos
musteresel- has joined #nixos
<musteresel->
Hi, bluetooth question: I have a bluetooth dongle which is connected successfully and can be used (e.g. via bluetoothctl), but it doesn't show up as /dev/hci0 (even thouhg it is referred to as "hci0"). I think libpcap/tcpdump needs this, though. How can I add it as /dev/hci0?
jonatanb has quit [Remote host closed the connection]
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @7c6f434c pushed 2 commits to release-20.09: https://git.io/JkThs
fuzzypixelz has joined #nixos
cole-h has quit [Ping timeout: 272 seconds]
Chiliparrot has quit [Ping timeout: 256 seconds]
AWizzArd has quit [Remote host closed the connection]
<fuzzypixelz>
Hello. A have a question, but before that I need to give some context. I have a wm installed on my distro (not nixos) with some gtk configuration files, and a while ago I decided to try KDE so I installed it. The thing is, when I removed it later and logged back in to my wm, all my gtk was overwritten by KDE and of course the package manager didn't fix them back me. What's more, during the installation there was a conflicting package that
<fuzzypixelz>
I agreed to remove, and I ended up with no package in its place after removing KDE.
Chiliparrot has joined #nixos
<fuzzypixelz>
All this had me going around my system fixing config files, the weird thing is that most of the new lines were simply appended to my old ones!
<fuzzypixelz>
Does NixOS fix these kind of problems? If so, how?
<{^_^}>
[nixpkgs] @mikesperber opened pull request #103292 → libtensorflow_2: add TensorFlow 2 as a library → https://git.io/JkTju
<fuzzypixelz>
All these programs interacting with all these other programs in non-trivial ways, who knows how much more the state of my system was altered
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/Jkkem
s34m has joined #nixos
<ajs124>
[fuzzypixelz](https://matrix.to/#/@irc_freenode_fuzzypixelz:helsinki-systems.de) the short answer is yes, nixos does solve this and the long one is it's complicated
<dminuoso>
fuzzypixelz: So to start with, nixpkgs which acts as our package manager, works by maintaining a global store under /nix/store
<dminuoso>
fuzzypixelz: *Every* package is kept inside there, with a hash in it. That way, we can maintain concurrent versions or build flags
<dminuoso>
We stop using "pre-known directories" like /usr/bin or /usr/lib and rather try to synthesize a fresh environment, essentially by manipulating environent variables
<dminuoso>
so that's how packages themselves are managed
expelledboy has quit [Ping timeout: 272 seconds]
alp has quit [Ping timeout: 272 seconds]
<dminuoso>
that also means "rolling back" a version is essentially a no-op. installing things into /nix/store doesn't "have effects on other packages"
FreeVariable has joined #nixos
<FreeVariable>
Just wanted to say a big THANKS for this amazing OS which is probably the best thing that happened to Linux in the last 10 years.
<dminuoso>
nixos extends this with some other features to be able to declaratively describe not just packages, but the entire linux (bootloader, kernel, systemd units, etc). nixos has the notion of "generation" which roughly corresponds to the "current state of your system"
<dminuoso>
a generation is essentially just a bunch of symlinks into the nix store, so keeping multiple generations is easy
<{^_^}>
[nixpkgs] @andir pushed commit from @jb55 to master « cp437: init at v0.6 »: https://git.io/Jkke9
<dminuoso>
that means, switching back to an "old installation state" is as simple as just changing your environment to have the other profile in your PATH
<dminuoso>
tada. instant and perfect rollback :)
<dminuoso>
so we dont have any "mutable system state" to begin with.. (almost)
<FreeVariable>
By the way, what is the recommended Bluetooth controller under a Plasma DE? Bluez?
<worldofpeace>
either has to prefer $PATH or hardcode it
<gchristensen>
yeah
<worldofpeace>
hmm, puts a /nix/store/ version of sudo in path. shouldn't the /run/wrappers be first?
<gchristensen>
yup
<gchristensen>
the patch I'm trying now removes the /nix/store sudo and puts $PATH at the end of PATH
Chiliparrot has joined #nixos
<worldofpeace>
gchristensen: interesting.
<gchristensen>
since /run/wrappers is part of NixOS and this patching is done as part of a nixpkgs package, I don't think it is really right to put /run/wrappers in PATH
<worldofpeace>
gchristensen: Oh, I'm looking at the postFixup rn and I see what you're talking about
eoli3n has joined #nixos
<infinisil>
gchristensen: Maybe we should have a sudo wrapper that defers to /run/wrappers in case of NixOS, otherwise does something else
<infinisil>
This wrapper then also live in /nix/store
<infinisil>
s/then/can then
<worldofpeace>
good idea
cosimone has quit [Quit: cosimone]
<worldofpeace>
though it would add a level of complication, can u even wrap sudo?
<worldofpeace>
like, u could easily do `. /etc/os-release if [insert expression when $ID is nixos] exec /run/wrapper/... else ...`
bitmapper has quit [Quit: Connection closed for inactivity]
<infinisil>
I don't see why it wouldn't be possible
<axx>
hi everyone, what is the recommended way to mount a BTRFS subvolume on NixOS?
<axx>
technically, this BTRFS subvol is on an encrypted harddrive, but i'm quit happy with unlocking it manually with `udiskctl` for now, so that should not be a big part of the answer i think
<{^_^}>
[nixos-homepage] @garbas pushed 2 commits to redesign-features: https://git.io/Jkkcg
<yurb>
axx: you can set the default BTRFS subvolume on the filesystem itself if you want
lordcirth__ has joined #nixos
mananamenos has quit [Read error: Connection reset by peer]
mananamenos has joined #nixos
<yurb>
Or you can specify it in configuration.nix, something like this: https://dpaste.org/FqMr
lordcirth_ has quit [Ping timeout: 240 seconds]
<yurb>
I'm using BTRFS on a LUKS-encrypted volume on a removable disk this way
<yurb>
I'm using udiskie for unlocking and mounting it
<yurb>
And it honors the mount options specified in configuration.nix
<pushqrdx>
did anyone manage to make alsaequal work on nixos? i installed the package and added the needed asound.conf but the equalizer module isn't loaded and i get an error running alsamixer -D equal
<{^_^}>
[nixpkgs] @FRidh pushed 5 commits to python-unstable: https://git.io/Jkkgr
s34m has quit [Ping timeout: 256 seconds]
<Henson>
I've got a question about NixOps. When I first deploy to a system it asks me for the password and then uploads a public key so it doesn't need a password anymore. But say I delete that key, or go back to regular /etc/nixos/configuration.nix on the remote machine and then want to re-deploy again. Nixops no longer asks for the password and fails because the passwordless method doesn't work
<simpson>
Yeah, nixops doesn't really have a way to un-enroll machines, AFAIK.
<Henson>
simpson: is there a way I can tell nixops to ask me for the password again?
<Henson>
simpson: I'm looking into adjusting entries in the nixops database at the moment
<cransom>
deleting (or maybe massaging?) the state file would be the only option
hyper_ch4 has joined #nixos
<cransom>
changes on the remote machine made the state file invalid, nixops doesn't account for that.
<simpson>
It might be possible to ask nixops to forcibly delete the machine locally, but I'm not sure how.
<Henson>
cransom: so maybe just deleting the deployment and starting over is the easiest?
<cransom>
assuming there's no other changes in there that you care about losing, that's what i'd do, yes.
<Henson>
cransom: ok, thanks
<Henson>
simpson: thank you, too!
kalbasit has joined #nixos
hyper_ch2 has joined #nixos
hyper_ch5 has quit [Ping timeout: 272 seconds]
saschagrunert has quit [Remote host closed the connection]
hyper_ch4 has quit [Ping timeout: 240 seconds]
fendor_ is now known as fendor
heyitsrama has joined #nixos
<axx>
another possibly obvious question, is there a way to speed up nixos-rebuild switch? by only updating the packages / package list every week for instance? I'm not sure, but my current understanding is that at every build, it will check if there is a new version for any package on the system and then try and build that, is that right?
<axx>
i realise i'm not even sure i've set up a binary cache either.. hmm
<Denommus>
axx: it will only check for updates if you updated the channel
<axx>
thanks
<axx>
so i need to manually update the channel, ok!
mupf has quit [Quit: WeeChat 2.9]
expelledboy has quit [Ping timeout: 264 seconds]
ilmu has quit [Ping timeout: 264 seconds]
mupf has joined #nixos
ilmu has joined #nixos
expelledboy has joined #nixos
<tenniscp25>
How can I fetchGit from a private repo in configuration.nix's imports?
<{^_^}>
[nixpkgs] @roberth pushed 5 commits to release-20.09: https://git.io/Jkkad
<Henson>
tenniscp25: I would say to define the path of your private repo using fetchGit in a let block, and then add this defined path to your imports. For example {config, pkgs, ...}: let privateRepo = fetchGit { blah blah } in { imports = [ privateRepo ]; } which assumes that privateRepo has a default.nix file in its root directory. If not, you'll have to specify the path to the .nix file to import
sigmundv has joined #nixos
hyper_ch has joined #nixos
Fare has quit [Ping timeout: 264 seconds]
werner292 has joined #nixos
hnOsmium0001 has joined #nixos
CptCaptain has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed 2 commits to python-unstable: https://git.io/JkkVG
ilmu has quit [Ping timeout: 244 seconds]
PetitOrion has joined #nixos
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
<CptCaptain>
Where do I find documentation on lib.mkOption and related functions? It's not a builtin function, nor is it a nixpkgs library function.
<tenniscp25>
Henson: I tried to do that with programs.ssh.extraConfig but git failed to find ssh-key file. I guess it's because the extraConfig gets executed after the let block.
whatisRT has joined #nixos
jonatanb has joined #nixos
sigmundv has quit [Quit: Leaving]
<srhb>
CptCaptain: In lib/options.nix, insofar as it's documented.
<srhb>
CptCaptain: Which gets written (or not) depending on some option's value?
<{^_^}>
#102340 (by FRidh, 1 week ago, open): Tracking issue for Qt/KDE issues on 20.09
<CptCaptain>
srhb: Yes
<srhb>
CptCaptain: Usually you'd just make an option which defaults to null, and write the section if it's not null.
jonatanb has quit [Ping timeout: 256 seconds]
<srhb>
(eg. with optionalString)
magnetophon has joined #nixos
<Henson>
tenniscp25: I'm not sure if it can use a SSH key file or not. Looking at the source code, which I think is at nixpkgs/pkgs/build-support/fetchgit/default.nix it doesn't look like it can. When I use this command the user executing it is able to connect to the private repositories without a password and it works that way.
<CptCaptain>
srhb: Ah, thank you. That's what I was looking for
<srhb>
CptCaptain: You could also just use the empty string instead, it doesn't matter much, though the type `nullOr str` in the former case might be more enlightening than `str` in the latter.
Fare has joined #nixos
<srhb>
`nullOr str` looks like a discount `Maybe String` if you squint a bit.
graf_blutwurst has quit [Remote host closed the connection]
domogled has joined #nixos
<pushqrdx>
does anybody use alsaequal equalizer?
<pushqrdx>
i tried to install it and added the asound config but it's throwing an error
dbmikus__ has joined #nixos
<CptCaptain>
srhb: Where is nullOr?
<srhb>
CptCaptain: in lib/types.nix. In general, grepping through lib is very useful.
<srhb>
roti_343: I checked every pair on the main download page and I can't see any discrepancies. I'm wondering whether caching of the latest -> exact version redirect is hurting here.
<lordcirth>
An interesting question was asked on https://github.com/NixOS/nix/issues/859 : What is the total size of *.narinfo files on cache.nixos.org? Who would have access to query that?
<{^_^}>
nix#859 (by vcunat, 4 years ago, open): Nix and IPFS
<{^_^}>
#102340 (by FRidh, 1 week ago, open): Tracking issue for Qt/KDE issues on 20.09
<srhb>
lordcirth: I don't know if hydra even remembers them all anymore. I would guess not. If that is the case, then only people with access to list s3 objects.
<infinisil>
Does anybody know of a good testing framework for Nix code?
<srhb>
roti_343: (Though it doesn't matter much except for verification, the installer will install whatever is newest from the channel if you update anyway)
<{^_^}>
[nixpkgs] @dlahoti opened pull request #103333 → nixos/modules/services/x11/clight: update configuration format to new version → https://git.io/JkkMT
vhs has quit [Read error: Connection reset by peer]
ris has joined #nixos
emptyflask has joined #nixos
<{^_^}>
[nixpkgs] @nh2 opened pull request #103334 → libe57format: Fix dependents not finding its cmake config → https://git.io/JkkMa
<pumpy>
can anyone help me confirm if this is a bug? using home manager, setting up i3, i set an extraConfig for the bar to have height 45. well i3 gives me config error on it BUT im using package = pkgs.i3-gaps which DOES have bar height property so it should actually work
ezemtsov has joined #nixos
<ezemtsov>
hi people. How can one use python .whl as an build input to buildPythonPackage?
<lordcirth>
pumpy, have you looked at the generated config file?
<neiluj>
given a nix file containing an attribute set : {...}, how do you import it in an other nix file to append it in an other attribute set with the // operator?
<dminuoso>
neiluj: Is this for nix derivations or nixos?
<srhb>
pumpy: Maybe time to pastebin your config, so we can make sure :)
<pumpy>
the generated .config/i3/config or the .nix?
<Ericson2314>
srhb: weird thing is it came after a few days of the 20.09 update, and not updating anything
tenniscp25 has quit []
<Ericson2314>
my guess is fresh session probably would work better
<Ericson2314>
RIP my tabs :(
<srhb>
Ericson2314: :(
anderscs[m] has joined #nixos
<dminuoso>
Ericson2314: so I had lots of strange bugs which I traced back to modesetting
davidv7 has quit [Ping timeout: 240 seconds]
<dminuoso>
in my case, it was X completely borking out, where some windows would only render the backgroud (which in effect is always the "last content on the screen region from before" with xmonad)
<neiluj>
dminuoso: it's for nixos
<dminuoso>
neiluj: Then the correct way is to use nixos modules with import
<Ericson2314>
dminuoso: weird this was due to mode setting?
<dminuoso>
That is, `{...}: { imports = [ ./foo ]; ... }`
<dminuoso>
Ericson2314: err no hah wait. modesetting fixed it!
<dminuoso>
the intel driver was buggy
<dminuoso>
(but disabling modesetting in your kernel on vms via web consoles is usually a good idea)
<dminuoso>
I conflated these two :)
<srhb>
pumpy: The nix.
<neiluj>
dminuoso: thanks, and is it possible to append the content of foo in some nested attribute set?
<dminuoso>
neiluj: yes
<dminuoso>
neiluj: You can define merging strategies for options
<neiluj>
like, if the main nix file is config = { program.bar = { config = rec { ... }; }; };
<srhb>
pumpy: Is this a NixOS module or a home-manager module?
<CRTified[m]>
Just a quick note for everyone who uses services.mautrix-telegram.environmentFile - you can also supply other settings like the login_shared_secret there, which is not documented as a feature :)
<neiluj>
dminuoso: thanks, i'm going to try this!
<{^_^}>
[nixpkgs] @nh2 merged pull request #103334 → libe57format: Fix dependents not finding its cmake config → https://git.io/JkkMa
<{^_^}>
[nixpkgs] @nh2 opened pull request #103340 → [20.09] libe57format: Fix dependents not finding its cmake config → https://git.io/JkkSt
<srhb>
pumpy: Can you compare the path of i3 in your generated xsession with the one from eg nix-build '<nixpkgs>' -A i3-gaps ?
<pumpy>
CRTified[m]++ tyvm
<{^_^}>
CRTified[m]'s karma got increased to 2
Izorkin has joined #nixos
<pumpy>
srhb sorry how i do that?
<srhb>
pumpy: iirc home-manager generates a ~/.xsession for you
<srhb>
pumpy: In there should <storepath>/bin/i3
<pumpy>
there's no ~/.xsession
<pumpy>
what about storepath?
aleph- has joined #nixos
<srhb>
Huh, really.. Did that change I wonder.
<srhb>
pumpy: Do you have xsession.enable = true; ?
<srhb>
pumpy: At this point, what I think is happening, is: You're launching i3 from NixOS (somehow, through your display manager or somewhere else) and not home-manager at all, because you're missing xsession.enable = true
<pumpy>
btw im using rdp into the system
<srhb>
pumpy: The way home-manager controls which i3 is launched is by explicitly calling exactly that version in your ~/.xsession
<pumpy>
so i'll bet im using path to literal i3
cosimone has joined #nixos
<srhb>
Maybe you have it in your user profile or in systemPackages
<srhb>
Neither will be affected by your changes in home-manager
<srhb>
pumpy: `which i3` should show you more.
<pumpy>
my systemwide config has services.xrdp.defaultWindowManager = "${pkgs.i3}/bin/i3";
<srhb>
pumpy: That'll be the wrong package.
<pumpy>
so when i rdp in, it starts that
<pumpy>
change to pkgs.i3-gaps?
<srhb>
pumpy: Then everything makes sense.
<srhb>
pumpy: You can do that, yes.
<pumpy>
better way to do it?
<srhb>
pumpy: Probably get rid of the home manager package option to avoid confusion though
daniel has joined #nixos
<srhb>
pumpy: Matter of taste. The home-manager setup sort of expects it to take full contrl of your x session, which means xrdp should simply execute your ~/.xsession that home-manager has created
daniel is now known as Guest36714
<srhb>
pumpy: That is, it should _not_ be responsible for launching i3 or any other window manager.
Guest36714 has quit [Remote host closed the connection]
<srhb>
But you can go either route.
<pumpy>
hmm i wanna do it the right way lemme think
<pumpy>
srhb++ tyvm
<{^_^}>
srhb's karma got increased to 131
octe has quit [Quit: adios]
<pumpy>
srhb could xrdp be configured to execute my xinitrc too or does it have to be either set default window manager OR ~/.xsession?
<{^_^}>
[nixpkgs] @FRidh pushed 5 commits to python-unstable: https://git.io/JkkSS
<srhb>
pumpy: I think xinitrc will never be used outside of startx directly, and I don't think home-manager generates it either.
davidv7 has joined #nixos
<pumpy>
ok so use xsession
<srhb>
pumpy: iirc setting the defaultSession to "none" and enabling the (home manager) optoin xsession.enable = true; will do the trick
<srhb>
Though there might be a better name than "none" these days...
pushqrdx has quit [Remote host closed the connection]
<pumpy>
srhb i made `${pkgs.runtimeShell} $HOME/.xsession` the defaultWindowManager. then i enabled xsession.enable. i3 still says bar height and gaps are invalid like it's using i3 not i3-gaps
<{^_^}>
[nixpkgs] @dasJ opened pull request #103342 → nixos/plasma5: Fix when running without aliases → https://git.io/JkkHQ
<pumpy>
the .xsession has a call to i3-gaps /bin/i3 in it so it's GOTTA be working
<pumpy>
ill try rebooting
cosimone has quit [Quit: cosimone]
cjpbirkbeck has joined #nixos
<srhb>
pumpy: It sounds correct to me. If it still isn't working, I guess I was wrong wrt. defaultWindowManager.
<neiluj>
hum, i tried to import an attrset in a nix module like so: let bar = (import ./bar.nix); in { program.foo = { config = rec { ... } // bar; }; }
leungbk has quit [Ping timeout: 256 seconds]
<neiluj>
i get an error along the lines of: A definition for option 'program.foo.config.bar' is not of type `null or string'
<pumpy>
srhb what can i do?
<neiluj>
the bar.nix file provides the bar attribute
mallox has quit [Quit: WeeChat 2.9]
leungbk has joined #nixos
ransom has joined #nixos
<srhb>
pumpy: Try setting the home-manager option xsession.scriptPath = "startwm.sh"; -- if that doesn't do the trick, I suggest going with your first idea of dropping xsession and just feeding xrdp the correct i3 directly.
<{^_^}>
[nix] @edolstra pushed to progress-bar « Add separate progress bars for substituting and building »: https://git.io/JkkQP
<neiluj>
srhb: oh i do get an other error now: syntax error, unexpected end of file, expecting ';'
<neiluj>
at peripherals.nix
<srhb>
neiluj: Yes, you have mismatched indentation and braces too.
<srhb>
But maybe that's from eliding things, I can't tell.
<neiluj>
oh that's right, there's a missing brace
<pumpy>
srhb ok that worked! xsession.enable true, xsession.scriptPath startwm.sh, no defaultWindowManager set. rdp in, i3-gaps must be used because no error!
<pumpy>
srhb++
<{^_^}>
srhb's karma got increased to 132
benley has quit [Ping timeout: 260 seconds]
<srhb>
pumpy: phew. :)
AtnNn has quit [Ping timeout: 240 seconds]
<pumpy>
1 last question, can i put script path into .config/foo/startwm.sh and it'll still work?
Marsuvees has joined #nixos
<pumpy>
xrdp gives us option to set user relative path to the script but i dunno how to do it in nix config lang
jonatanb has quit [Ping timeout: 240 seconds]
<srhb>
pumpy: If you know how to tell xrdp to do that, we can probably figure it out.
woffs has quit [Read error: Connection reset by peer]
<octe>
i notice that the default policy for FORWARDING in iptables is different on different nixos servers i have
<octe>
on some its ACCEPT, others DROP
pushqrdx has joined #nixos
<pushqrdx>
say i want to provide a tool in a dev environment (shell.nix) that isn't necessarily a buildInput, is there an idiomatic way to specify those?
<pushqrdx>
for instance i use entr for watching files
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marsh has quit [Ping timeout: 272 seconds]
<pushqrdx>
where is the best way or place to make that available, does it belong to the local shell environment at all or is it best installed at the user level?
<{^_^}>
[nix] @edolstra pushed to master « Fix use of dirty Git/Mercurial inputs with chroot stores »: https://git.io/Jkkdd
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @earldouglas opened pull request #103355 → Archi: init at 4.7.1 → https://git.io/JkkdA
<manveru>
`nix eval --expr 'builtins.fetchGit { url = "https://github.com/pinpox/dotfiles-awesome"; submodules = true; }' # => in pure evaluation mode, 'fetchTree' requires an immutable input, at (string):1:1`
<neiluj>
why does this result in an error: ./sway/color.nix does't represent an absolute path?
<manveru>
and even with rev, it's `Fetched in submodule path 'awesome-sharedtags', but it did not contain a71daa7dad34e229519a764afa0069d0b53aa060. Direct fetching of that commit failed.`
<pinpox>
manveru: so I can't have submodules and no hash?
<V>
neiluj: ./. + "/${x}"
<manveru>
neiluj: you want `import ./sway + "/${x}"`
domogled has quit [Remote host closed the connection]
<manveru>
pinpox: seems more like it points to a submodule commit that doesn't exist maybe?
<{^_^}>
[nixpkgs] @jtojnar opened pull request #103362 → gst_all_1.gst-plugins-bad: fix build on Darwin → https://git.io/JkkA8
<neiluj>
i mean, it is a relative path, so yeah
<manveru>
err, `import (./sway + "/${x}")`
<pinpox>
manveru: oooh.. I see. I made some commits but didn't push them
<neiluj>
is it possible to cast it to regular text? or maybe append the current working directory to this path
<pinpox>
manveru: Nevermind. The submodule is just one file and hasn't been updated in 4 years from the owner. I'll just take it out and include it in my repo
<manveru>
pinpox: yeah, no submodules is usually the saner waay :)
<manveru>
neiluj: so you want to import all files in a dir?
neiluj has quit [Remote host closed the connection]
<pinpox>
manveru: Does "home-manager switch" "cache" repos somehow? I updated the remote (pushed) of the repo, but running "home-manager switch" doesn't change anything, I was expecting it to pull the latest master
vidbina_ has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @bbigras opened pull request #103363 → chars: init at 0.5.0 → https://git.io/JkkA6
<pumpy>
the nixos bash is inserted a blank line after each command. seems like something going on with PS1=? anyone know how to turn that off?
<neiluj>
turns out that appending ./. + to this string makes the path relative
<pumpy>
echo $PS1 and you can see the \n nixos adds
<neiluj>
the ./. + here might make an implicit cast