Re: [Nix-dev] PCI Expresscard not working under NixOS

2017-02-07 Thread David Izquierdo
And while you're at it, you should probably check `lspci -k` on the working system to see what kernel module it uses, in case it's missing from NixOS. On 07/02/17 12:26, Tomasz Czyż wrote: What about doing quick check and running ubuntu from livecd/usb to confirm if card still is alive? 201

Re: [Nix-dev] How to ensure that a directory exists via configuration.nix

2017-02-10 Thread David Izquierdo
Is there any reason not to use `mkdir -p`, to spare yourself the if? On 10/02/17 17:06, Mark Gardner wrote: Once again, thanks Layus! For the benefit of others, here is what I put in my configuration.nix: system.activationScripts = { mnt = { text = ''if [ ! -d /mnt ] ; then

Re: [Nix-dev] Best Practices on Modularizing Configuration.nix?

2017-02-27 Thread David Izquierdo
My setup is also very similar. I have a configuration.nix with all the common setup, which imports hosts/current.nix, which is a (.gitignored) symlink to the appropiate host.nix. Then, the host.nix imports from modules/*.nix. I also have an etc with generic (not written in Nix) configuration fi

Re: [Nix-dev] Can't launch XFCE from SDDM?

2017-03-05 Thread David Izquierdo
SDDM is problematic to me with i3 too. Right now, if I try to login to i3 via SDDM I'm returned to SDDM (I don't have plasma enabled). Logs didn't look like anything was wrong to me. On 05/03/17 04:38, laverne wrote: Hi, I have the following lines in my /etc/nixos/configuration.nix s

Re: [Nix-dev] NixOS 16.09 and Firefox Nightly

2017-03-05 Thread David Izquierdo
AFAIK those restrictions were recently dropped, Debian's firefox is now branded Firefox instead of Iceweasel. It probably should be changed in nixpkgs too to prevent further confusion. On 05/03/17 16:16, Graham Christensen wrote: Hi Mark, As I understand it, what we ship in 16.09 is indeed t

Re: [Nix-dev] 'nixos-stable' channel?

2017-03-05 Thread David Izquierdo
I think it would be handy though. After all, this is NixOS we're talking about. We already have system.stateVersion for protecting stateful data, and fixing the rest of the system is only a rollback away. Why not make the alias/symlink without making it the default? On 05/03/17 19:37, Nathan B

Re: [Nix-dev] 'nixos-stable' channel?

2017-03-08 Thread David Izquierdo
I think It could be worthwhile to look at openSUSE's Tumbleweed setup for rolling releases. They use openQA for automatic testing of every package in the distribution, and then release the binaries as snapshots for users to update. Pretty similar to how nixpkgs git -> Hydra -> cache works, with

Re: [Nix-dev] Move NodeJS to separate overlay repository?

2017-03-11 Thread David Izquierdo
Couldn't this become a kind of dependency hell? I remember from Gentoo that having dependencies across overlays is not a fun problem to solve. However, Exherbo mostly solved this by having overlays be analogous to packages, they become a kind of dependency that must be explicitly user-solved be

Re: [Nix-dev] Google Summer of Code 2017

2017-03-15 Thread David Izquierdo
Oh dear, I had been thinking about 1 and 2 lately... On systemd, I don't think that it's worth it to even try to port dependent software. Nix is smart enough to warn about/fix dependencies. And "porting" the actual unit files sounds easy IMO, systemd has good documentation on unit files that

Re: [Nix-dev] how to 'just run binaries' in nixos

2017-03-23 Thread David Izquierdo
I hereby propose the tool to be renamed and refactocopied to `ubuntu-run`, since it will end up being the target runtime anyway :P On 23/03/17 18:10, Moritz Ulrich wrote: Azul writes: thanks all, *steam-run* just works Maybe we should create an alias or a separate incarnation of the same

Re: [Nix-dev] Editor for the configuration file

2017-04-04 Thread David Izquierdo
My WiFi module lives within networking.wireless. I don't have any reference to either wpa_supplicant or networkmanager. On 04/04/17 20:22, Andreas Meyer wrote: Hello! ah it is nano. I was trying vi and vim and emacs. One more question for now. To bring up WLAN do I have to enable wpa_supplica

Re: [Nix-dev] Managing /home during system activation

2017-04-15 Thread David Izquierdo
That's stupid genius in my eyes. What I'd been doing is to find a way to make software look in /etc/xdg before ~/.config, with... varying degrees of success. Is there anywhere we could read your implementation? On 15/04/17 19:36, Peter Jones wrote: I'd like to manage files in my home directory

Re: [Nix-dev] Can't install NixOS on an NVME drive

2017-04-19 Thread David Izquierdo
If that was indeed the problem, the way to "keep" windows working is to reinstall it in AHCI mode. Its recovery tools may or may not be able to fix that too. On 19/04/17 09:55, Julien Tanguy wrote: Hello Liam, For NixOS to work, you have to change the SSD controller from RAID ON to AHCI. Thi

[Nix-commits] [NixOS/nixpkgs] b8463e: pythonPackages.markupsafe: 0.23 -> 1.0

2017-04-30 Thread David Izquierdo
Branch: refs/heads/staging Home: https://github.com/NixOS/nixpkgs Commit: b8463e97b63ebd5fa05c14e9f9c52edc9274e753 https://github.com/NixOS/nixpkgs/commit/b8463e97b63ebd5fa05c14e9f9c52edc9274e753 Author: David Izquierdo Date: 2017-04-30 (Sun, 30 Apr 2017) Changed paths

Re: [Nix-dev] [NixOS] How to incorporate my Bash script in configuration.nix?

2017-05-09 Thread David Izquierdo
I would have gone to systemd.services. Slightly uglier looking (bigger attrset), but should run after the kernel has loaded its modules. I'd say it would be ideal to have it be "PartOf = networking.target" and/or "Before = dhcpd.service" (or whatever networking thingy you use). On 09/05/17 13

Re: [Nix-dev] PulseAudio

2017-05-09 Thread David Izquierdo
If you run `pulseaudio -k`, does it kill it? Once dead, what does it log if you run `pulseaudio` and then try to use pavucontrol or other program? On 09/05/17 20:58, Mark Gardner wrote: On Tue, May 9, 2017 at 2:32 PM, Sergiu Ivanov wrote: I suppose you tried rebooting after installing the p

Re: [Nix-dev] PulseAudio

2017-05-09 Thread David Izquierdo
, Mark Gardner wrote: David, On Tue, May 9, 2017 at 2:59 PM, David Izquierdo wrote: If you run `pulseaudio -k`, does it kill it? ​No:​ $ pulseaudio -k E: [pulseaudio] main.c: Failed to kill daemon: No such process ​But the daemon is running as me: $ ps aux | grep pulseaudio ​user 2

Re: [Nix-dev] Trying to install the SailfishOS SDK

2017-06-18 Thread David Izquierdo
I was recently looking for info on this too. I'll ask a more general question: Is there any other piece of softrware in nixpkgs that's based on a QtInstallerFramework? The installer for Sailfish SDK is one, and, even though it runs via steam-run (and promptly detects my lack of VirtualBox), I'd

Re: [Nix-dev] 5 somewhat related questions

2017-06-22 Thread David Izquierdo
I'll try to answer what I think I know... On 22/06/17 20:40, Klaas van Schelven wrote: Hello Nixians, I've installed NixOs a number of days ago. So far I really like it! I've read the documentation I could find, but I'm left with a number of questions; not so much "how to do X" but rather of