Skip to content

Instantly share code, notes, and snippets.

View 573's full-sized avatar

Daniel Kahlenberg 573

View GitHub Profile
@573
573 / readme.md
Last active March 15, 2024 08:50
nix tip: debug analyze analyse why depends on certain dependency path-info why-depends
@573
573 / readme.md
Created March 12, 2024 08:30
git tip: have a git repository separate from work tree to sync the former via syncthing and the latter via dropbox
@573
573 / readme.md
Last active March 8, 2024 20:56
git tip: remote upstream branch

See https://stackoverflow.com/a/37770744, I simply created a new branch (i. e. pushhere) using the guide using these two commands:

git checkout -b pushhere
git push --set-upstream origin pushhere -f
git fetch origin pushhere
git checkout pushhere
git branch --set-upstream-to origin/pushhere
@573
573 / readme.md
Last active May 1, 2024 16:41
glove80 moergo keyboard umlaut
@573
573 / readme.md
Created February 27, 2024 15:02
nix tip: use a mixin to inject config for certain user for an app
@573
573 / readme.md
Created February 24, 2024 22:07
unfree packages in nix*
@573
573 / readme.md
Created February 23, 2024 22:37
nix tip: check the derivation of custom module
 nix eval --raw .#nixOnDroidConfiguration
s.sams9.config.home-manager.config.custom.programs
.emacs-nano.finalPackage --impure

if error-free also approach building

 nix build .#nixOnDroidConfiguration
s.sams9.config.home-manager.config.custom.programs
@573
573 / readme.md
Last active February 21, 2024 16:07
nix tip: using two or more derivations of one and the same binary without collisions
@573
573 / proto.log
Last active February 16, 2024 14:19
julia on nix-on-droid
-bash-5.2$ nix shell --impure --expr 'with import (builtins.getFlake "
ata/data/com.termux.nix/files/hom.nix-config").inputs.unstable {};
julia' -c julia --help
julia [switches] -- [programfile] [args...]
Switches (a '*' marks the default value, if applicable; settings marke
d '($)' may trigger package precompilation):
-v, --version Display version information
@573
573 / readme.md
Created February 11, 2024 16:39
nix-on-droid initial setup
cd ~/.config/nix-on-droid
vi flake.nix # change nixpkgs to point to master and n-o-d to point to master too
vi nix-on-droid.nix # add git to packages and add line `nix.package = pkgs.nixVersions.unstable`
nix flake update
nix-on-droid build -F .
nix-on-droid switch -F . # nix should be newest version after that