[Nix-dev] Automatically locking the screen with xautolock
How do I automatically lock the screen in NixOS? I've installed xautolock and slock. And tested sudo xautolock -time 1 -locker slock in the shell, which works fine. Can I make it work without sudo? It's a problem because these lines in configuration.nix: displayManager.sessionCommands = '' sudo xautolock -time 1 -locker slock ''; result in sudo: no tty present and no askpass program specified So it fails to start. 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] Automatically locking the screen with xautolock
The 02/08/2015 21:07, Nikita Karetnikov wrote: How do I automatically lock the screen in NixOS? I've installed xautolock and slock. And tested sudo xautolock -time 1 -locker slock in the shell, which works fine. Can I make it work without sudo? I use xss-lock, which I recently added to Nixpkgs. I start xss-lock from .i3/config, but presumably it would work in displayManager.sessionCommands as well. xss-lock uses xset to to both configure the screensaver delay as well as to manually start the screensaver (if you want to activate the screensaver with a hotkey, for example). One of my favorite features of xss-lock is that it knows about suspend/resume and will automatically lock the screen on resume. Here is the relevant section from my .i3/config file: # Win+L locks the screen. bindsym Mod4+l exec xset s activate # Start xss-lock (and lock the screen after 15 minutes) exec_always xset s 900 exec_always --no-startup-id xss-lock -- i3lock -n -i $HOME/example.png Let me know if you need any additional information. Thanks, Michael Alyn Miller ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] symbola font expression
The attached patch updates the nixpkgs expression for the symbola font to 7.19, also fixing a wrong hash (the source updated the font version using the same download url). From ee185f87ec5f251a0e9e3989d978a9b9626e70c6 Mon Sep 17 00:00:00 2001 From: Karn Kallio kkal...@skami.org Date: Sun, 8 Feb 2015 12:45:52 -0430 Subject: [PATCH] symbola: update to 7.19 ; fixes wrong hash. --- pkgs/data/fonts/symbola/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/fonts/symbola/default.nix b/pkgs/data/fonts/symbola/default.nix index 7efb1ea..478c72a 100644 --- a/pkgs/data/fonts/symbola/default.nix +++ b/pkgs/data/fonts/symbola/default.nix @@ -1,11 +1,11 @@ {stdenv, fetchurl, unzip }: stdenv.mkDerivation rec { - name = symbola-7.18; + name = symbola-7.19; src = fetchurl { url = http://users.teilar.gr/~g1951d/Symbola.zip;; -sha256 = 1dk0qawlgdfh58pz2wb80rs9h8m20nmnr4bhk6jmva8201ixz62f; +sha256 = 1g7ngcxffrb9vqnmb0w9jmp349f48s0gsbi69b3g108vs8cacrmd; }; docs_pdf = fetchurl { url = http://users.teilar.gr/~g1951d/Symbola.pdf;; -- 2.1.4 ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Haskell: indexing all packages on Hackage with Hoogle
Nikita Karetnikov nik...@karetnikov.org writes: Has anyone tried that? Most of the guides suggest you to run the following command, which should download the necessary databases, but it fails for me. Just for what it's worth, I have in the past indexed everything, but it causes far too much noise in the search output. This is why the hoogle-local expression takes the approach of asking for a list of 'packages' to indicate what should be indexed. John ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Haskell: indexing all packages on Hackage with Hoogle
Just for what it's worth, I have in the past indexed everything, but it causes far too much noise in the search output. This is why the hoogle-local expression takes the approach of asking for a list of 'packages' to indicate what should be indexed. Well, it's certainly better than nothing. Is the setup process documented somewhere? 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] symbola font expression
A little concerning that the tarball is changing under a given URL, since this means that at some point in the future this will break again (and that we lose history). Can we mirror it elsewhere or ask upstream to adopt a more packaging-friendly approach to releases? On Sun, Feb 8, 2015 at 2:27 PM, Peter Simons sim...@cryp.to wrote: Applied in f02ccf6acd418e1e4d38ddb651f0d205838c3120. ___ 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] Automatically locking the screen with xautolock
Nice! I'm currently binding gksu 'i3lock -c00 pm-suspend' to a hotkey using i3, but this is better. Is there a standard way to get it in my fork of nixpkgs, which is tracking the release-14.12 branch? (I could just copy and paste but if there's a better way now would be a good time to learn.) Jeff On Sun, 8 Feb 2015 11:08:52 -0800 Michael Alyn Miller ma...@strangegizmo.com wrote: The 02/08/2015 21:07, Nikita Karetnikov wrote: How do I automatically lock the screen in NixOS? I've installed xautolock and slock. And tested sudo xautolock -time 1 -locker slock in the shell, which works fine. Can I make it work without sudo? I use xss-lock, which I recently added to Nixpkgs. I start xss-lock from .i3/config, but presumably it would work in displayManager.sessionCommands as well. xss-lock uses xset to to both configure the screensaver delay as well as to manually start the screensaver (if you want to activate the screensaver with a hotkey, for example). One of my favorite features of xss-lock is that it knows about suspend/resume and will automatically lock the screen on resume. Here is the relevant section from my .i3/config file: # Win+L locks the screen. bindsym Mod4+l exec xset s activate # Start xss-lock (and lock the screen after 15 minutes) exec_always xset s 900 exec_always --no-startup-id xss-lock -- i3lock -n -i $HOME/example.png Let me know if you need any additional information. Thanks, Michael Alyn Miller ___ 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] symbola font expression
Applied in f02ccf6acd418e1e4d38ddb651f0d205838c3120. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Automatically locking the screen with xautolock
If you're comfortable having it suid, you could set security.suidPrograms = [ xautolock ]; in configuration.nix. Then if xautolock is installed globally it will hopefully work without sudo. On 8 February 2015 at 10:07, Nikita Karetnikov nik...@karetnikov.org wrote: How do I automatically lock the screen in NixOS? I've installed xautolock and slock. And tested sudo xautolock -time 1 -locker slock in the shell, which works fine. Can I make it work without sudo? It's a problem because these lines in configuration.nix: displayManager.sessionCommands = '' sudo xautolock -time 1 -locker slock ''; result in sudo: no tty present and no askpass program specified So it fails to start. ___ 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] Haskell: indexing all packages on Hackage with Hoogle
Has anyone tried that? Most of the guides suggest you to run the following command, which should download the necessary databases, but it fails for me. $ hoogle data all default hoogle: /nix/store/2qk57kvi2nfayicwg57wa20y0kvxcy0x-haskell-hoogle-ghc7.8.4-4.2.36-shared/share/x86_64-linux-ghc-7.8.4/hoogle-4.2.36/databases: changeWorkingDirectory: does not exist (No such file or directory) Also, I couldn't determine which packages will be indexed by briefly looking at the source. Does anyone know? 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] Haskell: indexing all packages on Hackage with Hoogle
I often don't use hoogle, hack-nix can autotag sources you use for projects - that is always accurate. Marc Weber ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Haskell: indexing all packages on Hackage with Hoogle
I often don't use hoogle, hack-nix can autotag sources you use for projects - that is always accurate. The usecase I have in mind is when I want to find out whether a certain thing exists on Hackage already or not. E.g., I need the Month data type; surely someone has already defined one, so I only need to find the right package. signature.asc Description: PGP signature ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev