GithubHelp home page GithubHelp logo

nix-config-setup's Introduction

nix-config-setup

Scripts designed to automate my personal nix home configuration setup made to work on Mac, NixOS, WSL2 and most Linux distributions.

Usage

Download and run the setup scripts with the following command:

cd $HOME/ && mkdir nix-config-setup && cd $_ && curl https://raw.githubusercontent.com/greatwillow/nix-config-setup/main/1-run-setup.sh -O && curl https://raw.githubusercontent.com/greatwillow/nix-config-setup/main/common-functions.sh -O && source 1-run-setup.sh

Context

Logic of the setup scripts:

1-run-setup.sh
  • Ensures that the currently logged in user is not the root user. Only non-root users are able to install packages using Nix.
  • If the current user is the root user, a prompt is added to allow either for a new user to be created and used, or another user to be selected.
  • Once a non root user has been selected, the script logs the shell into the system as that user.
  • The rest of the setup scripts are downloaded for that user.
2-install-nix.sh
  • This script will install Nix which is used for package management across platforms including different Linux distributions, MacOS and WSL. Upon installing Nix, the user shell is restarted. The output here will show an additional command that should be executed to run the final script below.
3-install-nix-config.sh
  • This script automates the download and installation of the desired nix-config setup.

nix-config-setup's People

Contributors

greatwillow avatar

Watchers

 avatar  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.