Re: [Nix-dev] NixOS on a machine with only one user
> Assuming bigger things usually gives you a better or at least more scalable result, and in most cases the additional cost is very close to zero. For example every single-disk system I set up uses a two-disk RAID array with one missing disk from the point of view of mdadm. If it does happen that I actually want to add more disks, it will be a few short online commands to do it instead of a tedious reinstallation of the entire system, and it costs only a few megabytes. The additional disk might as well be an external emergency disk that starts synchronising as soon as I plug it in. How did you manage to make mdadm do that? On 25/04/2015 6:14 AM, Ertugrul Söylemez wrote: NixOS noob here. I'm using NixOS on a machine with only one user (me). What's the best strategy for installing packages? [...] Installing into a normal user profile In general I tend to just assume that my system is an actual multi-user system. I'm a normal user, so I don't make any assumptions on the way imaginary fellow users use their account. A very small number of packages will have to be used by the majority of the users on the system, for example because they are relevant to the network topology or purpose. Most of them will be installed in the form of NixOS services. All other packages are user-specific. Installing user packages into the user profile has the additional advantage that it is safe and secure to install your own packages, which you may want to do from time to time, perhaps because you may want to use Nixpkgs-master for some bleeding edge version or because you may want to use Nix for a custom package or development. Remember that Nix handles not only code. You can equally well write and deploy a bunch of static files using it. Assuming bigger things usually gives you a better or at least more scalable result, and in most cases the additional cost is very close to zero. For example every single-disk system I set up uses a two-disk RAID array with one missing disk from the point of view of mdadm. If it does happen that I actually want to add more disks, it will be a few short online commands to do it instead of a tedious reinstallation of the entire system, and it costs only a few megabytes. The additional disk might as well be an external emergency disk that starts synchronising as soon as I plug it in. Fortunately this is possible with NixOS. Many distributions, including all Anaconda-based ones (RHEL, CentOS, Fedora, etc.), do not allow you to do this. Greets, Ertugrul ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev -- Founder of Matrix AI http://matrix.ai/ +61420925975 ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Please test Nix store auto-optimise
Thank you for the hint, that saved 12GB on my machine. Anyway, wouldn't it be better if we use an extra level of directories to reduce the size of /nix/store/.links ? > $ ls -l /nix/store/.links/ | wc -l > 374716 "ls" is quite slow and this is just my desktop machine and not a busy server like hydra or something like that. Such a huge directory would kill slower file manager or other applications. I just think of PyCharm's "open file" dialog which sometimes tries to open my /nix/store... this operation freezes the application so that I have to kill it. For example git or git-annex introduced an extra level of directories to reduce the amount of files inside a single directory. Something like this: $ tree --charset=ascii /tmp/nix/store/.links/ /tmp/nix/store/.links/ |-- aab | |-- aab4f31a9b3119c2f6bb3b45c27c4cb33ff45a8f6e2 | `-- aabd31b843d1faf29e4d3e50c135d6539ac9fe77ffd |-- aal | |-- aal4f31a9b3119c2f6bb3b45c27c4cb33ff45a8f6e2 | `-- aald31b843d1faf29e4d3e50c135d6539ac9fe77ffd |-- ace | |-- ace4f31a9b3119c2f6bb3b45c27c4cb33ff45a8f6e2 | `-- aced31b843d1faf29e4d3e50c135d6539ac9fe77ffd |-- ehw | |-- ehw4f31a9b3119c2f6bb3b45c27c4cb33ff45a8f6e2 | `-- ehwd31b843d1faf29e4d3e50c135d6539ac9fe77ffd |-- eia | |-- eia4f31a9b3119c2f6bb3b45c27c4cb33ff45a8f6e2 | `-- eiad31b843d1faf29e4d3e50c135d6539ac9fe77ffd |-- ial | |-- ial4f31a9b3119c2f6bb3b45c27c4cb33ff45a8f6e2 | `-- iald31b843d1faf29e4d3e50c135d6539ac9fe77ffd `-- ode |-- ode4f31a9b3119c2f6bb3b45c27c4cb33ff45a8f6e2 `-- oded31b843d1faf29e4d3e50c135d6539ac9fe77ffd 7 directories, 14 files -- Jascha Geerds j...@ekby.de ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Heroku package
2015-04-23 23:48 GMT-03:00 Richard Wallace : > Hey all, > > There used to be a package for heroku in nixpkgs. I recently found need of > it and it seems to be gone. What happened to it? How can it be installed on > NixOS these days? I tried downloading and installing, but it fails to find > ruby. Normally, you declare ruby in tha buildInputs array. Or try to pass Ruby installed dirs as parameters for configure script. > > Thanks, > Rich > > ___ > 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] NixOS on a machine with only one user
On Friday, April 24, 2015 16:23:39 Amy de Buitléir wrote: > NixOS noob here. I'm using NixOS on a machine with only one user (me). > What's the best strategy for installing packages? > > Installing into the global system environment > - or - > Installing into a normal user profile - or - Installing using nix-shell -p. This is what I use to install simple packages such as cli tools. More often than not, I end up not using that utility for more than the current task, so it's very convenient for the software to disappear once you close the shell. If you use something often enough to get tired of pulling it in via nix-shell, then maybe it's worth installing permanently. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] NixOS on a machine with only one user
> NixOS noob here. I'm using NixOS on a machine with only one user (me). > What's the best strategy for installing packages? > [...] > Installing into a normal user profile In general I tend to just assume that my system is an actual multi-user system. I'm a normal user, so I don't make any assumptions on the way imaginary fellow users use their account. A very small number of packages will have to be used by the majority of the users on the system, for example because they are relevant to the network topology or purpose. Most of them will be installed in the form of NixOS services. All other packages are user-specific. Installing user packages into the user profile has the additional advantage that it is safe and secure to install your own packages, which you may want to do from time to time, perhaps because you may want to use Nixpkgs-master for some bleeding edge version or because you may want to use Nix for a custom package or development. Remember that Nix handles not only code. You can equally well write and deploy a bunch of static files using it. Assuming bigger things usually gives you a better or at least more scalable result, and in most cases the additional cost is very close to zero. For example every single-disk system I set up uses a two-disk RAID array with one missing disk from the point of view of mdadm. If it does happen that I actually want to add more disks, it will be a few short online commands to do it instead of a tedious reinstallation of the entire system, and it costs only a few megabytes. The additional disk might as well be an external emergency disk that starts synchronising as soon as I plug it in. Fortunately this is possible with NixOS. Many distributions, including all Anaconda-based ones (RHEL, CentOS, Fedora, etc.), do not allow you to do this. Greets, Ertugrul 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] NixOS on a machine with only one user
Do as you will. I keep my system profile as minimal as I can. And my user profile consists of several groups of pkgs. I have them in my ~/.nixpkgs/config [1]. Firstly I just install via `nix-env -i`, if I like the pkgs and I need it I'm writing it into my [1] to one of the groups ("env"). [1] https://github.com/jagajaga/my_configs/blob/master/.nixpkgs/common.nix (~/.nixpkgs/config is linked to this file). 2015-04-24 19:23 GMT+03:00 Amy de Buitléir : > NixOS noob here. I'm using NixOS on a machine with only one user (me). > What's the best strategy for installing packages? > > Installing into the global system environment > - or - > Installing into a normal user profile > > It seems that the second method would be a bit more convenient, especially > if I add and remove new software frequently. Which I do. > > ___ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev > -- Sincerely, Arseniy Seroka ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] NixOS on a machine with only one user
On Fri, Apr 24, 2015 at 04:23:39PM +, Amy de Buitléir wrote: > NixOS noob here. I'm using NixOS on a machine with only one user (me). > What's the best strategy for installing packages? > > Installing into the global system environment > - or - > Installing into a normal user profile > > It seems that the second method would be a bit more convenient, especially > if I add and remove new software frequently. Which I do. Hi Amy, I also use NixOS on machines where I am the sole user. I try out packages in the normal user profile first with `nix-env -i` and then if I end up sticking with it, move it into the global system environment in `/etc/nixos/configuration.nix`. I try to keep my user profile minimal or empty. I am also very new to NixOS, but the above method seems to work well. I keep track of the system configuration with git, so that's a nice added bonus. -L ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] NixOS on a machine with only one user
NixOS noob here. I'm using NixOS on a machine with only one user (me). What's the best strategy for installing packages? Installing into the global system environment - or - Installing into a normal user profile It seems that the second method would be a bit more convenient, especially if I add and remove new software frequently. Which I do. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] VirtualBox won't start VMs after kernel update
On 24-04-2015 11:35:31, phree...@yandex.ru wrote: > On Friday, April 24, 2015 07:19:14 you wrote: > > On 23-04-2015 12:57:17, Jonathan Glines wrote: > > > If you upgraded your kernel, you need to reboot. Kernel splicing is a ways > > > off, even though they are working on it. > > > > Of course, I did a reboot after kernel update, but vbox still won't > > work. > > Then it probably means that virtualbox also got upgraded and the new version > doesn't work, or it isn't compatible with that kernel. Looks like a bug to me > :( Surprisingly, a reboot helped. Maybe I got a kernel upgrade when updating, but didn't notice. Anyways, thank you! -- Mit freundlichen Grüßen, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed with gnupg. pgp87p7NAugcV.pgp 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] VirtualBox won't start VMs after kernel update
On Friday, April 24, 2015 07:19:14 you wrote: > On 23-04-2015 12:57:17, Jonathan Glines wrote: > > If you upgraded your kernel, you need to reboot. Kernel splicing is a ways > > off, even though they are working on it. > > Of course, I did a reboot after kernel update, but vbox still won't > work. Then it probably means that virtualbox also got upgraded and the new version doesn't work, or it isn't compatible with that kernel. Looks like a bug to me :( ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev