Coder Social home page Coder Social logo

nixos-zfs-setup's Introduction

  • πŸ‘‹ Greetings, I’m @voidzero aka Mark;
  • πŸ‡³πŸ‡± from the Northern part of The Netherlands;
  • πŸ‘¨β€πŸ‘©β€πŸ‘¦β€πŸ‘¦ Married, with children.
  • πŸ‡¬πŸ‡§ I can speak English proficiently;
  • πŸ‡―πŸ‡΅ ζ—₯本θͺžγ‚‚話せます。I can speak Japanese too.
  • πŸ‘€ I’m interested in many things,
  • 🌱 Studying NixOS and various programming languages.
  • πŸ“« Reach me via email: githubΰΆΈvoidzero.net.
  • πŸ‘‹ Bye now! See you around.

nixos-zfs-setup's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nixos-zfs-setup's Issues

mktemp not found when running boot.loader.grub.extraInstallCommands in nixos-rebuild

Hi,

First of all, thank you for this script!!

I'm (very) new to nixos and used your script to build zfs on my boot disk, installed nixos (using flake) and then rebooted, all good, everything comes up. However, if i try to update my configuration, the switch fails with the following messages:

[nix-shell:~/git_repos/nixos-config]$ sudo nixos-rebuild switch --flake .#$(hostname -s)
building the system configuration...
updating GRUB 2 menu...
/nix/store/dd8bfvhsxfjnb14r62ans5aprjvsk5my-install-grub.sh: line 5: mktemp: command not found
warning: error(s) occurred while switching to the new configuration

mktemp appears to be installed on the system (within the nix-shell):

[nix-shell:~/git_repos/nixos-config]$ which mktemp
/nix/store/bblyj5b3ii8n6v4ra0nb37cmi3lf8rz9-coreutils-9.3/bin/mktemp

as the super user on the system

[root@thanos:~]# command -v mktemp
/run/current-system/sw/bin/mktemp

The content of the install-grub.sh script is as follows:

[nix-shell:~/git_repos/nixos-config]$ cat /nix/store/dd8bfvhsxfjnb14r62ans5aprjvsk5my-install-grub.sh 
#!/nix/store/q1c2flcykgr4wwg5a6h450hxbk4ch589-bash-5.2-p15/bin/bash
set -e

/nix/store/lnaxkqj8hg37q9mb4cv5l8zgb919baw2-perl-5.38.0-env/bin/perl /nix/store/75qbm0iq2qdc5kkijmyymf3mzswjivrc-install-grub.pl /nix/store/9g2vb0ppkx6npbihl3dqf6qcy4vzxb6j-grub-config.xml $@
ESP_MIRROR=$(mktemp -d)
cp -r /boot/efi/EFI $ESP_MIRROR
for i in /boot/efis/*; do
  cp -r $ESP_MIRROR/EFI $i
done
rm -rf $ESP_MIRROR

The modifications I made to your script when installing the system can be seen HERE, the changes I made were:

[1] DISK variable
[2] ROOTPW variable
[3] Forced creation of boot pool (added -f on line 118)
[4] Forced creation of root pool (added -f on line 135)

Any thoughts on this, have you encountered this issue when using the script?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.