Giter VIP home page Giter VIP logo

dotfiles's Introduction

built with nix

amcmahon NixOS configurations

NixOS/home-manager config files. Requires Nix flakes.

Shamelessly inspired/ripped-off from misterio77 and archer-65

Contains code from K900

Structure

  • flake.nix: Entrypoint for hosts and home configurations. Also exposes devshells for boostrapping (nix develop or nix-shell).
  • hosts: NixOS Configurations
    • common: Shared configurations consumed by the machine-specific ones.
      • global: Configurations that are globally applied to all machines.
      • optional: Opt-in configurations any machines can use.
    • nixos-wsl: NixOS on WSL
    • razorback: Asus TUF A17 2023 Laptop
    • rocinante: AMD 5950x / NVIDIA 4090 Desktop
  • home: Home-manager configuration
  • modules: Modules (with options).
  • overlays: Patches and version overrides for some packages. Accessible via nix build.
  • pkgs: Custom packages. Also accessible via nix build.

How to bootstrap

Add following to /etc/nixos/configuration.nix

networking.hostName = "razorback"; # or "nixos-wsl"

nix.settings.experimental-features = [ "nix-command" "flakes" ];

environment.systemPackages = with pkgs; [
  vim
  wget
  git
];

Then:

cd ~/.config
git clone https://github.com/McDamon/dotfiles.git
cd dotfiles
sudo nixos-rebuild switch --flake .#razorback
sudo nixos-rebuild switch --flake .#nixos-wsl
nix run home-manager/master -- init --switch
home-manager switch --flake .#amcmahon@razorback
home-manager switch --flake .#amcmahon@nixos-wsl

dotfiles's People

Contributors

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