Re: [Nix-dev] [Hackage] How to install Hackage package, not presented in nixpkgs, locally?

2012-08-14 Thread Daniel Hlynskyi
2012/8/14 Daniel Hlynskyi abcz2.upr...@gmail.com 2012/8/14 Patrick Wheeler patrick.john.whee...@gmail.com Then I do a test install nix-env -iA nixpkgs.haskellPackages.package. Run tests and enjoy, or commit code and preform a pull request. I have problem with this part. How to test

Re: [Nix-dev] [Hackage] How to install Hackage package, not presented in nixpkgs, locally?

2012-08-15 Thread Daniel Hlynskyi
There were theese lines in the end of ghc-pkg output log: The following packages are broken, either because they have a problem listed above, or because they depend on a broken package. pipes-core-0.1.0 pipes-core-0.1.0 And yes, I tried to load Control.Pipes in ghci. It worked not. Now I

[Nix-dev] Cannot upgrade old NixOS

2013-08-04 Thread Daniel Hlynskyi
I have trouble to do upgrade NixOS. What is the easiest way to solve this problem? Do I need to reinstall NixOS from scratch? [root@localhosted:/var/log]# nixos-rebuild build --upgrade fetching list of Nix archives at `

Re: [Nix-dev] Cannot upgrade old NixOS

2013-08-04 Thread Daniel Hlynskyi
` Is it possible to recover from this point? I tried `nix-env -u nix` - error stays. 2013/8/4 Daniel Hlynskyi abcz2.upr...@gmail.com I have trouble to do upgrade NixOS. What is the easiest way to solve this problem? Do I need to reinstall NixOS from scratch? [root@localhosted:/var/log]# nixos-rebuild

[Nix-dev] Fwd: Cannot upgrade old NixOS

2013-08-04 Thread Daniel Hlynskyi
As Vladimir pointed out, your version of Nix is too old. Yes, something like a year. The easiest solution is probably to install the latest version of Nix: http://hydra.nixos.org/job/nix/trunk/build.x86_64-linux/latest E.g. $ nix-install-package --non-interactive --url \

Re: [Nix-dev] Fwd: Cannot upgrade old NixOS (Eelco Dolstra)

2013-08-04 Thread Daniel Hlynskyi
Maybe you have a 32-bit system? In that case you should use http://hydra.nixos.org/job/nix/trunk/build.i686-linux/latest Thanks, you are awesome, Eelco! ___ nix-dev mailing list nix-dev@lists.science.uu.nl

[Nix-dev] cache.nixos.org down?

2013-08-05 Thread Daniel Hlynskyi
cache.nixos.org says 403 Forbidden. Are there alternative binary caches available? I'm stuck with rebuilding system from sources - notebook overheats and does power-off. ___ nix-dev mailing list nix-dev@lists.science.uu.nl

Re: [Nix-dev] Spam on the wiki - reminder

2013-08-06 Thread Daniel Hlynskyi
I'm assuming you've read this page http://www.mediawiki.org/wiki/Anti-spam_features What methods can be surely applied to NixOS wiki? * I think of blocking spam IPs first. (http://www.mediawiki.org/wiki/Extension:SpamBlacklist,

Re: [Nix-dev] Clear all

2013-09-21 Thread Daniel Hlynskyi
I've heard (in Nix 1.6 release features list) that * nix-env -i has a new flag --remove-all (-r) to remove all previous packages from the profile. Though, I don't know if it works with your 2013/9/21 Stewart Mackenzie setor...@gmail.com Hi all, I've only recently found out about nix-shell

[Nix-dev] Dashes in haskell-packages

2013-10-08 Thread Daniel Hlynskyi
Hello. There is a convention to convert haskell packages names to camelCase when they contain dashes. But Nix now can dashes. So what convention should I use when submitting new haskell packages to `nixpkgs`? ___ nix-dev mailing list

Re: [Nix-dev] Dashes in haskell-packages

2013-10-08 Thread Daniel Hlynskyi
That would be great! Ok, I'll be using camelCase. Thanks all! 2013/10/8 Peter Simons sim...@cryp.to Oliver Charles writes: I would suggest carrying on with camelCase for Haskell packages for consistency. If we want to use dash naming and be equivalent to Hackage, then I think this

[Nix-dev] Correct way to solve `libgcc_s.so.1` problem

2013-10-15 Thread Daniel Hlynskyi
I'm using GHCi (inside load-env-haskell). It happend that I Ctrl-C'anceled a threaded program and GHCi was killed with libgcc_s.so.1 must be installed for pthread_cancel to work So now I have to instruct GHCi to find this library. But what is the proper way to do so in NixOS? I've found existing

[Nix-dev] Just a note about NixOS installation problem: nomodeset for AMD

2014-10-21 Thread Daniel Hlynskyi
I've got new computer with AMD APU A8-7600 And the story repeats - I cannot install NixOS without specifing nomodeset as kernel parameter in Unetbootin But Debian Live goes well. Why is that? ___ nix-dev mailing list nix-dev@lists.science.uu.nl

Re: [Nix-dev] NixOS Live CD (Graphic) Boot Failure

2014-11-06 Thread Daniel Hlynskyi
1 levels? On 2014-11-05 21:42, Daniel Hlynskyi wrote: Where could I find one of these old versions? Furthest back I saw was only a year old. Old releases are at http://nixos.org/releases/nixos/unstable/ - I beleive 0.1pre versions are without systemd

[Nix-dev] I'd like to package 'python-qscintilla2' from Debian. How should I do that?

2014-11-11 Thread Daniel Hlynskyi
Hi. I'm going to create a package from Debian one, 'python-qscintilla2' and it's usage 'tortoisehg'. What manuals should I read first, what examples should I take into account, what naming conventions should I consider and what workflows are there to simplify package process? Wiki and manual

Re: [Nix-dev] I'd like to package 'python-qscintilla2' from Debian. How should I do that?

2014-11-11 Thread Daniel Hlynskyi
http://nixos.org/nixpkgs/manual/ Oh, that's new manual for me, thanks! 2014-11-11 19:37 GMT+01:00 Domen Kožar do...@dev.si: Hi Daniel, Wiki and manual information is helpfull, but not enlighting. I'll start there, but maybe someone can point me to better docs/examples on package process?

[Nix-dev] force nix-build without binary caches?

2014-12-01 Thread Daniel Hlynskyi
hi, I'm trying to use -K option for nix-build, but it doesn't generate unpacked directory in /tmp, it simply finds it somewhere in cache (or binary cache.nixos.org or hydra.nixos.org). How to force it to build without using cache and generated /tmp/nix-build-* directory?

Re: [Nix-dev] force nix-build without binary caches?

2014-12-01 Thread Daniel Hlynskyi
--option binary-caches On Mon, Dec 1, 2014 at 11:08 AM, Daniel Hlynskyi abcz2.upr...@gmail.com wrote: hi, I'm trying to use -K option for nix-build, but it doesn't generate unpacked directory in /tmp, it simply finds it somewhere in cache (or binary cache.nixos.org or hydra.nixos.org). How

Re: [Nix-dev] force nix-build without binary caches?

2014-12-01 Thread Daniel Hlynskyi
/kycs9akg1h70wjm0p4cg9cc384ccrf y7-qscintilla-2.8.3 $ nix-build 'nixpkgs' -K -A qscintilla --option build-use-substitutes false On Mon, Dec 1, 2014 at 11:32 AM, Daniel Hlynskyi abcz2.upr...@gmail.com wrote: Thanks guys, but that doesn't help [danbst@master:/tmp/scibuild]$ nix-build 'nixpkgs' -K

Re: [Nix-dev] force nix-build without binary caches?

2014-12-01 Thread Daniel Hlynskyi
systemd-private-a17a7cbc51c64ee6bc6717082ade3db4-rtkit-daemon.service-vxwynA drwx-- 3 danbst nogroup 60 Nov 30 13:39 .wine-1000 -r--r--r-- 1 root root 11 Nov 27 20:45 .X0-lock drwxrwxrwt 2 root root 60 Nov 27 20:45 .X11-unix 2014-12-01 11:47 GMT+01:00 Daniel Hlynskyi abcz2.upr

Re: [Nix-dev] Problem with builder #1 - nix-shell and nix-build behave differently

2015-05-14 Thread Daniel Hlynskyi
Then how does nix-build handle this? Is there some special hook cd $sourceRoot after unpackPhase? Why this hook is not added to nix-shell? 2015-05-14 11:15 GMT+03:00 Tomasz Kontusz tomasz.kont...@gmail.com: entering the source root is not a part of any phase, so you'll have to do it by hand in

Re: [Nix-dev] Problem with builder #1 - nix-shell and nix-build behave differently

2015-05-16 Thread Daniel Hlynskyi
://nixos.org/wiki/Debugging_a_Nix_Package] As Tomasz Kontusz mentioned, the cd $sourceRoot is done between phases, which is unexpectable to me. 2015-05-14 14:10 GMT+00:00 Luca Bruno lethalma...@gmail.com: On 14/05/2015 15:58, Daniel Hlynskyi wrote: Then how does nix-build handle

[Nix-dev] Problem with builder #1 - nix-shell and nix-build behave differently

2015-05-13 Thread Daniel Hlynskyi
Problem: nix-build and nix-shell treat differently source root directory When using nix-build, shell is in $sourceRoot after unpackPhase, when using nix-shell, it is left in current directory. How can I make nix script behave same when nix-building it and nix-shelling? Side problem: is there

Re: [Nix-dev] Problem with builder #1 - nix-shell and nix-build behave differently

2015-05-16 Thread Daniel Hlynskyi
already an src and using nix-shell for getting in the dev environment. On Sat, May 16, 2015 at 6:56 PM, Daniel Hlynskyi abcz2.upr...@gmail.com wrote: Why not? unpackPhase unpacks to current dir, why can't it switch to $sourceRoot? If I understand nix-shell right, it would be then possible

[Nix-dev] services.xserver.displayManager.auto does not work

2015-06-20 Thread Daniel Hlynskyi
Hi. I'm trying to run window manager without login prompt. I'm using displayManager.auto, but it results into xterm without WM. It uses under the hood SLiM, so the following config does not work either displayManager.slim = { enable = true; defaultUser = danbst;

Re: [Nix-dev] services.xserver.displayManager.auto does not work

2015-06-20 Thread Daniel Hlynskyi
On 20 June 2015 13:49:39 Daniel Hlynskyi abcz2.upr...@gmail.com wrote: Hi. I'm trying to run window manager without login prompt. I'm using displayManager.auto, but it results into xterm without WM. It uses under the hood SLiM, so the following config does not work either

Re: [Nix-dev] PyQt and packaging python-qscintilla

2015-07-22 Thread Daniel Hlynskyi
Ah, the problem was fixed with lndir. That is basically way 3), but does not use extra space on disk mkdir -p $out lndir ${pkgs.pyqt4} $out 2015-07-19 17:36 GMT+00:00 Daniel Hlynskyi abcz2.upr...@gmail.com: For PyQt there is a library python-qscintilla, which is Python binding to qscintilla

Re: [Nix-dev] Automount for usb thumb drives / other external drives

2015-07-18 Thread Daniel Hlynskyi
What is the nixos way to add udiskie as user daemon? Currently I run in ~/.bashrc and xmonad.hs ps aux | grep -q '[u]diskie' || udiskie disown %1 2015-07-16 14:27 GMT+00:00 Benno Fünfstück benno.fuenfstu...@gmail.com: There is an udisk auto mounter in nixpkgs though: udiskie Guillaume

[Nix-dev] PyQt and packaging python-qscintilla

2015-07-19 Thread Daniel Hlynskyi
For PyQt there is a library python-qscintilla, which is Python binding to qscintilla editor control. PyQt is already packaged here [1]. The problem with packaging python-qscintilla is: it wants to be in PyQt directory. So we can do import PyQt4 import PyQt4.Qsci Now [2] I have three choices

Re: [Nix-dev] [***SPAM***] Thoughts on the Nix model

2015-09-21 Thread Daniel Hlynskyi
Nice way to establish "declarativeness" of Nix expressions is to integrate OWL (or any other description logic based language) into Nix such that we can do (lossy) translation nixpkgs -> .owl and query results with existing OWL tooling. The list of queries Nix itself does not support is a first

[Nix-dev] NIX_PATH and tarballs

2015-11-21 Thread Daniel Hlynskyi
Hi. The manual says on tarballs in NIX_PATH this: > If a path in the Nix search path starts with http:// or https://, it is interpreted > as the URL of a tarball that will be downloaded and unpacked to a temporary > location. The tarball must consist of a single top-level directory. But when I

Re: [Nix-dev] Custom directories

2016-05-27 Thread Daniel Hlynskyi
ded so they also create the target directory with the permissions you want This (permissions) would be nice feature for fileSystems too, IMO. 2016-05-25 23:14 GMT+03:00 Arnold Krille <arn...@arnoldarts.de>: > On Wed, 25 May 2016 17:26:24 +0300 Daniel Hlynskyi > <abcz2.upr...@gma

Re: [Nix-dev] Merge attribute sets recursively

2016-06-15 Thread Daniel Hlynskyi
Does lib.recursiveUpdate do the job? 15 черв. 2016 7:52 пп, користувач "4levels" <4lev...@gmail.com> написав: > Hi Nix Devs, > > I'm still struggling to achieve the following: > > I have an attribute set which is 2 levels deep nested and has a variable > number of subsets, like this: > > channels

Re: [Nix-dev] User-oriented nixpkgs documentation (was: ioquake3 on nixos)

2016-06-17 Thread Daniel Hlynskyi
Write a blog post. Though it is hard to maintain blog post content over time, ask yourself "how long am I able to maintain this knowledge? Who should be responsible for verifying this manual in with future changes?" People expect manuals to be consistent with software. Every time I find errors in

Re: [Nix-dev] Separate repository for autogenerated lists of urls and hashes

2016-06-19 Thread Daniel Hlynskyi
Now, when I've done some package upgrades and downgrades, I really like the idea of a separate srcs repo. I'd like to contribute 3 ideas. 1. Use some of monitor.nixos.org logic for srcs updating 2. Autoextract src information from nixpkgs to srcs 3. Add meta.updateSrcsScript or meta.listAllSrcs

Re: [Nix-dev] sudo nixos-rebuild test failes after new install

2016-06-18 Thread Daniel Hlynskyi
Messing with filesystems.* is really dangerous. Once I forgot to assign label to root partirion and referenced disk by label in configuration. Nixos-rebuuld switch and goodbye. Yesterday I forgot to mkfs of a new LV before nixos-rebuild, got local-fs.target failed and bricked instance. Sadly this

Re: [Nix-dev] Running nix-build on Circle CI

2016-06-15 Thread Daniel Hlynskyi
Have you tried nix-channel --add https://nixos.org/channels/nixos-unstab le nixpkgs ? ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] mix bundlerEnv and python3.buildEnv

2016-06-15 Thread Daniel Hlynskyi
Reason why patchShebangs doesn't work here is because `python` executable is not accessible in the environment. Instead python is called `python3`. So if your script used #!/usr/bin/env python3, your first example would had worked as expected. I think this is bug with nixpkgs python environment,

Re: [Nix-dev] Best way to install nix packages from github repo

2016-06-25 Thread Daniel Hlynskyi
All approaches listed here share common pitfall - you have to download not only latest Nixpkgs tarball, but whole new stdenv and co to use that 1 package. But often cherry-picking that new package and deps to local Nixpkgs is the only thing required, without all of that updated stdenv. I see

[Nix-dev] Revert `nixos-rebuild switch --profile-name test`

2016-02-08 Thread Daniel Hlynskyi
Hi. I have following GC roots: /nix/var/nix/profiles/system-140-link -> /nix/store/7krdihr333i4cl82n7c0afwgrv4k13gd-nixos-system-master-16.03pre75806.77f8f35 /nix/var/nix/profiles/system-profiles/another one try-1-link -> /nix/store/0xx3nbzplrycjfd3fv1bnniydaanpc6j-nixos-14.10pre50818.b5fe0d3

Re: [Nix-dev] Revert `nixos-rebuild switch --profile-name test`

2016-02-08 Thread Daniel Hlynskyi
> They are just symlinks. You can simply delete or create them as any files. These profiles are shown in my GRUB config. It is not obvious from man whether they will survive `nixos-rebuild` thanks 2016-02-08 12:05 GMT+02:00 Vladimír Čunát <vcu...@gmail.com>: > On 02/08/2016 09:3

Re: [Nix-dev] Documentation for multiple-outputs in nixpkgs

2016-05-10 Thread Daniel Hlynskyi
@vcunat pointed me to http://hydra.nixos.org/build/34390075/download/1/nixpkgs/manual.html#chap-multiple-output 2016-05-10 15:49 GMT+03:00 Benno Fünfstück : > Hello list, > > in recent nixpkgs, the multiple outputs branch was merged. Is there any > documentation on

[Nix-dev] Custom directories

2016-05-25 Thread Daniel Hlynskyi
Hi. What's canonical Nixos way to specify custom directories? I'm playing with containers. Here is excerpt of my config: fileSystems."/media/logs" = { fsType = "ext4"; label = "logs"; }; boot.initrd.postMountCommands = '' chmod 777 /media/logs ''; containers.dwarfs = {

Re: [Nix-dev] coerce a list of strings

2016-07-26 Thread Daniel Hlynskyi
lib.concatStringsSep "\n" Google "Nixpkgs strings" for definition and documentation 27 лип. 2016 12:30 дп "Stefan Huchler" пише: > I wanted to shorten my configuration file a bit. > I have a long configuration for flexget with entries like that: > > >

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

[Nix-dev] Hydra is down

2016-07-30 Thread Daniel Hlynskyi
https://hydra.nixos.org/ returns 500 Internal Server Error ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] evalModules: how to use it?

2016-07-31 Thread Daniel Hlynskyi
The advice from Bjorn was correct, but there is a bug in containers code. Many thanks to @layus for investigating into this problem! PR with fix https://github.com/NixOS/nixpkgs/pull/17365 2016-07-07 7:47 GMT+00:00 Daniel Hlynskyi <abcz2.upr...@gmail.com>: > Unfortunately, I don't u

[Nix-dev] PERL5LIB and lib.makePerlPath

2016-08-02 Thread Daniel Hlynskyi
Hi. There is a function lib.makePerlPath $ nix-instantiate --eval -E 'with import {}; lib.makePerlPath [perlPackages.DBDPg]' "/nix/store/...-perl-DBD-Pg-3.5.3/lib/perl5/site_perl" I want a similar function, which includes deps too (for wrapper) $ nix-instantiate --eval -E 'with import {};

Re: [Nix-dev] grsecurity on Nix

2016-08-01 Thread Daniel Hlynskyi
Actually, there was a nice addition recently https://nixos.org/releases/nixos/unstable/nixos-16.09pre87733.dbd856d/manual/index.html#sec-grsecurity Just do security.grsecurity.enable = true; if you follow unstable 2016-08-01 19:51 GMT+00:00 Matthew Robbetts : > Hi

Re: [Nix-dev] PERL5LIB and lib.makePerlPath

2016-08-03 Thread Daniel Hlynskyi
site_perl\n" It looks to me I'm reinventing a wheel... 2016-08-02 13:39 GMT+03:00 Daniel Hlynskyi <abcz2.upr...@gmail.com>: > Hi. There is a function lib.makePerlPath > > $ nix-instantiate --eval -E 'with import {}; lib.makePerlPath > [perlPackages.DBDPg]' > "/nix/

Re: [Nix-dev] multiple versions of the same software? / collisions

2016-08-04 Thread Daniel Hlynskyi
I can be mistaken, but nix-env dash-splits name to get name without version, and uses it to upgrade or sideinstall into environment. This works bad for python, because python34 and python35 are separate expressions, treated as one in nix-env. You can override the name of package in

Re: [Nix-dev] duplicate packages?

2016-08-04 Thread Daniel Hlynskyi
Have you run sudo nix-collect-garbage -d ? Even If yes, you still have to check all gc roots to belong to system, and not to side nix-builds 4 серп. 2016 11:58 дп "Roland Koebler" пише: > Hi, > > I have Nix running on Debian with the default channel [*], and I

Re: [Nix-dev] duplicate packages?

2016-08-04 Thread Daniel Hlynskyi
Ah, you are not on NixOS, so collect garbage without sudo 4 серп. 2016 2:35 пп "Daniel Hlynskyi" <abcz2.upr...@gmail.com> пише: > Have you run sudo nix-collect-garbage -d ? Even If yes, you still have to > check all gc roots to belong to system, and not to side nix-builds

Re: [Nix-dev] How to install specific version of a package?

2016-08-12 Thread Daniel Hlynskyi
Nix allows you to have multiple versions of one package, but each version can require it's specific build recipe. nixpkgs - is a place for latest versions of packages, and, pragmatically, for most used non-latest versions. The place for all packages of all versions is currently vacant. Given

Re: [Nix-dev] nix-shell does not work???

2016-07-17 Thread Daniel Hlynskyi
Perhaps shell exits too soon. One way to do it explicitly, is adding [[ -n "$IN_NIX_SHELL" ]] && exit to the top of your's ~/.bashrc, just like Bjorn said 2016-07-17 17:45 GMT+03:00 Matthias Beyer : > I just verified this: > > echo $PATH | sha1sum >

Re: [Nix-dev] Project environment setup

2016-07-19 Thread Daniel Hlynskyi
Looks like gradle25 package doesn't follow nixpkgs conventions here. It has no `.override` attribute, which, as I remember, is added by `callPackage` function. I think this is a bug, but there is a workaround: ``` # shell.nix { pkgs ? import {} }: let mygradle = (pkgs.gradleGen.override {

[Nix-dev] evalModules: how to use it?

2016-07-06 Thread Daniel Hlynskyi
Hi. I have a container generator: mkContainer = { config, lib , additionalConfig ? {} }: let containerParams = { autoStart = true; }; in containerParams // { config = { config, pkgs, lib, ... }: { imports = [ ]; networking.firewall.enable = false; } //

[Nix-dev] On a sad state of declarative containers management

2016-07-06 Thread Daniel Hlynskyi
I've collected the list of issues with containers. Go through this list before starting using them. Declarative containers are good, but be prepared = Bidirectional container access - https://github.com/NixOS/nixpkgs/issues/16754 Container interface is not removed when declarative

Re: [Nix-dev] evalModules: how to use it?

2016-07-07 Thread Daniel Hlynskyi
Unfortunately, I don't understand how can apply mkMerge here. Is the following example correct? containers.test-1.config = let cfg1 = { networking.extraHosts = '' 10.10.10.10 bla1 ''; }; cfg2 = { networking.extraHosts = ''

[Nix-dev] Why nginx config isn't placed into /etc/nginx/nginx.conf?

2016-08-09 Thread Daniel Hlynskyi
Is this intentional? I'm writing a service and want to know whether to do like nginx or use /etc for configs. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Skillset labels

2016-07-23 Thread Daniel Hlynskyi
* containers * virtualization * nixos tests * module system * java 23 лип. 2016 12:50 пп "Wout Mertens" пише: > To better triage issues, it would be good to have labels that indicate the > skillset needed to work the issue. Here's a preliminary list, what is > missing? >

Re: [Nix-dev] changing the default source epoch to be zip-safe

2016-08-20 Thread Daniel Hlynskyi
still, why 1.1.1970? One of @edolstra's commits introduced algorithm, that sets source epoch time to most recent source change date. Wouldn't that be better date for /nix/store? Currently datetime in /nix/store carries zero information. Also, I'd like to notice that non-epoch-starttime files do

Re: [Nix-dev] infinite recursion on newer nixpkgs

2016-08-05 Thread Daniel Hlynskyi
Perhaps not a direct answer, but why do you use mkIf? If postgresql isn't enabled, it won't run your script, whatever it is 4 серп. 2016 9:52 пп "Sergey Mironov" пише: > Hi. > I've updated my nixpkgs up to 8983df7 and faced an infinite recursion > on the following peace of

Re: [Nix-dev] Nix GUI? / make Nix more beginner-friendly

2016-08-05 Thread Daniel Hlynskyi
Hey Roland, can you tell which package manager GUI do you like best? I'm addicted to command line interface because - want to do nix-instantiate, nixos-rebuild, nix-build and nix-shell. Nix-env -i is the rarest of my tools - it works even If X is unavailable (remote, broken X) That's also a

Re: [Nix-dev] NixOps usage survey.

2016-09-05 Thread Daniel Hlynskyi
I am switching manual deployment to NixOps, and I'm getting lots of quirks in hetzner, virtualbox, libvirtd and container backends. Also, because of impurities in my systems, I can't switch easy from production to, for example, virtualbox deployment. So no success story here, but I like this

Re: [Nix-dev] Including "beta" or "unstable" identifiers in package names?

2016-08-29 Thread Daniel Hlynskyi
Another solution is to abandon parsing of derivation name and include "meta" to derivation. Then the name and version representations can be included as meta.name and meta.version in whichever format is liked by maintainer. mkDerivation can do name = "${meta.name}-${meta.version}" itself. Meta

Re: [Nix-dev] typed nix

2016-08-29 Thread Daniel Hlynskyi
Dynamic attributes make exact typing hard. Perhaps Nix will adopt the gradually typed approach in a future. https://en.wikipedia.org/wiki/Gradual_typing#Examples But would that be worth of it? 2016-08-29 21:47 GMT+00:00 stewart mackenzie : > per chance, is there work

Re: [Nix-dev] Unwanted, unannounced reboot

2016-08-30 Thread Daniel Hlynskyi
Can this be hw problem, like overheat? 30 серп. 2016 3:31 пп "Matthias Beyer" пише: > Hi, > > this is the third time I got a unwanted, unannounced reboot of my > Thinkpad X220. The device just went off and rebooted. > > My logs: > > Aug 30 13:16:23 yuu audit[27536]:

[Nix-dev] Setuid wrapper for bash script

2016-09-14 Thread Daniel Hlynskyi
Hi. I want to allow some user to restart systemd service. I found that setuid wrappers should be used for this task. Here is what I've written: environment.systemPackages = [ (pkgs.writeScriptBin "restart-defenders" '' #!${pkgs.bash}/bin/bash systemctl restart

Re: [Nix-dev] Setuid wrapper for bash script

2016-09-14 Thread Daniel Hlynskyi
> You probably need to use "bash -p", otherwise bash will drop its root privileges > on startup. Thanks, that's it > Shell scripts cannot be setuid: > http://stackoverflow.com/questions/18698976/suid-not- working-with-shell-script Thanks! Actually, I really missed the case when user could alter

Re: [Nix-dev] Setuid wrapper for bash script

2016-09-15 Thread Daniel Hlynskyi
Actually, I found a way to do what I need without setuid and sudoers, just polkit rules let restartScript = pkgs.writeScriptBin "defenders" '' #!${pkgs.bash}/bin/bash [[ -z "$1" ]] && echo Specify operation: start, stop, restart, status && exit 0 systemctl "$1" defenders.service

Re: [Nix-dev] GitHub Octoverse 2016: nixpkgs #6 in Repositories with the most users reviewing code

2016-09-15 Thread Daniel Hlynskyi
Who are those "reviewing users"? I didn't know about such github role. 15 вер. 2016 11:25 дп "Nathan Bijnens" пише: > https://octoverse.github.com/ > > As a community we can be very prood. Congratulations to the whole > community, especially to some of the most active members.

Re: [Nix-dev] Multiple stores

2016-08-26 Thread Daniel Hlynskyi
Why LVM is expensive? I'd like to know because I often mount /nix/store on log. vvolum. 26 серп. 2016 3:51 пп "Freddy Rietdijk" пише: > Hi, > > I would like to use Nix for a certain data analysis where I will have > several thousand files which are all together about

[Nix-dev] Override virtualbox

2016-08-24 Thread Daniel Hlynskyi
I know about nixpkgs.config.packageOverrides, but I cannot override virtualbox with it. Given nixpkgs.config.packageOverrides = sup_: { linuxPackages.virtualbox = sup_.linuxPackages.virtualbox.override { headless = true; }; }; virtualisation.virtualbox.host.enable = true; I get

Re: [Nix-dev] 16.09 beta released

2016-09-28 Thread Daniel Hlynskyi
After switch from 16.03 to 16.09, rsync command was not available. My deployment scripts were broken. Also, inability to start VPN in container is a regression and show-stopper for me. 6 вер. 2016 11:02 пп "Domen Kožar" пише: > Hi all, > > I'd like to announce NixOS 16.09 beta in

Re: [Nix-dev] nix-shell and persistent environment

2016-10-02 Thread Daniel Hlynskyi
ere is a way to pin src as GC root, but dumb `buildInputs = [ nixpkgsSrc ];` doesn't work. 2016-10-01 15:49 GMT+00:00 Ruben Astudillo <ruben.as...@gmail.com>: > On 01/10/16 04:03, Daniel Hlynskyi wrote: > > To complete previous answer. > > > > I create a separate

Re: [Nix-dev] nix-shell and persistent environment

2016-10-01 Thread Daniel Hlynskyi
To complete previous answer. I create a separate directory .nix-gc-roots, because nix-shell produces many roots. Also, I haven't found yet a way to get nix root for nixpkgs imported as external derivation, so after garbage collect I still have to redownload some sources 30 вер. 2016 4:44 пп

Re: [Nix-dev] QoS/AQM/shaping on NixOS

2016-10-27 Thread Daniel Hlynskyi
Hi Matthew Such a module is welcome. I can share my configuration for debloating https://gist.github.com/danbst/58150662994eda45443c3c9a9fbf4172 I've also experimented with original dtaht/deBloat script, but haven't got much success with it. The non-working result is at

[Nix-dev] So, i've bricked my remote server, but have access to hard drive

2016-10-29 Thread Daniel Hlynskyi
What are my options to unbrick it? On laptop I boot with previous configuration, how to do that on remote? Examples of bricks: wrong firewall rules, disabled sshd ___ nix-dev mailing list nix-dev@lists.science.uu.nl

[Nix-dev] pypi2nix: generate full PYTHONPATH from requirements?

2016-11-05 Thread Daniel Hlynskyi
I'm trying to use pypi2nix-generated expression to create Kallithea service. systemd.services.kalithea = { after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; script = let ppath = concatMapStringsSep ":" (x:

Re: [Nix-dev] pypi2nix: generate full PYTHONPATH from requirements?

2016-11-05 Thread Daniel Hlynskyi
ix, but try and use > `python.withPackages` to create an environment where all packages can be > found by the interpreter. PYTHONPATH is still used a lot, especially with > modules, but we shouldn't be using it. > > http://nixos.org/nixpkgs/manual/#python > > On Sat, Nov 5, 2016 at 9:50 PM,

Re: [Nix-dev] pypi2nix: generate full PYTHONPATH from requirements?

2016-11-05 Thread Daniel Hlynskyi
/NixOS/nixpkgs/blob/master/nixos/ > modules/services/audio/mopidy.nix > > Instead of `python.withPackages` `python.buildEnv.override{extralibs=...;}` > is used. `withPackages` is just a wrapper around `buildEnv`. > > On Sat, Nov 5, 2016 at 10:09 PM, Daniel Hlynskyi <ab