Skip to content

Instantly share code, notes, and snippets.

View superherointj's full-sized avatar
😱
Human input is error.

superherointj

😱
Human input is error.
View GitHub Profile
@superherointj
superherointj / .envrc
Created January 23, 2022 12:02
Nix Demo for Go Project
# IMPORTANT: You have to install `direnv`!
#
# To enable direnv, `.bashrc` (or bash_profile? unsure) should have:
# eval "$(direnv hook bash)"
#
# To enable flake on DirEnv, add to `.config/direnv/lib/use_flake.sh`:
# use_flake() {
# watch_file flake.nix
# watch_file flake.lock
# $(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
@superherointj
superherointj / Dockerfile.go-alpine
Last active January 17, 2022 20:12
Gitlab-Runner: topologySpreadConstraints
FROM golang:1.17-alpine
RUN apk add --no-cache \
bash \
ca-certificates \
git \
tzdata \
openssh-client \
curl
@superherointj
superherointj / python2-broken.list
Created October 15, 2021 18:05
Python 2 Broken Packages
appleseed
arrow
ase
bitbucket_api
bitbucket-cli
blivet
browsermob-proxy
cairocffi
cairosvg
cherrypi
From 490c51b0fbfce927781f5ef93a34509cdb848676 Mon Sep 17 00:00:00 2001
From: superherointj <5861043+superherointj@users.noreply.github.com>
Date: Fri, 8 Oct 2021 09:57:40 -0300
Subject: [PATCH 1/1] python3Packages.qstylizer: init 0.2.1
---
.../python-modules/qstylizer/default.nix | 35 +++++++++++++++++++
pkgs/top-level/python-packages.nix | 2 ++
2 files changed, 37 insertions(+)
create mode 100644 pkgs/development/python-modules/qstylizer/default.nix
@superherointj
superherointj / nixos.logs
Created August 24, 2021 11:53
NixOS Error on nixos-rebuild switch
# nixos-rebuild switch
Traceback (most recent call last):
File "/nix/store/4rj0wczwfbfkb63zxyypsbzsazpdcqyk-systemd-boot", line 240, in main
write_entry(*gen, machine_id)
File "/nix/store/4rj0wczwfbfkb63zxyypsbzsazpdcqyk-systemd-boot", line 103, in write_entry
subprocess.check_call([append_initrd_secrets, "/boot%s" % (initrd)])
File "/nix/store/4s0h5aawbap3xhldxhcijvl26751qrjr-python3-3.8.9/lib/python3.8/subprocess.py", line 359, in check_call
retcode = call(*popenargs, **kwargs)
File "/nix/store/4s0h5aawbap3xhldxhcijvl26751qrjr-python3-3.8.9/lib/python3.8/subprocess.py", line 340, in call
@superherointj
superherointj / home.nix
Last active July 23, 2021 21:36
Y3liZXI gist
/* cole ai */
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
users = {
intj = {
###
home.packages = let
telegram-cli = with pkgs;
@superherointj
superherointj / configuration.nix
Created June 25, 2021 18:36
NixOS module example
# Example of what I call 'module' which has >10 levels to it.
{ config, pkgs, libs, lib, ... }:
let hostId = "2"; in
{
imports = [
(import ../../profiles/rockpro64 { inherit config pkgs libs lib hostId; })
];
}
programs.direnv = {
enable = true;
nix-direnv = {
enable = true;
enableFlakes = true;
};
};
home.file.".config/direnv/lib/use_flake.sh".text = ''
use_flake() {
watch_file flake.nix
# vscode.nix
{ config, pkgs, ... }: {
programs.vscode = {
enable = true;
package = pkgs.vscodium;
userSettings = {
"editor.minimap.enabled" = false;
"editor.fontSize" = 18;
"editor.wordWrap" = "on";
{ lib, fetchFromGitHub, buildGoModule }:
let
vfsgen = (fetchFromGitHub {
owner = "shurcooL";
repo = "vfsgen";
rev = "0d455de96546f756e8830efeec8dab0f489af135";
sha256 = "sha256-8wobXCZHGHf7rIcyeiJ+aA/XkzbbaXt7laGXhNXboVU=";
});
logrus = (fetchFromGitHub {