Giter VIP home page Giter VIP logo

nixos-config's Introduction

nixos-config

๐Ÿšง [WIP] auto install

A command to apply configs in NixOS. It's currently not working but one day I'll fix it.

nix-shell -p git --command "nix run github:a2not/nixos-config --extra-experimental-features 'nix-command flakes'"

ref: https://github.com/librephoenix/nixos-config/blob/main/install.org

ref: https://librephoenix.com/2024-03-14-managing-your-nixos-config-with-git#org9fe2aab

manual install

git clone https://github.com/a2not/nixos-config.git ~/nixos-config

system build

cd ~/nixos-config
sudo nixos-generate-config --show-hardware-config > ~/nixos-config/nixos/hardware-configuration.nix
git add -A
just build-system

home-manager

just build-home

nix-darwin

make sure to install Homebrew beforehand.

jsut darwin

useful commands

check flake metadata

from: https://fasterthanli.me/series/building-a-rust-service-with-nix/part-10#a-flake-with-a-dev-shell

this comes in handy especially when wanting to check if we're properly setting inputs.<some_package>.follows.

nix flake metadata

debug nix flake

from: https://nixos-and-flakes.thiscute.world/best-practices/debugging#debugging-derivations-and-nix-expressions

to debug the output (and/or inputs or everything in between) of the nix flake.

nix repl

# inside nix repl shell, load the flake in the current directory
nix-repl> :lf .

# press <TAB> to see what we have in scope
nix-repl><TAB>
nix-repl>inputs.<TAB>
nix-repl>outputs.<TAB>

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.