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
| #!/bin/sh | |
| # Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh | |
| # and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos | |
| if [ "`/usr/bin/whoami`" != "root" ]; then | |
| echo "You need to execute this script as root." | |
| exit 1 | |
| fi | |
| cat > /etc/yum.repos.d/centos.repo<<EOF |
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, pkgs, ... }: | |
| { | |
| imports = | |
| [ | |
| ./hardware-configuration.nix | |
| ]; | |
| boot.loader.grub.enable = true; | |
| boot.loader.grub.version = 2; |
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
| EFI_PART="$1" | |
| LUKS_PART="$2" | |
| EFI_MNT=/root/boot | |
| mkdir "$EFI_MNT" | |
| mkfs.vfat -F 32 -n uefi "$EFI_PART" | |
| mount "$EFI_PART" "$EFI_MNT" | |
| STORAGE=/crypt-storage/default | |
| mkdir -p "$(dirname $EFI_MNT$STORAGE)" |
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
| let | |
| moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz); | |
| nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; }; | |
| in | |
| with nixpkgs; | |
| stdenv.mkDerivation { | |
| name = "rust-env"; | |
| nativeBuildInputs = [ | |
| ]; |
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
| ~/projects/ | |
| ├── my-repo/ | |
| ├── my-repo-feature-a/ | |
| ├── my-repo-feature-b/ | |
| └── my-repo-hotfix/ |
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
| # create a project dir | |
| mkdir my-project && cd my-project | |
| # bare clone into .bare | |
| git clone --bare git@github.com:user/repo.git .bare | |
| # create .git to refer bare repository | |
| echo "gitdir: ./.bare" > .git | |
| # configure and fetch origin |
OlderNewer