Code Monkey home page Code Monkey logo

dotfiles's Introduction

Leveraging nix, nix-os, nix-darwin, and home-manager to apply machine and home configurations

Structure

  • flake.nix (Entrypoint for rebuilding via nixos-rebuild or home-manager)
  • flake.lock (lockfile for current nix flake state, updated daily via github action)
    • home-manager (User level configuration per machine via home-manager)
    • hosts - (Definition of physical/virutal hosts)
      • common (Role definitions [Desktop, Laptop, Server])
        • darwin (global host configuration used across all darwin hosts)
        • nixos (global host configuration used across all NixOS hosts)
        • optional (optional host configuration used as-needed per host)
      • nas (NixOS NAS server)
      • home (NixOS VM running in NAS)
      • cloud (NixOS VM running in Oracle Cloud)
      • k3s-f (NixOS running on an N100 tiny PC as a k3s node)
      • k3s-g (NixOS running on an N100 tiny PC as a k3s node)
      • k3s-h (NixOS running on an N100 tiny PC as a k3s node)
      • jeffs_laptop (nix-darwin running on a MacBook Pro)
      • work_laptop (nix-darwin running on a MacBook Pro)
    • modules (Custom NixOS and home-manager modules)
    • overlays (Custom overlays, primarily used for packages currently)
    • pkgs (Custom Packages, mainly items not yet in official nixpkgs)
  • shell.nix (Shell for bootstrapping flake-enabled nix and home-manager)
  • nixpkgs.nix (Used by shell.nix - useful to avoid using channels when using legacy nix commands)

Background

Everyone keeps gushing about how amazing Nix is and I want to get in on the hype cycle

Goals

  • Learn nix
  • Mostly reproduce features from my existing dotfiles
  • Replace existing ubunut-based 'home VM'
  • Expand usage to other shell environments such as WSL, Macbook, etc
  • handle secrets - ideally using 1Password and not SOPS - using git-crypt for now
  • try agenix for secrets handling
  • introduce the concept of impermanence where appropriate

References

Old Dotfiles

Old dotfiles are still accessible in archive branch

dotfiles's People

Contributors

billimek avatar jander99 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

Watchers

 avatar  avatar  avatar  avatar

dotfiles's Issues

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.