openpgp4fpr:214A506AE691CB7AD0CED12DE80F4F4051C28670
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ buildPythonPackage | |
, click | |
, cython | |
, dnspython | |
, fetchFromGitHub | |
, fetchFromGitLab | |
, flit | |
, libnetfilter_queue | |
, libnfnetlink | |
, libsodium |
aspe:keyoxide.org:GSNZLKLG7KZRQM2DLUQPWU6HR4
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
package main | |
import ( | |
"log" | |
"net/http" | |
"os" | |
"golang.org/x/sys/unix" | |
) |
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
{ | |
description = "bold.daemon"; | |
inputs = { | |
unstable = { url = "github:NixOS/nixpkgs/nixos-unstable"; }; | |
stable = { url = "github:NixOS/nixpkgs/nixos-21.11"; }; | |
sops-nix.url = "github:Mic92/sops-nix"; | |
sshKnownHosts = { |
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
{ config, lib, pkgs, ... }: | |
let | |
fidoAddDevice = pkgs.writeScriptBin "fido-add-device" '' | |
#! ${pkgs.runtimeShell} -e | |
DISPLAY="$(systemctl --user show-environment | ${pkgs.gawk}/bin/awk -F= '/^DISPLAY/ {print $NF}')" | |
SSH_AUTH_SOCK="$(echo $XDG_RUNTIME_DIR/ssh-agent)"; | |
export DISPLAY SSH_AUTH_SOCK | |
function agent_add() { |
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
{ | |
description = "bold.daemon"; | |
# TODO: figure out how to make things pure (./pkgs...) | |
inputs = { | |
unstable = { url = "github:NixOS/nixpkgs/nixos-unstable"; }; | |
stable = { url = "github:NixOS/nixpkgs/nixos-21.11"; }; | |
}; |
- Things I strongly dislike:
- The dividing line between
crate
andstdlib
leans way too far to thecrate
side of things.- Remote dependencies are needed to do virtually everything. There isn’t even a
rand
package in the standard library.
- Remote dependencies are needed to do virtually everything. There isn’t even a
- Implicit returns.
-
Semicolon on return changes behavior:
-
- The dividing line between
fn add1(a: i32, b: i32) -> i32 {
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
# Things build fine, tests are nto able to run (pip doesn't have robotframework 4.0.1? | |
# Renode executes, but for some reason the UI fails to start. | |
{ pkgs ? import <nixpkgs> { } }: | |
let | |
mybot = pkgs.python3Packages.buildPythonPackage rec { | |
pname = "robotframework"; | |
version = "4.0.1"; | |
src = pkgs.python3Packages.fetchPypi { |
NewerOlder