Git Product home page Git Product logo

nix-config's Introduction

NixOS configuration

assets/nixos-official-logo.png

https://img.shields.io/badge/NixOS-24.05-informational?style=flat.svg

https://github.com/fortuneteller2k/nix-config/actions/workflows/check.yml/badge.svg https://github.com/fortuneteller2k/nix-config/actions/workflows/statix.yml/badge.svg https://github.com/fortuneteller2k/nix-config/actions/workflows/format.yml/badge.svg

Installation

(I highly recommend making your own configuration and copy snippets from mine, but anyway…)

Get the latest NixOS 24.05 image here, do your partitions (root must be mounted at /mnt), then run the following commands:

# move the output file of this to hosts/*/hardware-configuration.nix
nixos-generate-config

nix-shell -p git nixUnstable
git clone https://github.com/fortuneteller2k/nix-config ~
cd ~/nix-config
sudo nixos-install --flake .#starcruiser

# After rebooting
home-manager switch --flake .#moni@starcruiser

For WSL, follow the quickstart guide, then run the following commands:

nix shell nixpkgs#git
git clone https://github.com/fortuneteller2k/nix-config ~
cd ~/nix-config
sudo nixos-rebuild switch --flake .#turncoat
home-manager switch --flake .#zero@turncoat

Caveats

  • You probably should replace hosts/starcruiser/hardware-configuration.nix with your own with nixos-generate-config.
  • You might want to change all instances of my username to yours.
  • Comment out every __contentAddressed = true; you find.
  • You might want to disable agenix, for my secret cannot be decrypted without my private key. See hosts/default.nix.

Description

NixOS/nix-darwin/home-manager configuration that I use daily.

See also:

Resources and configurations I used to base on:

Why flakes?

jonringer gave a brief explanation as to why one might want to use Nix flakes.

Why flake-parts?

flake-parts allow reusable configuration powered by the module system everyone knows and loves.

See modules/parts, and it’s implementation in my system configurations and my home configurations.

Appearance

assets/starcruiser.png assets/turncoat.png

nix-config's People

Contributors

moni-dz avatar

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

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.