diff --git a/Justfile b/Justfile index 54d7f32..dfff21d 100755 --- a/Justfile +++ b/Justfile @@ -7,6 +7,7 @@ _DEFAULT_VERSION: _usage: just -l +# Re-render the default versions update-default-versions: #!/usr/bin/env bash template="$(just _DEFAULT_VERSION_TMPL)" @@ -82,6 +83,7 @@ rebuild-this-device rebuildarg="dry-activate": fi fi +# Re-render the versions of a remote device and rebuild its environment update-remote-device device target rebuildmode='switch': #!/usr/bin/env bash set -e @@ -111,7 +113,7 @@ update-remote-device device target rebuildmode='switch': git commit -v ${outfile} -m "nix/os/devices/{{ device }}: bump versions" -# Update the channel versions and (by default) switch to new environment +# Re-render the versions of the current device and rebuild its environment update-this-device rebuild-mode='switch': #!/usr/bin/env bash set -e diff --git a/README.md b/README.md index 342fe55..486235b 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,9 @@ just --list ## Bootstrap ### A new machine +* ensure the dotfiles repo has a branch with the new machine's hostname -1. boot with an install media -2. clone infra repository +* boot with an install media and go through setup + +#### Post-Install Setup +* `gpg2 --edit-card; fetch` diff --git a/nix/home-manager/configuration/graphical-fullblown.nix b/nix/home-manager/configuration/graphical-fullblown.nix index 3315702..55a7922 100644 --- a/nix/home-manager/configuration/graphical-fullblown.nix +++ b/nix/home-manager/configuration/graphical-fullblown.nix @@ -90,18 +90,18 @@ in { nix-prefetch-github # Version Control Systems - unstablepkgs.pijul + pijul gitless gitRepo git-lfs - # Cloud/Remote System Management - google-cloud-sdk - ansible - nixops - unstablepkgs.terraform - awscli - hcloud + # TODO: move Cloud/Remote System Management to a dev environment + # google-cloud-sdk + # ansible + # nixops + # terraform + # awscli + # hcloud # Process/System Administration htop @@ -139,7 +139,7 @@ in { aspellDicts.en aspellDicts.de unstablepkgs.skype - zoom-us + zoom-us # broken as of 2019-10-30 unstablepkgs.bluejeans-gui thunderbird gnome3.evolution # gnome4.glib_networking @@ -338,16 +338,17 @@ in { pypi2nix ## Webdev - nodejs-8_x - npm2nix - emscripten + # TODO: move this to dev environment + # nodejs-8_x + # npm2nix + # emscripten # Code generators unstablepkgs.swagger-codegen # Misc Desktop Tools ltunify - solaar + # solaar # TODO: conflicts with solar over udev rules dex # kitty busyboxStatic diff --git a/nix/home-manager/configuration/graphical-removable.nix b/nix/home-manager/configuration/graphical-removable.nix index 2c11681..ec34ea1 100644 --- a/nix/home-manager/configuration/graphical-removable.nix +++ b/nix/home-manager/configuration/graphical-removable.nix @@ -26,8 +26,6 @@ in { gnutls = true; }; - android_sdk.accept_license = true; - packageOverrides = pkgs: with pkgs; { myPython36 = python36Full.withPackages (ps: with ps; [ pylint pep8 yapf flake8 @@ -141,8 +139,6 @@ in { python27Packages.binwalk gptfdisk - androidsdk - ## Python myPython36 diff --git a/nix/os/devices/disk.nix b/nix/os/devices/disk.nix index 73796f7..58fb360 100644 --- a/nix/os/devices/disk.nix +++ b/nix/os/devices/disk.nix @@ -28,11 +28,11 @@ in rec { diskUmount = pkgs.writeScript "script" '' #!/usr/bin/env bash - set -xe - sudo umount -R ${mntRootVol} + set -x + sudo umount -Rl ${mntRootVol} sudo rmdir ${mntRootVol} sudo vgchange -an ${ownLib.disk.volumeGroup diskId} - sudo cryptsetup luksClose ${ownLib.disk.luksName diskId} + sudo cryptsetup close ${ownLib.disk.luksName diskId} sync ''; @@ -66,7 +66,7 @@ in rec { # Partition sync { - fdisk -w always -W always ${ownLib.disk.bootGrubDevice diskId} <