[Nix-dev] GNOME 3.18 is the default

2016-01-13 Thread Luca Bruno
Right now the gnome3 package set defaults to 3.18. It's been a long time
we had gnome 3.18, and given the recent unstable releases it was a good
time to switch.

However, many apps are not working as expected compared to 3.16.
Examples of broken apps are bijiben, gnome-maps, gnome-screenshot, ...

That said, you can switch back to gnome 3.16 at any time if you feel
there's anything blocking your workflow:

nixpkgs.config.packageOverrides = super: {
  gnome3 = pkgs.gnome3_18;
};

Please feel free to report an issue for any spotted bug or regression
about your new GNOME 3.18 experience on NixOS and non-NixOS.

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


Re: [Nix-dev] Best way to store strong passwords in nix configuration file

2016-01-13 Thread Guillaume Maudoux (Layus)
I am not sure I understand your issue.

On my side, I have

|$ cat test.nix rec { a = "ETrai_5{h'aG,MQ"; b = "${a}${a}"; } $
nix-instantiate --eval --strict test.nix { a = "ETrai_5{h'aG,MQ"; b =
"ETrai_5{h'aG,MQETrai_5{h'aG,MQ"; } |

Could it just happen that you forgot a semicolon at the end of your
strings ?

Could you provide a minimal (non) working example :-)

G.

Le 12/01/16 16:48, 4levels a écrit :

> Hi Nix Devs,
>
> I'm really struggling to get strong passwords correctly parsed in my
> nix configuration files.  I keep getting errors about unexpected $end
> or $undefined at wrong places (eg. there is no $ or ; anywhere near
> the reported failure).
> Deleting the passwords from the nix config file solves this, so the
> error is definitely related to the contents of these strings.
>
> I'm using a random password generator to create strong passwords, like
> ETrai_5{h'aG,MQ:
> I've tried writing them with double quotes, double single quotes and
> single quotes, with and without escaping, all to no avail.  I also
> can't seem to find a list of the characters that should be escaped (I
> only see " and \ and those are not in those passwords.
>
> Do you have any tips on how to store many different strong password
> and use it in nix configuration files?  I need those passwords to be
> in an object structure so I can build custom config files from them.
>
> For the record, I'm using git-crypt to prevent these files from being
> read by unauthorized clients / people
>
> Kind regards,
>
> Erik
>
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev

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


Re: [Nix-dev] How to get correct length of a string containing non-ascii characters

2016-01-13 Thread zimbatm
Related to that, the suckless conferent talk on UTF-8[1] was pretty
interesting. The complexity of Unicode and all that goes with it is pretty
crazy.
That being said the libutf8 from the same guys seem to be pretty decent and
takes sane defaults to a lot of these questions.

[1] http://suckless.org/conference/ (last on the page)

On Tue, 12 Jan 2016 at 19:10 Christian Theune  wrote:

> Hi,
>
> there are sane approaches to dealing with Strings (encoded) vs. Text
> (decoded) properly. We might not be able to do this at the moment, but I
> find Python (3)’s byte/text model quite sane.
>
> It might be too much for us to support this with a quick fix, but we
> should keep that on the radar, I guess.
>
> Christian
>
> On 12 Jan 2016, at 18:26, Jookia <166...@gmail.com> wrote:
>
> On Mon, Jan 11, 2016 at 11:29:37PM +, Erik Rybakken wrote:
>
> Hi,
>
> In nix, when finding the length of a string containing non-ascii
> characters,
> the number of bytes in the representation is returned, instead of the
> actual
> number of characters:
>
> nix-repl> builtins.stringLength "å"
> 2
>
>
> Is there any way to get the number of characters instead, or does this
> require changes in the core language?
>
>
> It's probably best to leave it like it is now. A string's length is two if
> that's the number of bytes it uses. You'd have to start asking some hard
> questions if you want other behaviour like:
>
> Why do you want the string's length? Do you want to truncate it? What if
> that
> creates an invalid sequence of characters somehow? Do you want to compare
> lengths or equality? Should text be normalized somehow? Which way?
>
> What should the base 'unit' be for a string? A code point? A character? A
> glyph? A grapheme? How would this be implemented?
>
> Best Regards,
> Erik Rybakken
>
>
> Cheers,
> Jookia.
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
> --
> Christian Theune · c...@flyingcircus.io · +49 345 219401 0
> Flying Circus Internet Operations GmbH · http://flyingcircus.io
> Forsterstraße 29 · 06112 Halle (Saale) · Deutschland
> HR Stendal HRB 21169 · Geschäftsführer: Christian. Theune, Christian.
> Zagrodnick
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] User and group ID ranges

2016-01-13 Thread Christian Kauhaus
Hi,

we are currently in the process of configuring users and groups with fixed
UID/GID numbers from a central directory on a bunch of NixOS machines.

I'd like to clarify some policy issues to avoid future ID conflicts.

The current policy, as far as I understand it, is:

* Fixed UIDs/GIDs are in the range 0 <= n < 400 (nixos/modules/misc/ids.nix).
* Dynamic IDs for system users are allocated from the range 400 <= n < 500
(nixos/modules/config/update-users-groups.pl).
* The range 500 <= n < 1000 seems currently to be reserved.
* "Normal" (human) users go into the range 1000 <= n < 3
(nixos/modules/config/users-groups.nix).
* The range 3 <= n < 65535 seems to be used for dynamically allocated
groups for nixbuild (?)

Is this correct?

Are there any plans on using the range 500 <= n < 1000? When I look at the
list of statically allocated UIDs below 400, I wonder if it is not like to see
an overflow.

I'm currently unsure what the policy is for 3 <= n < 65535. Is it ok for
sites to allocate additional IDs without fear for conflict?

TIA

Christian

-- 
Dipl-Inf. Christian Kauhaus <>< · k...@flyingcircus.io · +49 345 219401-0
Flying Circus Internet Operations GmbH · http://flyingcircus.io
Forsterstraße 29 · 06112 Halle (Saale) · Deutschland
HR Stendal 21169 · Geschäftsführer: Christian Theune, Christian Zagrodnick



signature.asc
Description: OpenPGP digital signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to get correct length of a string containing non-ascii characters

2016-01-13 Thread Erik Rybakken
To anyone interested in this discussion, you may want to follow the
issue here: https://github.com/NixOS/nix/issues/770

There I wrote the reason I want this functionality. The main reason is
that I want to do as much as possible in Nix, instead of pushing stuff
to a building script.

Best,
Erik

On 2016-01-11 23:29, Erik Rybakken wrote:
> Hi,
> 
> In nix, when finding the length of a string containing non-ascii characters,
> the number of bytes in the representation is returned, instead of the actual
> number of characters:
> 
> > nix-repl> builtins.stringLength "å"
> > 2
> 
> Is there any way to get the number of characters instead, or does this
> require changes in the core language?
> 
> Best Regards,
> Erik Rybakken
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] nixops box deployment via kvm-libvirtd

2016-01-13 Thread rohit yadav
The problem still persist.

- I tried directly launching img file with qemu, and keyboard responds if
keyboard layout is specified. So, I am assuming it to be some VNC issue. I
still dunno know how to specify this to virsh or virt-manager.
- The networking issue still persists. I suspect it to be libvirt related
issue rather than nixops.

-Rohit

On Wed, Jan 13, 2016 at 1:31 AM, Domen Kožar  wrote:

> Use nixopsUnstable from unstable channel
>
> On Wed, 13 Jan 2016, 01:53 rohit yadav  wrote:
>
>> ​Hi,
>>
>> The nixops is able to deploy machine and run (verified using virsh
>> command) as well with targetEnv="libvirtd". However, it gets stuck while
>> obtaining ip address. From "journalctl -xe" it appears to be requesting ip
>> from a non virbr0 port. How to make the virbr0 default? I does not let me
>> configure it using gui.
>>
>> Also, while trying to directly access the machine using virt-manager, the
>> VM console window does not respond to any key-stroke. Any clue as what
>> could be wrong here?
>>
>> Thanks,
>> Rohit
>> ___
>> nix-dev mailing list
>> nix-dev@lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] nixops box deployment via kvm-libvirtd

2016-01-13 Thread rohit yadav
Hi Domen,

Thanks. I rebuilt the configuration with following option
networking.firewall.reversePath = false; and used nixopsUnstable and it
works fine now.

Thanks,
Rohit

On Wed, Jan 13, 2016 at 1:03 PM, rohit yadav 
wrote:

> ​It return the following. I am on IRC #nixos channel with name "rowhit"
>
> [image: Inline image 1]
>
> On Wed, Jan 13, 2016 at 12:50 PM, Domen Kožar  wrote:
>
>> Are you on IRC? #nixos will be faster.
>>
>> What's the output of: $ virsh -c qemu:///system net-dhcp-leases --network
>> default
>>
>> On Wed, Jan 13, 2016 at 7:44 PM, rohit yadav 
>> wrote:
>>
>>> nixops 1.3.1pre1673_a0d5681
>>>
>>> On Wed, Jan 13, 2016 at 12:39 PM, Domen Kožar  wrote:
>>>
 Can you run: $ nixops --version

 On Wed, Jan 13, 2016 at 7:12 PM, rohit yadav 
 wrote:

> The problem still persist.
>
> - I tried directly launching img file with qemu, and keyboard responds
> if keyboard layout is specified. So, I am assuming it to be some VNC 
> issue.
> I still dunno know how to specify this to virsh or virt-manager.
> - The networking issue still persists. I suspect it to be libvirt
> related issue rather than nixops.
>
> -Rohit
>
> On Wed, Jan 13, 2016 at 1:31 AM, Domen Kožar  wrote:
>
>> Use nixopsUnstable from unstable channel
>>
>> On Wed, 13 Jan 2016, 01:53 rohit yadav 
>> wrote:
>>
>>> ​Hi,
>>>
>>> The nixops is able to deploy machine and run (verified using virsh
>>> command) as well with targetEnv="libvirtd". However, it gets stuck while
>>> obtaining ip address. From "journalctl -xe" it appears to be requesting 
>>> ip
>>> from a non virbr0 port. How to make the virbr0 default? I does not let 
>>> me
>>> configure it using gui.
>>>
>>> Also, while trying to directly access the machine using
>>> virt-manager, the VM console window does not respond to any key-stroke. 
>>> Any
>>> clue as what could be wrong here?
>>>
>>> Thanks,
>>> Rohit
>>> ___
>>> nix-dev mailing list
>>> nix-dev@lists.science.uu.nl
>>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>>
>>
>

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


Re: [Nix-dev] nixops box deployment via kvm-libvirtd

2016-01-13 Thread Domen Kožar
Are you on IRC? #nixos will be faster.

What's the output of: $ virsh -c qemu:///system net-dhcp-leases --network
default

On Wed, Jan 13, 2016 at 7:44 PM, rohit yadav 
wrote:

> nixops 1.3.1pre1673_a0d5681
>
> On Wed, Jan 13, 2016 at 12:39 PM, Domen Kožar  wrote:
>
>> Can you run: $ nixops --version
>>
>> On Wed, Jan 13, 2016 at 7:12 PM, rohit yadav 
>> wrote:
>>
>>> The problem still persist.
>>>
>>> - I tried directly launching img file with qemu, and keyboard responds
>>> if keyboard layout is specified. So, I am assuming it to be some VNC issue.
>>> I still dunno know how to specify this to virsh or virt-manager.
>>> - The networking issue still persists. I suspect it to be libvirt
>>> related issue rather than nixops.
>>>
>>> -Rohit
>>>
>>> On Wed, Jan 13, 2016 at 1:31 AM, Domen Kožar  wrote:
>>>
 Use nixopsUnstable from unstable channel

 On Wed, 13 Jan 2016, 01:53 rohit yadav 
 wrote:

> ​Hi,
>
> The nixops is able to deploy machine and run (verified using virsh
> command) as well with targetEnv="libvirtd". However, it gets stuck while
> obtaining ip address. From "journalctl -xe" it appears to be requesting ip
> from a non virbr0 port. How to make the virbr0 default? I does not let me
> configure it using gui.
>
> Also, while trying to directly access the machine using virt-manager,
> the VM console window does not respond to any key-stroke. Any clue as what
> could be wrong here?
>
> Thanks,
> Rohit
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>

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


Re: [Nix-dev] nixops box deployment via kvm-libvirtd

2016-01-13 Thread rohit yadav
​It return the following. I am on IRC #nixos channel with name "rowhit"

[image: Inline image 1]

On Wed, Jan 13, 2016 at 12:50 PM, Domen Kožar  wrote:

> Are you on IRC? #nixos will be faster.
>
> What's the output of: $ virsh -c qemu:///system net-dhcp-leases --network
> default
>
> On Wed, Jan 13, 2016 at 7:44 PM, rohit yadav 
> wrote:
>
>> nixops 1.3.1pre1673_a0d5681
>>
>> On Wed, Jan 13, 2016 at 12:39 PM, Domen Kožar  wrote:
>>
>>> Can you run: $ nixops --version
>>>
>>> On Wed, Jan 13, 2016 at 7:12 PM, rohit yadav 
>>> wrote:
>>>
 The problem still persist.

 - I tried directly launching img file with qemu, and keyboard responds
 if keyboard layout is specified. So, I am assuming it to be some VNC issue.
 I still dunno know how to specify this to virsh or virt-manager.
 - The networking issue still persists. I suspect it to be libvirt
 related issue rather than nixops.

 -Rohit

 On Wed, Jan 13, 2016 at 1:31 AM, Domen Kožar  wrote:

> Use nixopsUnstable from unstable channel
>
> On Wed, 13 Jan 2016, 01:53 rohit yadav 
> wrote:
>
>> ​Hi,
>>
>> The nixops is able to deploy machine and run (verified using virsh
>> command) as well with targetEnv="libvirtd". However, it gets stuck while
>> obtaining ip address. From "journalctl -xe" it appears to be requesting 
>> ip
>> from a non virbr0 port. How to make the virbr0 default? I does not let me
>> configure it using gui.
>>
>> Also, while trying to directly access the machine using virt-manager,
>> the VM console window does not respond to any key-stroke. Any clue as 
>> what
>> could be wrong here?
>>
>> Thanks,
>> Rohit
>> ___
>> nix-dev mailing list
>> nix-dev@lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>

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


Re: [Nix-dev] nixops box deployment via kvm-libvirtd

2016-01-13 Thread rohit yadav
nixops 1.3.1pre1673_a0d5681

On Wed, Jan 13, 2016 at 12:39 PM, Domen Kožar  wrote:

> Can you run: $ nixops --version
>
> On Wed, Jan 13, 2016 at 7:12 PM, rohit yadav 
> wrote:
>
>> The problem still persist.
>>
>> - I tried directly launching img file with qemu, and keyboard responds if
>> keyboard layout is specified. So, I am assuming it to be some VNC issue. I
>> still dunno know how to specify this to virsh or virt-manager.
>> - The networking issue still persists. I suspect it to be libvirt related
>> issue rather than nixops.
>>
>> -Rohit
>>
>> On Wed, Jan 13, 2016 at 1:31 AM, Domen Kožar  wrote:
>>
>>> Use nixopsUnstable from unstable channel
>>>
>>> On Wed, 13 Jan 2016, 01:53 rohit yadav  wrote:
>>>
 ​Hi,

 The nixops is able to deploy machine and run (verified using virsh
 command) as well with targetEnv="libvirtd". However, it gets stuck while
 obtaining ip address. From "journalctl -xe" it appears to be requesting ip
 from a non virbr0 port. How to make the virbr0 default? I does not let me
 configure it using gui.

 Also, while trying to directly access the machine using virt-manager,
 the VM console window does not respond to any key-stroke. Any clue as what
 could be wrong here?

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

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


Re: [Nix-dev] nixops box deployment via kvm-libvirtd

2016-01-13 Thread Domen Kožar
Can you run: $ nixops --version

On Wed, Jan 13, 2016 at 7:12 PM, rohit yadav 
wrote:

> The problem still persist.
>
> - I tried directly launching img file with qemu, and keyboard responds if
> keyboard layout is specified. So, I am assuming it to be some VNC issue. I
> still dunno know how to specify this to virsh or virt-manager.
> - The networking issue still persists. I suspect it to be libvirt related
> issue rather than nixops.
>
> -Rohit
>
> On Wed, Jan 13, 2016 at 1:31 AM, Domen Kožar  wrote:
>
>> Use nixopsUnstable from unstable channel
>>
>> On Wed, 13 Jan 2016, 01:53 rohit yadav  wrote:
>>
>>> ​Hi,
>>>
>>> The nixops is able to deploy machine and run (verified using virsh
>>> command) as well with targetEnv="libvirtd". However, it gets stuck while
>>> obtaining ip address. From "journalctl -xe" it appears to be requesting ip
>>> from a non virbr0 port. How to make the virbr0 default? I does not let me
>>> configure it using gui.
>>>
>>> Also, while trying to directly access the machine using virt-manager,
>>> the VM console window does not respond to any key-stroke. Any clue as what
>>> could be wrong here?
>>>
>>> Thanks,
>>> Rohit
>>> ___
>>> nix-dev mailing list
>>> nix-dev@lists.science.uu.nl
>>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>>
>>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] dist-upgrade? define channel declaratively?

2016-01-13 Thread Matthew O'Gorman
Matthew O'Gorman  writes:

Also this did not work for me as I defined my container in my
configuration.nix so when I try to do the nix-rebuild switch --upgrade
it fails as there is not a configuration.nix in the container.  My nixos
files are located here http://github.com/mogorman/dotfiles/nixos

Matthew O'Gorman
BM-NBUmia4p88Jny5bZbRGcMt64SWWp5WVv
TorChat: 5w3dtk7nhkkijcpc
Site: https://b.rldn.net
Xim/Email: m...@rldn.net
mog@rldn:~$ fortune wisdom -s|cowsay -f /dev/null
  
/ You must be the change you wish to see \
| in the world.  |
||
\ --Mahatma Gandhi   /
  


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


[Nix-dev] matplotlib not found by python

2016-01-13 Thread Andrew Fraser
Hi,

Last month, I asked for help as I built the nix package system and
installed it in a non-standard location.  Thanks for that help.  Once
I understand nix a little better, I hope to modify the wiki page about
installing nix in a home directory and answer a few questions others
have asked.

I write today to ask for help getting matplotlib running.

Here is the list of packages that I've installed:

krunk@cathcart:~$ nix-env -q
emacs-24.5
emacs-auctex-11.87.7
emacs-magit-2.3.1
git-2.7.0
hello-2.10
nix-1.10
python-2.7.11
python2.7-ipython-4.0.0
python2.7-matplotlib-1.5.0
python2.7-numpy-1.10.2
python2.7-scipy-0.16.1
python3-3.5.1
python3.5-ipython-4.0.0
python3.5-matplotlib-1.5.0
python3.5-numpy-1.10.2
python3.5-scipy-0.16.1
texlive-combined-full-2015
krunk@cathcart:~$ 

And here is the error that I must resolve:

krunk@cathcart:~$ python
Python 2.7.11 (default, Jan 01 1970, 00:00:01) 
[GCC 4.9.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
Traceback (most recent call last):
File "", line 1, in 
ImportError: No module named matplotlib
>>> 

In my packages directory I find:

krunk@cathcart:/local/nixpkgs$ git remote -v
origin  https://github.com/NixOS/nixpkgs.git (fetch)
origin  https://github.com/NixOS/nixpkgs.git (push)
krunk@cathcart:/local/nixpkgs$ 

The fact (quoted from history|grep nix) that I issued the following
command to enable me to install ipython may be relevant:

  331  nix-env --set-flag priority 6 python-2.7.11
  332  time nix-env -j20 --cores 0 -i python3-3.5.1

Also relevant may be the fact that I installed matplotlib last with:

  360  time nix-env -j20 --cores 0 -i python2.7-matplotlib-1.5.0 
python3.5-matplotlib-1.5.0

Thanks for any advice,

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


Re: [Nix-dev] matplotlib not found by python

2016-01-13 Thread Bjørn Forsman
On 14 January 2016 at 06:27, Andrew Fraser  wrote:
> [...]
> I write today to ask for help getting matplotlib running.
>
> Here is the list of packages that I've installed:
>
> krunk@cathcart:~$ nix-env -q
> emacs-24.5
> emacs-auctex-11.87.7
> emacs-magit-2.3.1
> git-2.7.0
> hello-2.10
> nix-1.10
> python-2.7.11
> python2.7-ipython-4.0.0
> python2.7-matplotlib-1.5.0
> python2.7-numpy-1.10.2
> python2.7-scipy-0.16.1
> python3-3.5.1
> python3.5-ipython-4.0.0
> python3.5-matplotlib-1.5.0
> python3.5-numpy-1.10.2
> python3.5-scipy-0.16.1
> texlive-combined-full-2015
> krunk@cathcart:~$
>
> And here is the error that I must resolve:
>
> krunk@cathcart:~$ python
> Python 2.7.11 (default, Jan 01 1970, 00:00:01)
> [GCC 4.9.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import matplotlib
> Traceback (most recent call last):
> File "", line 1, in 
> ImportError: No module named matplotlib
> >>>

That workflow is currently not supported. See
https://github.com/NixOS/nixpkgs/issues/10597.

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


Re: [Nix-dev] dist-upgrade? define channel declaratively?

2016-01-13 Thread Domen Kožar
http://nixos.org/nixos/manual/index.html#sec-upgrading

On Wed, Jan 13, 2016 at 10:40 PM, Matthew O'Gorman  wrote:

> Hi
>
> I started playing with nixos-containers and have been very pleased so
> far.  I wanted to try running unstable in one, but haven't been able to
> figure out how to do so.  I tried setting these in my configuration of
> the container
>
> system.stateVersion = "unstable";
> system.defaultChannel = "https://nixos.org/channels/unstable;;
>
> but it didn't change anything on a nixos-rebuild switch --upgrade
>
> How can one define and use channels in the config files?  How does
> someone do a dist-upgrade from 15.09 to unstable?  Sorry if these are
> dumb questions.  I can't seem to find answer in the manuals or in irc.
>
> --
> Matthew O'Gorman
> BM-NBUmia4p88Jny5bZbRGcMt64SWWp5WVv
> TorChat: 5w3dtk7nhkkijcpc
> Site: https://b.rldn.net
> Xim/Email: m...@rldn.net
> mog@rldn:~$ fortune wisdom -s|cowsay -f /dev/null
>  __
> / If a man loses his reverence for any \
> | part of life, he will lose his   |
> | reverence for all of life.   |
> |  |
> \ -- Albert Schweitzer /
>  --
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] dist-upgrade? define channel declaratively?

2016-01-13 Thread Matthew O'Gorman
Domen Kožar  writes:

> http://nixos.org/nixos/manual/index.html#sec-upgrading
>

Thank you for the quick reply.  So it is not possible to do this in the
config files?  I have to  use nix-channel?  I noticed this issue doubly
because my container didn't upgrade when my core nixos did.  do I need
to manage each of my containers by hand then?

-- 
Matthew O'Gorman
BM-NBUmia4p88Jny5bZbRGcMt64SWWp5WVv
TorChat: 5w3dtk7nhkkijcpc
Site: https://b.rldn.net
Xim/Email: m...@rldn.net
mog@rldn:~$ fortune wisdom -s|cowsay -f /dev/null
 ___ 
/ If you are not for yourself, who will \
| be for you? If you are for yourself,  |
\ then what are you? If not now, when?  /
 --- 


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


[Nix-dev] dist-upgrade? define channel declaratively?

2016-01-13 Thread Matthew O'Gorman
Hi

I started playing with nixos-containers and have been very pleased so
far.  I wanted to try running unstable in one, but haven't been able to
figure out how to do so.  I tried setting these in my configuration of
the container

system.stateVersion = "unstable";
system.defaultChannel = "https://nixos.org/channels/unstable;;

but it didn't change anything on a nixos-rebuild switch --upgrade

How can one define and use channels in the config files?  How does
someone do a dist-upgrade from 15.09 to unstable?  Sorry if these are
dumb questions.  I can't seem to find answer in the manuals or in irc.

-- 
Matthew O'Gorman
BM-NBUmia4p88Jny5bZbRGcMt64SWWp5WVv
TorChat: 5w3dtk7nhkkijcpc
Site: https://b.rldn.net
Xim/Email: m...@rldn.net
mog@rldn:~$ fortune wisdom -s|cowsay -f /dev/null
 __ 
/ If a man loses his reverence for any \
| part of life, he will lose his   |
| reverence for all of life.   |
|  |
\ -- Albert Schweitzer /
 -- 


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


Re: [Nix-dev] Best way to store strong passwords in nix configuration file

2016-01-13 Thread 4levels
Hi Markus, Guillaume and Fabian

first of all, thank you all for your productive replies!
I have resorted for now to use passwords without any special and unicode
characters (as that might have been the actual issue here).
Moving the password to different files seems a bit difficult as I need them
to generate config files for various applications, and I need a lot of them
(for each client I easily have 10 different passwords / keys).
As soon as I managed to get stronger passwords to work, I'll be glad to
report back here how I did it ;-)

Kind regards and keep up the great attitude, you guys rock!

Erik

On Wed, Jan 13, 2016 at 3:16 PM Fabian Schmitthenner <
fab...@schmitthenner.eu> wrote:

> Hi Erik,
>
> besides " and \ also ${ needs to be escaped as written in the manual
> (https://nixos.org/nix/manual/ Section 15.1).
>
> Fabian
>
> On 01/12/2016 03:48 PM, 4levels wrote:
> > Hi Nix Devs,
> >
> > I'm really struggling to get strong passwords correctly parsed in my nix
> > configuration files.  I keep getting errors about unexpected $end or
> > $undefined at wrong places (eg. there is no $ or ; anywhere near the
> > reported failure).
> > Deleting the passwords from the nix config file solves this, so the
> > error is definitely related to the contents of these strings.
> >
> > I'm using a random password generator to create strong passwords, like
> > ETrai_5{h'aG,MQ:
> > I've tried writing them with double quotes, double single quotes and
> > single quotes, with and without escaping, all to no avail.  I also can't
> > seem to find a list of the characters that should be escaped (I only see
> > " and \ and those are not in those passwords.
> >
> > Do you have any tips on how to store many different strong password and
> > use it in nix configuration files?  I need those passwords to be in an
> > object structure so I can build custom config files from them.
> >
> > For the record, I'm using git-crypt to prevent these files from being
> > read by unauthorized clients / people
> >
> > Kind regards,
> >
> > Erik
> >
> >
> > ___
> > nix-dev mailing list
> > nix-dev@lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> >
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Best way to store strong passwords in nix configuration file

2016-01-13 Thread Fabian Schmitthenner
Hi Erik,

besides " and \ also ${ needs to be escaped as written in the manual
(https://nixos.org/nix/manual/ Section 15.1).

Fabian

On 01/12/2016 03:48 PM, 4levels wrote:
> Hi Nix Devs,
> 
> I'm really struggling to get strong passwords correctly parsed in my nix
> configuration files.  I keep getting errors about unexpected $end or
> $undefined at wrong places (eg. there is no $ or ; anywhere near the
> reported failure).
> Deleting the passwords from the nix config file solves this, so the
> error is definitely related to the contents of these strings.
> 
> I'm using a random password generator to create strong passwords, like
> ETrai_5{h'aG,MQ:
> I've tried writing them with double quotes, double single quotes and
> single quotes, with and without escaping, all to no avail.  I also can't
> seem to find a list of the characters that should be escaped (I only see
> " and \ and those are not in those passwords.
> 
> Do you have any tips on how to store many different strong password and
> use it in nix configuration files?  I need those passwords to be in an
> object structure so I can build custom config files from them.
> 
> For the record, I'm using git-crypt to prevent these files from being
> read by unauthorized clients / people
> 
> Kind regards,
> 
> Erik
> 
> 
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 



signature.asc
Description: OpenPGP digital signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev