Coder Social home page Coder Social logo

x13s-nixos's Introduction

Thinkpad X13s nixos-install

Use mrObtains ubuntu iso https://drive.google.com/drive/folders/1wp1-X318MCI48xCAffJtyhDRvANkAE4q?usp=sharing

Connect to wifi, sudo apt update, and install the nix package manager using this command: sh <(curl -L https://nixos.org/nix/install) --daemon

You will need nixos-install-tools package, however you should first run sudo -i, then install it with nix: nix-env -iA nixpkgs.nixos-install-tools

Partition your drives, and mount them, root partition at /mnt and boot partition at /mnt/boot

nixos-generate-config command should generate a base config file for you at /mnt/etc/nixos

You should keep your hardware-configuration.nix as is but everything else should be replaced by the config files in this repo

nixos-install is the command to install nixos once your config files are set up, run this as root, so make sure you run sudo -i, then when you are logged in as root run nixos-install

YOU WILL NEED TO COPY THE DTB FILE INTO /mnt/boot! this is a crucial step for booting, and until i have a better solution that doesn't require this, make sure you do it, or you will have to boot back into the ubuntu iso and move it before booting, the machine will not boot without this step.

Reboot after the sc8280xp-lenovo-thinkpad-x13s.dtb file is in your /mnt/boot directory, and you have run nixos-install. It will take a while to build the kernel fyi, but you will not need to rebuild it unless you switch to a newer version from steev or a different commit hash. Feel free to check out my "nicks" repository for some other stuff until I have it all fully ported here for bluetooth etc. if you have problems open an issue please, I would love to make nixos a painless install on the x13s, using nixos configuration we can have some reproducibility for a unique machine which requires unique builds. I used mr0btains iso because it allowed painless install of nix package manager and usage of nixos-install after running sudo -i, if you find another iso that works easily feel free to share.

x13s-nixos's People

Contributors

cenunix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.