This has been moved to the Matrix AI blog: https://matrix.ai/2018/03/24/developing-with-nix/
Note that if you just to compile a simple C program, and you don't want to fiddle with environments:
nix-shell --packages stdenv
{ pkgs, config, ... }: | |
{ | |
imports = [ | |
<nixpkgs/nixos/modules/profiles/headless.nix> | |
]; | |
# Enable sudo logins if the user's SSH agent provides a key | |
# present in <filename>~/.ssh/authorized_keys</filename>. | |
# This allows machines to exclusively use SSH keys instead of | |
# passwords. |
# Bash best practices and style-guide | |
Just simple methods to keep the code clean. | |
Inspired by [progrium/bashstyle](https://github.com/progrium/bashstyle) and [Kfir Lavi post](http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming/). | |
## Quick big rules | |
* All code goes in a function | |
* Always double quote variables |
This has been moved to the Matrix AI blog: https://matrix.ai/2018/03/24/developing-with-nix/
Note that if you just to compile a simple C program, and you don't want to fiddle with environments:
nix-shell --packages stdenv
Adaptive bed mesh is merged into klipper master branch. You can use this feature without this custom macro. Official klipper adaptive bed mesh
There was a reddit post about installing Arch on NTFS3 partition. Since Windows and Linux doesn't have directories with same names under the /
(C:\
), I thought it's possible, and turned out it was actually possible.
If you are not familiar to Linux, for example you've searched on Google "how to dualboot Linux and Windos" or brbrbr... you mustn't try this. This is not practical.
{ | |
description = "Flake used to setup development environment for Zephyr"; | |
# Nixpkgs / NixOS version to use. | |
inputs.nixpkgs.url = "nixpkgs/nixos-21.11"; | |
# mach-nix used to create derivation for Python dependencies in the requirements.txt files | |
inputs.mach-nix.url = "mach-nix/3.5.0"; | |
outputs = { self, nixpkgs, mach-nix }: |