<billsun>
<billsun "Is there anyway to override the "> I tried setting fonts.fontconfig.defaultFonts in my configuration.nix, but all the fonts defined in plasma5 gets inserted to the beginning of my custom setting and thus gets preference over the fonts I actually want displayed.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JU4Vl
gueorgui_ has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
gueorgui has quit [Ping timeout: 246 seconds]
cmk_zzz_ has quit [Ping timeout: 246 seconds]
da39a3ee5e6b4b0d has joined #nixos
diamondburned has quit [Ping timeout: 244 seconds]
cmk_zzz has joined #nixos
diamondburned has joined #nixos
m0rphism has quit [Ping timeout: 246 seconds]
cmk_zzz has quit [Ping timeout: 240 seconds]
superherointj has quit [Quit: Leaving]
dramforever has joined #nixos
h0m1 has quit [Ping timeout: 244 seconds]
h0m1 has joined #nixos
dramforever has quit [Quit: Leaving]
sigmundv_ has quit [Ping timeout: 260 seconds]
<ryantm>
aleph-: I think you might be mistaking me for rycee . What error message are you getting?
cmk_zzz has joined #nixos
<{^_^}>
[nixpkgs] @charukiewicz opened pull request #98019 → Version bumps of hledger, hledger-lib, hledger-ui, and hledger-web from v1.19 to v1.19.1 → https://git.io/JU4wO
alexherbo2 has quit [Ping timeout: 244 seconds]
justache has quit [Remote host closed the connection]
<aleph->
ryantm: Woops. That is definitely it haha. Apologies
<aleph->
ryantm: So error I'm getting is that a module I've added to my fork of home-manager but that is not present in the mainline version isn't being found
<aleph->
It seems the system isn't pulling down my copy of home-manager for some reason
<cole-h>
Anybody know why `nix shell ~/workspace/vcs/nixpkgs/nixos-unstable#texlive.combined.scheme-medium` has to build it instead of fetching it from the cache? If I `nix repl ~/workspace/vcs/nixpkgs/nixos-unstable` and `:b texlive.combined.scheme-medium`, I get the cached outpath immediately...
<cole-h>
(I'm using flakes, in case it wasn't obvious; may or may not be relevant)
<{^_^}>
[nixpkgs] @jonringer pushed commit from @nyanloutre to release-20.09 « pythonPackage.python-gitlab: add missing tests requirements »: https://git.io/JU4oR
<cole-h>
e.g. a.nix has `{ ... }: { a = 1; }` and b.nix has `{ ... }: { b = 2; }`, `imports = [ ./a.nix ./b.nix ];` would essentially result in `{ ... }: { a = 1; b = 2; }` (if I'm not misunderstanding)
koh has quit [Ping timeout: 240 seconds]
cushingar[m] has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nix-mode] @matthewbauer merged pull request #111 → make run: use -Q → https://git.io/JU8Rk
<{^_^}>
[nix-mode] @matthewbauer pushed 2 commits to master: https://git.io/JU4ow
GolDDranks has quit [Ping timeout: 245 seconds]
da39a3ee5e6b4b0d has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Ping timeout: 244 seconds]
Supersonic112 is now known as Supersonic
cmk_zzz_ has joined #nixos
cmk_zzz has quit [Ping timeout: 260 seconds]
_DAUS_ has joined #nixos
ManiacOfMadness has quit [Ping timeout: 244 seconds]
_DAUS_ has quit [Ping timeout: 240 seconds]
inkbottle has quit [Quit: Konversation terminated!]
<worldofpeace>
matthuszagh: nixos-enter choots into an install, but judging from the output you shared it failed? the thing is you also have a /nix/store on your live system, and when you're getting all the binaries that could also say " no space left on device". So I wasn't sure where exactly in the execution the failure happened
<worldofpeace>
I believe the command Emil Karlson suggested would be a useful one, btw
<matthuszagh>
worldofpeace: Ke: great i'll try that
endformationage has quit [Quit: WeeChat 2.9]
jb551 has quit [Ping timeout: 240 seconds]
<Ke>
often obviously this is of no use, since the process that ran out of space might clean up the space it used
<Ke>
so nothing might be apparently full
<matthuszagh>
Ke: i'm seeing used 224k avail 549M
<matthuszagh>
df -h /mnt/boot
<Ke>
is there any other filesystem that is full, sometimes it's not the one you expect
<Ke>
if you use btrfs there are occasional spurious ENOSPC bugs
<matthuszagh>
Ke: i am using btrfs
<matthuszagh>
when i run it on /mnt i see 1.9T avail as expected
<Ke>
is it old filesystem?
<matthuszagh>
no i just partitioned the drive and made the fs
<matthuszagh>
is there a way to do su on the installation medium?
<matthuszagh>
can't seem to authenticate, though i can run commands with sudo
<matthuszagh>
when i login i see nixos and root have empty passwords
<matthuszagh>
but su root
<matthuszagh>
followed by enter without a password is an authentication failure
<matthuszagh>
also login to nixos is automatic so i can't start with root
<clever>
matthuszagh: `sudo -i`
<NobbZ[m]>
[matthuszagh](https://matrix.to/#/@freenode_matthuszagh:matrix.org) why do you need it at all, you can do `sudo` everything you said.... But indeed, `sudo su` or `sudo -i` or even `sudo bash` are used often. I'm never sure which one was the idiomatic and correct approach.
<NobbZ[m]>
And googling even taught me about `sudo -s` for an elevated shell.
justanotheruser has quit [Ping timeout: 244 seconds]
<matthuszagh>
clever: thanks!
<matthuszagh>
NobbZ[m]: i'm not sure i do.. just trying things
<zecnate>
The thing is, I don't want to clone or modify `pkgs`. I want to define derivations to build my project that use `pkgs` as a dependency. It seems that `import (fetchTarball ...)` pattern does that.
<zecnate>
I'm not exactly sure why the manual takes this other approach. Is it standard for every derivation author to write their derivation in a branch of the `nixpkgs` repo?
<colemickens>
I really want to get Theia running in NixOS. It's too good of a story if I can get nix+npm stuffs to cooperate
GolDDranks has joined #nixos
<{^_^}>
[nixpkgs] @adamlwgriffiths opened pull request #98030 → raylib: init at 3.0.0 → https://git.io/JU41R
<NobbZ[m]>
[zecnate](https://matrix.to/#/@freenode_zecnate:matrix.org) If you want it for a local project use a `default.nix` that accepts an attrset. One of the attrs should be `pkgs`.
<NobbZ[m]>
Then use `nix-build --attr pkgs 'import <nixpkgs> {}'`
<GolDDranks>
Hi, continuing from yesterday: is there a correct, "Nix" way to build and install external kernel modules? I've managed to build one, but I'm clueless about the installation part, since it'll be neccessarily different from normal binaries that you just call
kleisli_ has joined #nixos
<NobbZ[m]>
[zecnate](https://matrix.to/#/@freenode_zecnate:matrix.org) alternatively you can use `nix-build -E ’(import <nixpkgs> {}).callPackage ./.` if you have more complicated attrset.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cole-h>
colemickens: Probably whichever is in nixpkgs :D
<colemickens>
GitPod itself is also (mixed-licensed,mostly) OSS, but I think a neater version could be built with Nix.
<cole-h>
Oh hey, that's pretty cool
zakame has joined #nixos
<cole-h>
Yeah, I was gonna comment on that
<cole-h>
Let's make gitpod but using Nix instead of Docker ;)
tobeportable has quit [Quit: Leaving]
<cole-h>
oh no
<colemickens>
Yes, a million times yes. You could deploy to docker/kube clusters, but could also offer one click deployment to AWS/Azure/Packet for dedicated instances.
<cole-h>
Something is mucky -- my numbers are emojis again ;D
<NobbZ[m]>
[astro](https://matrix.to/#/@freenode_astro:matrix.org) use it in inputs, and then use it's modules in your modules
nikivi has joined #nixos
cmk_zzz has joined #nixos
cmk_zzz_ has quit [Ping timeout: 240 seconds]
<astro>
what inputs and what modules?
<srhb>
astro: flakes have an attribute outputs = { input1, input2, ... }: { actual outputs }
<srhb>
astro: That is, it's a function from a number of inputs (plus self) to the outputs
<srhb>
astro: You can add any input there.
<srhb>
astro: modules is stuff like your traditional configuration.nix
<srhb>
astro: It's documented further in the nixos manual
kleisli__ has joined #nixos
<srhb>
astro: iirc the nixpkgs top level flake has a nixpkgs.lib.nixosSystem function which takes an argument modules that has all the modules you want
_d0t has joined #nixos
<srhb>
(I guess top level flake is a nonsense term, that's where it lives though)
<srhb>
astro: iow, you can have outputs = { self, nixpkgs, inputFoo }: { nixosConfigurations.yourHost = nixpkgs.lib.nixosSystem { system = ...; modules = [ ./configuration.nix inputFoo.someModuleFromInputFoo ]; } etc.
<NobbZ[m]>
Elvis was meant to say elco... Damn autocorrect...
GolDDranks has joined #nixos
zecnate has quit [Remote host closed the connection]
LogicalOverflow has joined #nixos
Havvy has quit [Ping timeout: 240 seconds]
bourbon has joined #nixos
Havvy has joined #nixos
<astro>
right, I wasn't using flakes for system configuration, and I'm interested in doing that
<astro>
I quickly made an /etc/nixos/flake.nix but nixos-rebuild fails, complaining about an import in hardware-configuration.nix
<srhb>
astro: You likely want to move the undetected bit to flake.nix as nixpkgs.nixosModules.notDetected
<srhb>
astro: In your modules list
zupo has joined #nixos
<srhb>
astro: The problem is that the default hardware-configuration.nix relies on <nixpkgs> (that is NIX_PATH) for that import, which is not supported in pure evaluation.
sputny has joined #nixos
<astro>
so I add nixpkgs.nixosModules.notDetected to the modules list in flake.nix, and remove the import in hardware-configuration.nix?
<{^_^}>
Special commands: find tell locate expand inclusive-language random-pr - Commands sorted by use count, page 0 (use ,<n> to view page <n>): help libraries paste channels ping escape'' escape" -a library overlay pinning ifd profiling unfree ask botsnack which-channel xml xy fancy-uninstall wololo imperative nixlang++ cache pointers pills invite runtimedeps home-manager stateversion thesis exec matrixbridge smart-questions dnw howoldis commands tias
<Guest60563>
,find bin/lsusb
<{^_^}>
,find is temporarily unimplemented
<Guest60563>
,locate bin/lsusb
<{^_^}>
Found in packages: toybox, busybox, usbutils
Guest60563 has quit [Read error: Connection reset by peer]
thc202 has joined #nixos
opticnerve has joined #nixos
inkbottle has quit [Ping timeout: 240 seconds]
zebrag has joined #nixos
opticnerve has quit [Client Quit]
hiro98 has joined #nixos
hiro98 has quit [Remote host closed the connection]
shabius_ has joined #nixos
fendor has joined #nixos
da39a3ee5e6b4b0d has quit [Ping timeout: 240 seconds]
shabius has quit [Ping timeout: 240 seconds]
hiro98 has joined #nixos
Guest60563 has joined #nixos
<bourbon>
woo... finally got around to installing nix on a box
<leotaku>
Is there a good way to transition to using Nix Flakes while still using services/applications that don't directly support it? I am using Hercules CI (which does not yet support Flakes and just takes a simple .nix file as its input) to ensure my packages build correctly, how would I get it to use my Flake inputs?
<bourbon>
if I've got a thing I want to install, do I add the systemd service in the same place as the rest of the "how to install this thing" thing?
<GolDDranks>
Was there some neat command to find the derivation from where a package was built?
<GolDDranks>
Tried with nix-store -q --referrers /nix/store/wjgrpxjhvkbsgpb89yy3s450y48kdny4-kernel-modules, but that only returns former system configurations
<{^_^}>
[nix] @regnat opened pull request #4014 → gracefully handle old daemon versions → https://git.io/JU49P
sangoma has joined #nixos
mmohammadi9812 has joined #nixos
<GolDDranks>
Does anyone have clue how the kernel module packaging works? I have a package /nix/store/wjgrpxjhvkbsgpb89yy3s450y48kdny4-kernel-modules, and I'm trying to figure out how the modules end up in there
<GolDDranks>
I can't find any mentions of some of the modules in the nixpkgs repo
CyberManifest has quit [Remote host closed the connection]
<GolDDranks>
I'm astonished that the module I was trying to wrap actually existed, pre-built thing, as the piece of hardware is quite rare: /nix/store/wjgrpxjhvkbsgpb89yy3s450y48kdny4-kernel-modules/lib/modules/5.4.64/kernel/drivers/media/pci/pt3/earth-pt3.ko.xz Now I'm trying to figure out how it ended up there
<{^_^}>
[nixpkgs] @nlewo opened pull request #98036 → nodePackages.patch-package: init at 6.2.2 → https://git.io/JU4Hg
<GolDDranks>
Uggh, now I have to look into which one of these works better:https://github.com/torvalds/linux/tree/ff8583d6e4e33fe3856a609095c683d5dbe39120/drivers/media/pci/pt3 vs.
<GolDDranks>
Ah, this is why the tutorials told me to blacklist the driver, it's not fully functional, but the external one is
amir has quit [Quit: Have to disappear. Read you later guys!]
Izorkin has quit [Ping timeout: 244 seconds]
Izorkin has joined #nixos
<GolDDranks>
I _guess_ that now that I have built my own pt3_drv.ko, I'll be able to add that to boot.kernelModules and have it hopefully work.
amir has joined #nixos
<{^_^}>
[nixos-search] @garbas merged pull request #190 → Add OpenSearch specifications for both packages and options. → https://git.io/JU4l8
<{^_^}>
[nixos-search] @garbas pushed commit from @Zopieux to master « Add OpenSearch specifications for both packages and options. (#190) »: https://git.io/JU4QI
<{^_^}>
[nixos-homepage] @garbas pushed to fix-cover-video « add header to asciinema videos »: https://git.io/JU4Qz
<{^_^}>
[nixos-homepage] @garbas opened pull request #531 → add header to asciinema videos → https://git.io/JU4Qg
<wucke13>
I'm currently trying to package something with a meson build, which explicitly requires some modules from boost. How does that work, currenly none of these modules is found?
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
Nikita has joined #nixos
alp has joined #nixos
Nikita is now known as Guest75650
mmohammadi98121 has joined #nixos
<{^_^}>
[nixpkgs] @Chickensoupwithrice opened pull request #98038 → GnomeExtensions.Switcher: init at master → https://git.io/JU4Qy
<zakame>
Hi, how would I override/overlay nixpkgs.perl to build *without* threads? similar to the stage1 stdenv?
Darkmatter66 has joined #nixos
Blackraider has joined #nixos
Darkmatter66_ has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixos-homepage] @garbas pushed 25 commits to feature/2020-redesign: https://git.io/JU4bX
Pwnna has quit [Quit: Bye]
Pwnna has joined #nixos
hiro98 has joined #nixos
xd1le has joined #nixos
mrte has joined #nixos
<joesventek>
I'm currently running nixos-unstable but plan to switch to 20.09. How stable is the 20.09 alpha compared to unstable? When would be a good time to do the switch if I don't wanna mess my system up (too much)?
mmohammadi9812 has joined #nixos
<srhb>
joesventek: It's really hard to say. Ideally it'd only be becoming more stable compared to unstable as it progresses. Anything can happen though, no guarantees. :)
<srhb>
joesventek: (fwiw it's fine for me.)
sangoma has quit [Ping timeout: 240 seconds]
mariatsji has quit [Remote host closed the connection]
<{^_^}>
[nixos-homepage] @garbas pushed to feature/2020-redesign « update of content should only happen in cron github workflow »: https://git.io/JU4NG
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
civodul has quit [Remote host closed the connection]
<astro>
ok, apparently -L stops nix from eating the log in nixos-rebuild
zupo has quit [Ping timeout: 244 seconds]
mallox has joined #nixos
mallox has quit [Client Quit]
<joesventek>
srhb, thanks. I think I'll wait for the beta though.
<LambdaDuck>
Is there any way to make nix-build --dry-run actually *not* build anything, even if there the build depends on an IFD? -j0 kind of works, but doesn't give a list of *what* would be built.
mariatsji has quit [Remote host closed the connection]
<regnat>
Essentially you write a ./buildHook.sh that instead of building will print the drv path somewhere and fail. Then you build with --option build-hook $PWD/buildHook.sh (assuming you're a privileged user) and you get the drv that needs to be built for the IFD
<regnat>
(You can use a pre-build-hook rather than a build-hook as this one is a bit more documented and less likely to break at any moment)
joesventek has quit [Quit: Quit]
nikivi has quit [Client Quit]
nikivi has joined #nixos
joesventek has joined #nixos
orivej has joined #nixos
mallox has joined #nixos
<tnks>
What's the benefit of having everyone's code in NUR over just getting Nix expressions from their individual projects?
Qubasa has quit [Ping timeout: 240 seconds]
Qubasa has joined #nixos
<ldlework>
Anyone have any idea why root cannot interact with pulse/alsa?
fendor has joined #nixos
<ldlework>
amixer works fine as my user, but sudo amixer fails that it can't connect to pulse
<ldlework>
(this is indicative of how all audio apps fail as root)
cfricke has quit [Quit: WeeChat 2.9]
wspthr6 has joined #nixos
Emantor has quit [Remote host closed the connection]
wspthr6 is now known as wspthr
wspthr has quit [Quit: Ping timeout (120 seconds)]
Emantor has joined #nixos
domogled has quit [Quit: domogled]
Qubasa has quit [Ping timeout: 260 seconds]
ManiacOfMadness has joined #nixos
<{^_^}>
[nixpkgs] @timokau merged pull request #86111 → nixos/xserver: clean up the useXFS option → https://git.io/JfqGa
Plien has quit [Quit: Connection closed for inactivity]
<ITL>
Hello. I try to setup a l2tp/IPSec client (connection to a target server). On my old system I just needed to provide target server endpoint, PSK and mark the target server being l2tp. Obviously it is a bit different with nixos. Unfortunately, I am quite new to nixos and not very deep in network related configuration and tooling. My current setup is
<ITL>
nixos, home-manager, sway, networkmanager... I also installed networkmanager_strongswan and networkmanager-l2tp packages, but I have no clue about configuring it right and also didn't find a doc/wiki describing that. I would appreciate, if anyone could give me a hand and maybe pointing me to some docs or template config, please?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heywoodlh has quit [Ping timeout: 264 seconds]
civodul has joined #nixos
<tobiasBora>
Hello, I'd like to write some flake templates, but can't find any doc on it. Notably, I'd like to specify "variables", in order to specify just once the name of the project and then generate all files accordingly.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JUBUh
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @JesusMtnez to release-20.09 « jitsi-meet-electron: 2.2.0 -> 2.3.1 »: https://git.io/JUBUj
heywoodlh1 has quit [Quit: WeeChat 2.9]
knupfer has quit [Read error: Connection reset by peer]
heywoodlh has joined #nixos
alexherbo2 has quit [Ping timeout: 256 seconds]
<aleph->
rycee: j #nixos-home-manager
<aleph->
Woops
mariatsji has quit [Remote host closed the connection]
<{^_^}>
[nix] @edolstra reopened pull request #3883 → Can build single CA derivations → https://git.io/JJawW
<niksnut>
tobiasBora: currently there are no variables, flake templates are just copied verbatim
alp has joined #nixos
<tobiasBora>
niksnut: oh, too bad. Any idea if it's planned to be implemented soon? Or can I call a specific package (implementing advanced templating) when I run "nix init -t ..."?
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos
<niksnut>
tobiasBora: not planned but please make an issue
ixxie has joined #nixos
cantstanya has quit [Ping timeout: 240 seconds]
cantstanya has joined #nixos
mariatsji has joined #nixos
amir has quit [Quit: No Ping reply in 180 seconds.]
fendor_ has quit [Remote host closed the connection]
cosarara has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cosarara has joined #nixos
maddo has joined #nixos
LogicalOverflow has joined #nixos
m4tsa_ has joined #nixos
<{^_^}>
[nixpkgs] @etu opened pull request #98049 → hotel: init at 0.8.7 → https://git.io/JUBkz
<{^_^}>
[nix-mode] @matthewbauer merged pull request #110 → nix-repl: use history file → https://git.io/JUlKx
<{^_^}>
[nix-mode] @matthewbauer pushed 2 commits to master: https://git.io/JUBka
<{^_^}>
[nix-mode] @matthewbauer merged pull request #109 → Set the 'LD_LIBRARY_PATH' environment variable for mkShell → https://git.io/JUl27
<{^_^}>
[nix-mode] @matthewbauer pushed 3 commits to master: https://git.io/JUBkV
m4ts has quit [Ping timeout: 240 seconds]
fendor has joined #nixos
fendor has quit [Read error: Connection reset by peer]
teto has joined #nixos
fendor_ has joined #nixos
davidv7 has joined #nixos
philr has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @matthewbauer pushed to release-20.09 « pytorch: update to use passthru's for checks »: https://git.io/JUBky
Qubasa has quit [Ping timeout: 246 seconds]
growpotkin has joined #nixos
rihards has joined #nixos
Qubasa has joined #nixos
dramforever has quit [Ping timeout: 244 seconds]
Julien[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
ITL has quit [Ping timeout: 245 seconds]
<LogicalOverflow>
Hey, I was wondering if you can "escape" the prefix of a submodule defined as a function (in a different file)? With that I mean, that when I set any value in the submodule's config, they will be prefixed with the name of the option of defining the submodule, but I want to set an un-prefixed option.
ddellacosta has joined #nixos
Qubasa has quit [Ping timeout: 272 seconds]
kleisli_ has joined #nixos
alexherbo2 has joined #nixos
<infinisi1>
LogicalOverflow: What do you need this for? For an error message?
sputny has quit [Ping timeout: 244 seconds]
kleisli has quit [Ping timeout: 244 seconds]
<LogicalOverflow>
Nah, I am trying to figure out how to setup my system config in a modular way. My current idea is to define a submodule for each piece of software I need, which then configures the actual system (And the same for the users on the system, built on home manager).
<simpson>
Your system configuration is *already* modularized; you write a single module to declare your configuration. Moreover it *already* supports loading dependent modules. Do you have more specific examples of how you'd need to split things up?
arjen-jonathan has quit [Ping timeout: 244 seconds]
<mananamenos>
hi, i have this line in my .bashrc `export DICPATH=~/.hunspell/dicts`. However, emacs does not see that.
shibboleth has quit [Quit: shibboleth]
<LogicalOverflow>
simpson: Thanks. I see how I can do system-wide stuff like that, but what about user configuration (through home-manager)? I could just have a module per user (which configures that user, analogous to software-modules), but I would like to be able to separate the software configuration from the user, so I can reuse stuff between users. How would I
<simpson>
LogicalOverflow: Let users configure themselves! That's part of the fun of Nix. Users can manage their own home-managers independently, I think. TBF I've not had multi-user systems where everybody is a Nix power user, so I don't know what that experience is like.
<lb5tr>
yes, that was me
turlando has quit [Ping timeout: 256 seconds]
<abathur>
LogicalOverflow: I don't really recall who because I haven't had the need myself, but I think I recall seeing a few nix dotfile repos on GH that do this?
<LogicalOverflow>
simpson: I am all the users :D But I would like to have hard divisions between work/side-projects and pure fun, and wanted to setup a user for each.
redmp has joined #nixos
<simpson>
LogicalOverflow: Nix provides a hard division between every environment, including e.g. every nix-shell. This leads directly to direnv-oriented workflows, where entering a directory provokes direnv to run nix-shell and load a working environment.
<mananamenos>
how do I make emacs see the exported variables from .bashrc?
<simpson>
Like, yes, users are the correct abstraction for separating privileges in general, but if the *only* privileges that differ are which packages are accessible, then Nix already does this sort of privilege separation for us.
mmohammadi9812 has joined #nixos
<LogicalOverflow>
simpson: My use-case is not just about software/privileges. It's also about making it harder to swap what I - as a human - am doing. So the abstraction is less about privileges and more about the "mental-context" I am currently in.
<simpson>
LogicalOverflow: That sounds backwards IMO. Like, taking that a little futher logically, would you prefer to work on a raw VT without Xorg, so that the lack of workspaces and job control forces you to be focused?
<simpson>
Anyway, sure, when using direnv, there's a cost to `cd` as direnv has to reload the environment and potentially invoke Nix. Indeed sometimes Nix has to do some non-trivial building and the shell is unavailable for several minutes. So it's possible to still have that feeling of regret.
<simpson>
mananamenos: I'm sorry, I don't know anything about emacs, but there is a #nixos-emacs channel that might be able to help.
<simpson>
LogicalOverflow: Sure. Write functions which are parameterized on user name; they take a user name and return a NixOS module (or some fragment of configuration). Then you can call those functions repeatedly to build up your configuration.
<{^_^}>
[nixpkgs] @jonringer pushed commit from @knedlsepp to master « python27.pkgs.joblib: Disable package »: https://git.io/JUBtA
<simpson>
It doesn't fit all nicely into the module paradigm unfortunately; NixOS modules don't have a good way to export Nix code and not configuration. (I've seen a couple techniques and am looking to find one which is at all documented.)
<LogicalOverflow>
abathur: Thanks! I'll look through that.
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<abathur>
it's host-oriented, but I think the way it is using imports to DRY some things might at least be helpful to see
teto has quit [Quit: WeeChat 2.9]
<{^_^}>
[nixpkgs] @misuzu opened pull request #98052 → pigpio: init at 77 → https://git.io/JUBqC
rihards has quit [Quit: rihards]
<LogicalOverflow>
simpson: That makes senses. So, I found this SO answer (https://stackoverflow.com/a/47654799/5189673) and I guess I could do it that way. Am I right assuming I would just put `(import ./path/to/module.nix "username")` in my imports list (And my module file contains a higher-order function with one parameter returning the actual module-function)?
mariatsji has quit [Remote host closed the connection]
bdju has quit [Read error: Connection reset by peer]
bdju has joined #nixos
mariatsji has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
maddo has quit [Remote host closed the connection]
mariatsji has quit [Remote host closed the connection]
mariatsj_ has joined #nixos
Spiney has quit [Ping timeout: 264 seconds]
zeta_0 has joined #nixos
fendor_ has quit [Remote host closed the connection]
Spiney has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 27.1]
jtmcx has quit [Ping timeout: 240 seconds]
Qubasa has joined #nixos
Plien has joined #nixos
<{^_^}>
[nixpkgs] @jonringer opened pull request #98055 → python3Packages.graphite_beacon: fix deps, add nixos test → https://git.io/JUBmu
cosimone_ has joined #nixos
cosimone has quit [Read error: Connection reset by peer]
ris has joined #nixos
cosimone has joined #nixos
<{^_^}>
[nixpkgs] @anoother opened pull request #98056 → Update f2fs-utils to 1.14.0 → https://git.io/JUBmV
sangoma has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @ferranpujolcamins opened pull request #98057 → chromaprint: add darwin compatibility → https://git.io/JUBmK
nikivi has joined #nixos
cosimone_ has quit [Ping timeout: 256 seconds]
Spiney has quit [Ping timeout: 272 seconds]
est31 has quit [Remote host closed the connection]
est31 has joined #nixos
Spiney has joined #nixos
<{^_^}>
[nixpkgs] @mlvzk opened pull request #98058 → manix: init at 0.6.2 → https://git.io/JUBmD
never_released has quit [Ping timeout: 264 seconds]
<marble_visions>
hi all, how do updates to nixpkgs propagate to nixos channels? do devs/maintainers explicitly push new versions to channels, or test-passing packages from unstable get included automatically?
<samueldr>
there won't be changes contributed back to the previous stable version around once 20.09 gets out
<samueldr>
that includes security patches, and any package upgrades
<simpson>
"forever" is only a few years in practice. (You can continue to build for years to decades, depending on upstream package availability, but eventually the system integrations will get too much to handle.)
<marble_visions>
right.. so for nixos, only the latest version is supported, not latest + latest-1?
<marble_visions>
how should i upgrade when a new version comes out? just switch out channels and update configuration.nix?
zeta_0 has quit [Quit: rcirc on GNU Emacs 27.1]
<marble_visions>
i see a few hints in the manual that there might be issues if nix changes something
<samueldr>
there might be configuration options that you'll need to change
<marble_visions>
samueldr++ thanks
<{^_^}>
samueldr's karma got increased to 267, that's Numberwang!
<marble_visions>
nice
<marble_visions>
is YY.03 YY.09 the bi-yearly release schedule?
<cransom>
yes.
<marble_visions>
thanks, good to know and plan for it
<samueldr>
there is a desire to have a longer support schedule, either through choosing one as an LTS, or simply supporting the previous version for longer... but that is not currently possible with the way support is being done
<samueldr>
support is being done as a best effort from the community, rather than having employees working on the distribution
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
zeta_0 has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
justache has quit [Read error: Connection reset by peer]
<marble_visions>
right
<marble_visions>
how do you imagine it being different if there were dedicated people? maybe fix backporting issues?
justache has joined #nixos
<marble_visions>
if something like LTS comes to light
wildtrees has quit [Quit: Leaving]
alp has quit [Ping timeout: 272 seconds]
<marble_visions>
or some whole new process needs to be designed and implemented from scratch?
<gchristensen>
an LTS is a 10s-of-millions-of-dollars affair, to hire and maintain a team long enough for it to matter
<zeta_0>
hey there, i downloaded this nix file for packettracer that was recommended to me by someone on github: https://gist.github.com/buckley310/b4e718e71fb1c7403fb4ceb8fabbc1c4 , anyways, it works fine in a nix-shell, but when i tried to place the nix file in my home.nix home packages: `(import ./packet_tracer.nix { inherit pkgs; })`, it threw this error? `error: anonymous function at /home/zeta/.config/nixpkgs/packet_tr
<zeta_0>
acer.nix:1:1 called without required argument 'stdenv', at /home/zeta/.config/nixpkgs/home.nix:304:12`
<{^_^}>
[nixpkgs] @jonringer pushed to release-20.09 « python3Packages.graphite_beacon: fix deps, add nixos test »: https://git.io/JUBYa
shibboleth has joined #nixos
zupo has joined #nixos
johnnyfive has quit [Quit: I quit now.]
<zeta_0>
cransom: that worked, thanks, i got confused between callPackage and import, so i'm going to read some the nix documentation on them.
<zeta_0>
cransom++
<{^_^}>
cransom's karma got increased to 0b111
johnnyfive has joined #nixos
Heirlung has quit [Ping timeout: 260 seconds]
shibboleth has quit [Remote host closed the connection]
shibboleth has joined #nixos
<zeta_0>
with the help of some buckley310 on gitub, i'm finally able to get packet tracer running in nixos, it was very painful having to run packet tracer in ubuntu in virtualbox with xmonad, so i'm glad that i don't have to worry about that anymore ! https://gist.github.com/buckley310/b4e718e71fb1c7403fb4ceb8fabbc1c4
dramforever has joined #nixos
dramforever has quit [Changing host]
dramforever has joined #nixos
<zeta_0>
colemickens: ^
shibboleth has quit [Remote host closed the connection]
justache has quit [Remote host closed the connection]
justache has joined #nixos
<oxa>
Hello, anyone familar with node packages? I'm packaging something need node packages for build dependency (not a part of output). I found there's a global node-package.nix (pkgs/development/node-packages/node-packages.nix). Do I need to put this dep in global and regenerate it, or use node2nix to get a standalone node-package.nix?
<oxa>
I found the global node-package.nix is quite often to get updated, which leads to merge conflict if my PR is not merged for a while.
alp has quit [Ping timeout: 272 seconds]
wildtrees has joined #nixos
AmandaC has quit [Remote host closed the connection]
Blackraider has quit [Quit: WeeChat 2.7.1]
AmandaC has joined #nixos
heywoodlh has joined #nixos
jumper149 has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mariatsj_ has quit [Remote host closed the connection]
hiro98 has quit [Remote host closed the connection]
Thra11 has quit [Ping timeout: 258 seconds]
zupo has joined #nixos
zeorin has joined #nixos
<zeorin>
Hello all, I'm running i3 on nixos and I'm trying to set up automounting USB. I know i3 has nothing to do with it. So far I have PCManFM installed, and the `gvfs`, `udisks2`, and `devmon` services enabled, but no dice.
<cole-h>
You sure you have `services.gvfs.enable = true;`? Works flawlessly for me.
<cole-h>
Could you see if automount works with the `gnome3.nautilus` package?
<{^_^}>
Found in packages: postgresql95, postgresql96, postgresql_10, postgresql_11, postgresql_12
<selfsymmetric-pa>
Huh. That doesn't work on my local `nix-locate`, even though I indexed it.
<selfsymmetric-pa>
Maybe it failed and I didn't recognize it.
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<infinisi1>
selfsymmetric-pa: How long ago did you index it?
<infinisi1>
There was a recent problem with hydra that caused the indices to not contain most packages
mmohammadi9812 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
<selfsymmetric-pa>
Oh! That might be it. I'll try right now. :)
<selfsymmetric-pa>
infinisi1++
<{^_^}>
infinisi1's karma got increased to 2
<selfsymmetric-pa>
Working on your alt accounts I see ;)
<infinisi1>
Oh snap what happened to my nick!
infinisi1 is now known as infinisil
maxdevjs has joined #nixos
<selfsymmetric-pa>
infinisil++
<{^_^}>
infinisil's karma got increased to 355
<selfsymmetric-pa>
there we go hahaha
<infinisil>
:P
<tobiasBora>
Hello, since I "upgraded" to nix flake, when a sha256 does not match I have a message that provides me the good hash... but in a quite strange format (base-64?): 0qCI0dL+bQBv3P4AdeEoLus3wh7eqYWibOyjpnabFTc=
<tobiasBora>
should I use this hash in nixpkgs repo? If not how can I get back to the usual hash (a-z0-9)?
<tobiasBora>
(actually a-f0-9)
LogicalOverflow has quit [Ping timeout: 245 seconds]
<tobiasBora>
also, in python packages, I see some packages in buildInputs, like buildInputs = [ pytest ];, and some packages in propagatedBuildInputs, like propagatedBuildInputs = [ pytest-flakes pytestpep8 tox ];
<tobiasBora>
why is pytest only in buildInputs and not in propagated buildInputs?
<tobiasBora>
mvnetbiz_: yeah, but I'm packaging pytest-codestyle (tired of seing pycheck-quickcheck broken), so I'm affraid it's actually considered as a pytest plugin
<{^_^}>
[nixos-homepage] @samueldr pushed 3 commits to feature/2020-redesign: https://git.io/JUBnP
<cole-h>
infinisil: I'm comparing my `config.system.build`'s `attrNames` that I would get from using `<nixpkgs>/nixos/default.nix` and from using `lib.nixosSystem` (provided for flakes)
<cole-h>
So there's not a real easy way aside from getting a list of strings :P
joesventek has joined #nixos
<infinisil>
cole-h: Comparing them what for?
<infinisil>
But if you just want to know common attribute names, no need to first attrNames on them, because you can just do `attrNames (intersectAttrs foo.config.system.build bar.config.system.build)`
knupfer has quit [Ping timeout: 244 seconds]
<cole-h>
infinisil: Because nixosSystem doesn't provide `isoImage`, so I can't `nix build .#nixosConfigurations.scadrial.config.system.build.isoImage`
<cole-h>
I'm trying to see what other attrs are missing
<infinisil>
Oh for that you need to include nixos/modules/installer/cd-dvd/iso-image.nix
<infinisil>
That shouldn't be added by default for both flakes and non-flakes
<cole-h>
It looks like it changes some other things, so I'd rather not include it wholesale
cosimone has quit [Remote host closed the connection]
<infinisil>
Hm indeed
redmp has quit [Ping timeout: 258 seconds]
<cole-h>
So really, I think I want a `unionAttrs`?
<infinisil>
cole-h: And that would do what?
<infinisil>
Oh
<infinisil>
That's just `//`
<cole-h>
maybe not then
jb551 has quit [Remote host closed the connection]
jb551 has joined #nixos
<cole-h>
I want `--` for lists that functions opposite of `++` lol
<{^_^}>
[nixos-homepage] @samueldr pushed to feature/2020-redesign « site-styles: Add configuration option for width workarounds »: https://git.io/JUBcE
endformationage has joined #nixos
<infinisil>
Or for attribute sets there's `removeAttrs <attributeset> [ "foo" ]`
<cole-h>
mvnetbiz_++
<{^_^}>
mvnetbiz_'s karma got increased to 0o1
<cole-h>
isoImage and squashfsStore are missing from the flake's `nixosSystem`
veleiro has joined #nixos
<mvnetbiz_>
are you flattening every nixos attribute to a list of the whole attributes path?
<cole-h>
No, just those of `config.system.build`
<mvnetbiz_>
oh, I was wondering how long the other way would take :)
<cole-h>
Probably a while lol
<tobiasBora>
I'm building a library, but it cannot be build with python <= 3.5 (i.e does not work with python 2). Should I put it in top-level/python-packages.nix, or in another file?
<mvnetbiz_>
tobiasBora, is it the pytest-codestyle?
<tobiasBora>
mvnetbiz_: yes
ixxie has quit [Remote host closed the connection]
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__monty__ has quit [Quit: leaving]
mananamenos has quit [Read error: Connection reset by peer]
sputny has quit [Remote host closed the connection]
ransom has joined #nixos
<bbigras>
b42: what's that? better than tlp?
o1lo01ol_ has quit [Remote host closed the connection]
alp has quit [Ping timeout: 272 seconds]
<b42>
bbigras: with no other upower settings it does hybrid suspend when 2% of battery is left
o1lo01ol1o has joined #nixos
<b42>
saved me like 10 times already
alexherbo20 has joined #nixos
<bbigras>
b42: oh nice. only on 2% bat? not when the lid is closed? I heard that hybrid suspend might not be ideal on a laptop when we close the lid since normally we move the laptop quickly after doing it and the suspend takes a while.
ManiacOfMadness has quit [Ping timeout: 240 seconds]
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
alexherbo2 has joined #nixos
werner291 has joined #nixos
shibboleth has quit [Quit: shibboleth]
alexherbo2 has quit [Read error: Connection reset by peer]
alexherbo2 has joined #nixos
earldouglas has joined #nixos
gustavderdrache has joined #nixos
gustavderdrache has left #nixos [#nixos]
gustavderdrache has joined #nixos
<earldouglas>
Is there a way to use buildPythonApplication in conjunction with `nix-env -i -f default.nix`? When I run the resulting build, it complains about missing python and the necessary modules.
<earldouglas>
It works fine with `nix-build`, followed by ./result/bin/foo.
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 244 seconds]
mbrgm_ is now known as mbrgm
alexherbo2 has joined #nixos
alexherbo2 has quit [Remote host closed the connection]
ris has quit [Ping timeout: 246 seconds]
bdju has quit [Read error: Connection reset by peer]