This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.mopidy = { | |
enable = true; | |
extensionPackages = [ pkgs.mopidy-spotify pkgs.mopidy-mopify ]; | |
configuration = '' | |
[local] | |
enabled = true | |
media_dir = /home/jarvis/Music | |
[spotify] | |
enabled = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
building Nix... | |
building the system configuration... | |
these derivations will be built: | |
/nix/store/glpb6y4jpk52cn4fhj2anyg332bz6019-slop-4.1.15.drv | |
/nix/store/3szpjm0bdxvmr17nb2ivp629lympsza1-system-path.drv | |
/nix/store/c785r67ydas5078dnwg7cd4vr7h27rwj-unit-polkit.service.drv | |
/nix/store/q12mgz7im1i0ffy1pghj5hk0mjrb5msr-system-crontab.drv | |
/nix/store/g2jx9ih5iw9adfkkwb4454hsyhk6aypd-unit-script.drv | |
/nix/store/hg1pr7g4wkl74r4vmjjd81daivjpynf1-unit-cron.service.drv | |
/nix/store/rddp9711gl248fdnqhkbzxjh5qfv1h5y-dbus-conf.drv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
slop = pkgs.slop.overrideDerivation (attrs: rec { | |
version = "4.2.18"; | |
src = pkgs.fetchgit { | |
url = "https://github.com/naelstrof/slop"; | |
rev = "refs/tags/v${version}"; | |
sha256 = "0668k74a7jpiqmgy0yp99pcywr5k318j6qpvwjz8jhn266wpq1ki"; | |
}; | |
buildInputs = [ pkgs.cmake pkgs.xlibs.libX11 pkgs.xlibs.libXext pkgs.mesa pkgs.pkgconfig pkgs.xlibs.libXrender pkgs.glew pkgs.xlibs.libXrandr pkgs.glm ]; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
building Nix... | |
building the system configuration... | |
these derivations will be built: | |
/nix/store/gkgvsy74q0d8d8m5sq846cxriwag27c3-slop-4.1.15.drv | |
/nix/store/zfbb7i76arwny0kd98wy78b3psdks6hk-system-path.drv | |
/nix/store/2qlmp7zmciwdaqmwaqsjj5v3cn7dqfrk-unit-polkit.service.drv | |
/nix/store/9rx960nfabdvx5diqcdcz9vvw7hnbkzb-dbus-conf.drv | |
/nix/store/32rmyqns6kkwbw3nzi370ibsa6l76z1y-unit-dbus.service.drv | |
/nix/store/4b7j7kx5226kw9qad1a5hnicrirgdqyw-system-crontab.drv | |
/nix/store/a9dd7wrlvq4082l1qransxw1dahrhy9i-unit-script.drv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
slop = pkgs.slop.overrideDerivation (attrs: rec { | |
version = "4.2.18"; | |
src = pkgs.fetchurl { | |
url = "https://github.com/naelstrof/slop/archive/v${version}.tar.gz"; | |
sha256 = "1qsx961bfxgqk3vrc5p3lhxw6xa0gi0wm9i64mj188hcz4vz240a"; | |
}; | |
buildInputs = attrs.buildInputs ++ [ mesa ]; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i3 = pkgs.stdenv.lib.overrideDerivation pkgs.i3 (oldAttrs: rec { | |
src = pkgs.fetchgit { | |
url = "http://github.com/Airblader/i3.git"; | |
rev = "03d3e7785fd9ce27a7f7ad36dcefc12a41672865"; | |
branchName = "gaps-next"; | |
sha256 = "81b2c65663c3ce13a7e62f233d5d902fe50dd0356b7a239807f30230c40670d5"; | |
}; | |
postUnpack = '' | |
find . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[jarvis@nixos:~/nixos-config]$ sudo -i nixos-rebuild switch | |
building Nix... | |
building the system configuration... | |
building path(s) ‘/nix/store/60n0m5yfk9rwwfikava2bk15mg4gf29z-google-chrome-stable_43.0.2357.130-1_amd6 | |
4.deb’ | |
trying https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_43. | |
0.2357.130-1_amd64.deb | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# i3 desktop config | |
{ pkgs, ... }: | |
{ | |
environment.systemPackages = with pkgs; [ | |
dmenu # for app launcher | |
feh # for background image | |
i3 | |
i3lock # screen lock | |
i3status # sys info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
checkPhase = stdenv.lib.optionalString (stdenv.system == "x86_64-linux") | |
'' | |
(cd testcases && xvfb-run ./complete-run.pl -p 1 --keep-xserver-output) | |
! grep -q '^not ok' testcases/latest/complete-run.log | |
''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from horton import Molecule, periodic | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from progressive.bar import Bar | |
import os | |
import math | |
import datetime |