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
Running phase: unpackPhase | |
@nix { "action": "setPhase", "phase": "unpackPhase" } | |
unpacking source archive /nix/store/wb0f8msp2jlqsk1237v43pm753m7wzy9-source | |
source root is source | |
Executing cargoSetupPostUnpackHook | |
Finished cargoSetupPostUnpackHook | |
Running phase: patchPhase | |
@nix { "action": "setPhase", "phase": "patchPhase" } | |
Executing cargoSetupPostPatchHook | |
Validating consistency between /build/source/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock |
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
# run with `nix run .#nixosConfigurations.cosmic.config.system.build.vm` | |
{ | |
nixConfig = { | |
extra-substituters = [ | |
"https://cosmic.cachix.org/" | |
"https://cache.nixos.org/" | |
]; | |
extra-trusted-public-keys = [ | |
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" |
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
sourcing setup hook '/nix/store/iyyhmd6nsd44nm10w364pv03qb5x2n50-glib-2.80.3-dev/nix-support/setup-hook' | |
sourcing setup hook '/nix/store/kpicyzzxir2hr4j4ng94wywlsraz4k8p-gettext-0.21.1/nix-support/setup-hook' | |
sourcing setup hook '/nix/store/c3nbhc101wnf038x1p1r3kri3lg4ryx6-gdk-pixbuf-2.42.12-dev/nix-support/setup-hook' | |
sourcing setup hook '/nix/store/d7gxj7i9zr04mgf819k34vm5dzxgxjzn-pkg-config-wrapper-0.29.2/nix-support/setup-hook' | |
sourcing setup hook '/nix/store/bv8v6i2k5h25kj3y8cyqf629f6f037nk-wrap-gapps-hook/nix-support/setup-hook' | |
sourcing setup hook '/nix/store/3khc1xyr6gjxay09cs5zvbz1is1dn45d-make-binary-wrapper-hook/nix-support/setup-hook' | |
sourcing setup hook '/nix/store/jlcm4q3p5gzc9nfc8fxd8mkhcrv9zcrq-die-hook/nix-support/setup-hook' | |
sourcing setup hook '/nix/store/v8jpq1474dkmvv7xxjdbrd1dsw5yv3nr-gtk+3-3.24.42-dev/nix-support/setup-hook' | |
sourcing setup hook '/nix/store/yq6n8b0mnk0qxzbs3ajsjcp8ziwqylrl-patchelf-0.15.0/nix-support/setup-hook' | |
sourcing setup hook '/nix/store/iks1pihvbilsh5sy8qvpd638k42 |
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
// ==UserScript== | |
// @name Redirect to wiki.nixos.org | |
// @namespace github.com/honnip | |
// @match *://nixos.wiki/* | |
// @grant none | |
// @version 0.1 | |
// @author Honnip (me@honnip.page) | |
// @description Redirect from nixos.wiki to wiki.nixos.org | |
// @run-at document-start | |
// @homepageURL https://gist.github.com/honnip/ad2c77ad9fcd4f837518ebc0f1e79edb |
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
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
rust-overlay.url = "github:oxalica/rust-overlay"; | |
}; | |
outputs = | |
{ | |
self, | |
nixpkgs, |
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
{ | |
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; }; | |
outputs = { self, nixpkgs }: | |
let | |
forAllSystems = with nixpkgs; lib.genAttrs lib.systems.flakeExposed; | |
nixpkgsFor = forAllSystems (system: | |
import nixpkgs { | |
inherit system; | |
overlays = [ ]; |
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
def c(n): | |
if n == 1: | |
return 9 | |
return 8 * c(n - 1) + 10 ** (n - 1) | |
def c_t(n): | |
def c_t_(n, k=1, acc=9): | |
if n == 1: | |
return acc |