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
start: | |
alias FlushSwitch d0 | |
alias FlushRegulator d1 | |
alias Furnace d2 | |
alias FillSwitch d3 | |
alias FillRegulator d4 | |
loop: | |
l r0 FillSwitch Open | |
s FillRegulator On r0 | |
l r0 FlushSwitch Open |
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
{ fetchFromGitHub }: | |
fetchFromGitHub { | |
owner = "gazoscalvertos"; | |
repo = "Hass-Custom-Alarm"; | |
rev = "v1.3.1"; | |
sha256 = "1xlwsyg45kmvx3gvkv7k5imbhkxan0s573lalkcqcflf078w7555"; | |
} |
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
with import <nixpkgs> {}; | |
clangStdenv.mkDerivation { | |
name = "emojicode-0.6"; | |
src = fetchFromGitHub { | |
owner = "emojicode"; | |
repo = "emojicode"; | |
sha256 = "0v5r481xhjc3kdk9a49yi9lqnd6gxq5iws4d65dcx43mw3wz38sj"; | |
rev = "5d655df6b7f7ffa13c4addfc140ef83d695381ca"; | |
}; |
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
with import <nixpkgs> {}; | |
stdenv.mkDerivation { | |
name = "emojicode-0.6"; | |
src = fetchFromGitHub { | |
owner = "emojicode"; | |
repo = "emojicode"; | |
sha256 = "0v5r481xhjc3kdk9a49yi9lqnd6gxq5iws4d65dcx43mw3wz38sj"; | |
rev = "5d655df6b7f7ffa13c4addfc140ef83d695381ca"; | |
}; |
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
[clever@amd-nixos:~]$ nix-shell -p 'map (x: pkgs."ruby_${x}") [ "2_0" "2_1" "2_2" "2_3" "2_4" ]' --run 'which -a ruby' | |
/nix/store/fzig0rrfwv2vim8dwdlqpz9p0jd6yfcx-ruby-2.0.0-p648/bin/ruby | |
/nix/store/frhi4b281vifmwxqcz0cj812f6fgw7j8-ruby-2.1.10/bin/ruby | |
/nix/store/fsycgl16fapyxnvvjw8gl39pjbvidbc8-ruby-2.2.8/bin/ruby | |
/nix/store/jav1bpg9z6h5iwk66m8vpaacqg5vgkzw-ruby-2.3.5/bin/ruby | |
/nix/store/r9dy9bck3y57vaglv1yp0yn71jycw082-ruby-2.4.2/bin/ruby |
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
[clever@amd-nixos:~]$ nix-build math.nix --argstr a 4294967296 --argstr b 4294967296 | |
these derivations will be built: | |
/nix/store/dbjigm9n6nia5cmfbv9cnlnm240z78sy-do-da-math.hs.drv | |
/nix/store/1yq4lh0wwy563jp8d7awii030makjxy8-do-da-math.drv | |
building path(s) ‘/nix/store/ph39dp1ffckjidhjyhgj4p1685vw8d4a-do-da-math.hs’ | |
building path(s) ‘/nix/store/ab8m9ar1bg5p3h8bs2v8x5lk35mwjnmg-do-da-math’ | |
/nix/store/ab8m9ar1bg5p3h8bs2v8x5lk35mwjnmg-do-da-math | |
[clever@amd-nixos:~]$ cat result | |
18446744073709551616 |
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
{ mkDerivation, base, stdenv, ... }@args: | |
mkDerivation { | |
pname = "nix-assert-bug"; | |
version = "0.1.0.0"; | |
src = ./.; | |
libraryHaskellDepends = [ args."assert" base ]; | |
license = stdenv.lib.licenses.bsd3; | |
} |
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
[root@amd-nixos:~]# zfs list -t snapshot amd/home -r -o name,used,refer,written | |
NAME USED REFER WRITTEN | |
amd/home@zfs-auto-snap_weekly-2017-10-16-00h00 1.60G 101G 101G | |
amd/home@zfs-auto-snap_weekly-2017-10-23-00h00 913M 104G 4.10G | |
amd/home@zfs-auto-snap_weekly-2017-10-30-00h00 285M 107G 3.97G | |
amd/home@zfs-auto-snap_monthly-2017-11-01-00h00 4.13M 107G 287M | |
amd/home@zfs-auto-snap_daily-2017-11-03-00h00 3.89M 107G 4.44M | |
amd/home@zfs-auto-snap_daily-2017-11-04-00h00 3.23M 107G 283M | |
amd/home@zfs-auto-snap_daily-2017-11-05-00h00 3.16M 107G 3.23M | |
amd/home@zfs-auto-snap_weekly-2017-11-06-00h00 216K 107G 491M |
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
[root@system76:~]# zfs list tank tank/home tank/nix tank/root -o name,compressratio,used,logicalused | |
NAME RATIO USED LUSED | |
tank 1.91x 14.6G 25.8G | |
tank/home 1.37x 2.14G 2.85G | |
tank/nix 2.04x 10.8G 20.2G | |
tank/root 1.65x 599M 947M |
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
{ stdenv, fetchurl, unzip, interface, writeText, jre, zopfli }: | |
stdenv.mkDerivation { | |
name = "static-assets"; | |
phases = [ "unpackPhase" "installPhase" ]; | |
buildInputs = [ jre unzip ]; | |
installPhase = '' | |
mkdir -p $out/share | |
cp ${./Allsight.svg} $out/Allsight.svg | |
cp ${./swoosh.svg} $out/swoosh.svg |