Re: [Nix-dev] A few beginner issues

2016-07-30 Thread Nick Sabalausky

On 07/30/2016 02:01 AM, Daniel Hlynskyi wrote:

Try setting services.xserver.resolutions. If that doesn't workflow, then it
is probably a bug



Ahh, that worked, thanks. I added:

services.xserver.resolutions = pkgs.lib.mkForce [ { x = 800; y = 600; } ];


___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] A few beginner issues

2016-07-30 Thread Daniel Hlynskyi
Try setting services.xserver.resolutions. If that doesn't workflow, then it
is probably a bug
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] A few beginner issues

2016-07-29 Thread Nick Sabalausky

On 07/29/2016 11:14 PM, Peter Hoeg wrote:

2. When I'm in KDE4 on NixOS, I can change the display resolution,
but the
change doesn't persist across a reboot. Why is this? What is the
correct way


Could you try with kde5 instead of kde4? KDE5 is getting all the love
these days so maybe a bug snuck in there?



Ok, just tried now...

Gotta say, I'm thrilled how painless it was to switch from KDE4 to KDE5 
and back again. Exactly the sort of reason I've been unsatisfied with 
other distros and so intrigued by NixOS. Just changed the 
"...kde4.enable = true"/"...kdm.enable = true" to "...kde5.enable = 
true"/"...sddm.enable = true" and "nixos-rebuild switch && reboot". And 
just reverse the changes (or select old config from boot menu) to undo 
it, and it just works :) Really like the idea of being able to try 
things out without as much risk of messing things up or being stuck with 
the changes.


In KDE5/SDDM, my resolution settings changes DO persist, although only 
after the login screen. Which I suppose makes sense since I was changing 
the setting AS a logged in user. Seems as though with KDE4/KDM it just 
isn't loading any per-user resolution setting upon login (or maybe isn't 
saving it).


Is there a NixOS way to set a default resolution (presumably in 
configuration.nix) that would apply to the login screen? Or would it 
just be though whatever the display manager's (or X's) normal approach 
for doing that as with any other linux distro?



___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] A few beginner issues

2016-07-29 Thread Nick Sabalausky

On 07/29/2016 11:09 PM, Nick Sabalausky wrote:

On 07/29/2016 06:50 PM, Bjørn Forsman wrote:

   stage-1-init: modprobe: ERROR: could not insert 'vboxsf': No such
device


I guess that means the virtualbox driver doesn't work with vmware.
(Two competing VM technologies, no surprise really.)

I've never used vmware on Linux. I use VirtualBox. NixOS distributes
OVA files that you can import straight into VirtualBox. I think that's
a very easy way to get started.



/facepalm

Clearly I can't read ;)



BTW, I did notice the prebuilt virtual machines, ready for importing, 
which is very nice, but I wanted to try installing it myself just for 
the learning experience. If/When I install it on a physical machine, I 
won't necessarily be able to rely on a prebuilt image. It's the first 
time I've installed any Linux without a GUI installer, but with the 
NixOS manual, it turned out to be easy enough.


I'll see what I can figure out about installing guest additions from 
vmware. I'm noticing a vmware-guest module on github. Should be simple 
enough...


___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] A few beginner issues

2016-07-29 Thread Peter Hoeg

2. When I'm in KDE4 on NixOS, I can change the display resolution, but the
change doesn't persist across a reboot. Why is this? What is the correct way


Could you try with kde5 instead of kde4? KDE5 is getting all the love
these days so maybe a bug snuck in there?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] A few beginner issues

2016-07-29 Thread Nick Sabalausky

On 07/29/2016 06:50 PM, Bjørn Forsman wrote:

   stage-1-init: modprobe: ERROR: could not insert 'vboxsf': No such device


I guess that means the virtualbox driver doesn't work with vmware.
(Two competing VM technologies, no surprise really.)

I've never used vmware on Linux. I use VirtualBox. NixOS distributes
OVA files that you can import straight into VirtualBox. I think that's
a very easy way to get started.



/facepalm

Clearly I can't read ;)


2. When I'm in KDE4 on NixOS, I can change the display resolution, but the
change doesn't persist across a reboot. Why is this? What is the correct way
to make it persist? Haven't had this happen in other distros.


Are you sure you're booting from your installation on disk and not the
Live CD? I don't use KDE, but at least in GNOME the screen resolution
is persisted (no need for NixOS option for that). I'd be surprised if
it didn't work like that on KDE too.



Yes, I'm certain. The GRUB boot menu is different from when I was 
booting the live disc, and the boot menu accumulates my new 
configurations when I do I configuration rebuild. Changes to my 
/etc/nixos/configuration.nix file persist. And I've made certain to 
disconnect the ISO from the virtual machine BEFORE booting and checked 
it's still disconnected after booting (and went back and double-checked 
that again just now).




3. I added "firefox" (minus quotes) to the environment.systemPackages list
in configuration.nix, did rebuild/switch, and it's now installed and works,
BUT it installed Firefox Nightly instead of a firefox release. How would I
go about installing a release instead of nightly?


I think NixOS only ships "nightly" due to licensing or branding rights
or something. Others may fill inn here.


4. When looking up the firefox packages, I noticed a "firefox-unwrapped".
What is that and how does it differ from the package "firefox"?


The -unwrapped version doesn't know about plugins. I guess most people
will want the normal "firefox" package.



Interesting, thanks.


___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] A few beginner issues

2016-07-29 Thread Bjørn Forsman
Hi Nick,

On 30 July 2016 at 00:24, Nick Sabalausky  wrote:
> [...]
> 1. I'm having trouble getting vmware guest additions to work. I followed the
> instruction here...
>
>   https://nixos.org/wiki/Installing_NixOS_in_a_VirtualBox_guest
>
> ...to add the following line to my /etc/nixos/configuration.nix...
>
>   virtualisation.virtualbox.guest.enable = true;
>
> ...but after I "nixos-rebuild switch" and reboot, the display manager no
> longer starts and dmesg includes this suspicious looking line:
>
>   stage-1-init: modprobe: ERROR: could not insert 'vboxsf': No such device

I guess that means the virtualbox driver doesn't work with vmware.
(Two competing VM technologies, no surprise really.)

I've never used vmware on Linux. I use VirtualBox. NixOS distributes
OVA files that you can import straight into VirtualBox. I think that's
a very easy way to get started.

> 2. When I'm in KDE4 on NixOS, I can change the display resolution, but the
> change doesn't persist across a reboot. Why is this? What is the correct way
> to make it persist? Haven't had this happen in other distros.

Are you sure you're booting from your installation on disk and not the
Live CD? I don't use KDE, but at least in GNOME the screen resolution
is persisted (no need for NixOS option for that). I'd be surprised if
it didn't work like that on KDE too.

> 3. I added "firefox" (minus quotes) to the environment.systemPackages list
> in configuration.nix, did rebuild/switch, and it's now installed and works,
> BUT it installed Firefox Nightly instead of a firefox release. How would I
> go about installing a release instead of nightly?

I think NixOS only ships "nightly" due to licensing or branding rights
or something. Others may fill inn here.

> 4. When looking up the firefox packages, I noticed a "firefox-unwrapped".
> What is that and how does it differ from the package "firefox"?

The -unwrapped version doesn't know about plugins. I guess most people
will want the normal "firefox" package.

Best regards,
Bjørn Forsman
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] A few beginner issues

2016-07-29 Thread Nick Sabalausky
I'm new to NixOS (coming from various more traditionally-designed 
distros, like Debian and Manjaro), and trying to learn by working with 
it in a WMWare instance. I've gotten it installed into the vm instance 
via the live disc's gparted and "nixos-generate-config" and 
"nixos-install", mostly going by what's here:


https://nixos.org/nixos/manual/index.html#ch-installation

And I'm now able to boot into the newly installed, umm, installation 
running KDE4.


Now that I'm trying it out, there's a few things I'm having trouble 
figuring out, and was hoping someone could help me out with these 
examples so that I can have a better idea of how to work with NixOS.


1. I'm having trouble getting vmware guest additions to work. I followed 
the instruction here...


  https://nixos.org/wiki/Installing_NixOS_in_a_VirtualBox_guest

...to add the following line to my /etc/nixos/configuration.nix...

  virtualisation.virtualbox.guest.enable = true;

...but after I "nixos-rebuild switch" and reboot, the display manager no 
longer starts and dmesg includes this suspicious looking line:


  stage-1-init: modprobe: ERROR: could not insert 'vboxsf': No such device

I didn't need to add that line to configuration.nix before the original 
"nixos-install", did I? Or is something else going on here?


Luckily, I can just reboot back to the old working configuration, which 
is an *awesome* example of why I'm determined to learn my way around 
NixOS. But it would be nice to understand how to get these virtual guest 
services working.


2. When I'm in KDE4 on NixOS, I can change the display resolution, but 
the change doesn't persist across a reboot. Why is this? What is the 
correct way to make it persist? Haven't had this happen in other distros.


3. I added "firefox" (minus quotes) to the environment.systemPackages 
list in configuration.nix, did rebuild/switch, and it's now installed 
and works, BUT it installed Firefox Nightly instead of a firefox 
release. How would I go about installing a release instead of nightly?


4. When looking up the firefox packages, I noticed a 
"firefox-unwrapped". What is that and how does it differ from the 
package "firefox"?

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev