Giter Site home page Giter Site logo

mic92 / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
505.0 8.0 36.0 8.81 MB

My NixOS dotfiles

License: MIT License

Nix 51.08% Python 9.37% Shell 11.34% Emacs Lisp 7.64% YASnippet 2.19% C 0.07% GDB 0.13% Ruby 0.35% Sieve 0.09% Lua 2.09% HCL 1.78% Rust 0.26% Vim Script 12.40% Just 0.30% CSS 0.65% HTML 0.26%
nix-flake nixos-dotfiles nixos-configuration hacktoberfest build-with-buildbot managed-by-renovate

dotfiles's Introduction

My personal bootstrap process

For bootstraping on legacy operating systems

Bootstrap dotfiles when having nix

$ nix run github:Mic92/dotfiles

Bootstrap homeshick without nix

$ nix-shell -p git
nix-shell> git clone --depth=1 https://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
nix-shell> alias homeshick="$HOME/.homesick/repos/homeshick/bin/homeshick"
nix-shell> homeshick clone https://github.com/Mic92/dotfiles.git

Bootstrap single user nix:

$ install -d -m755 -o joerg -g joerg /nix
$ curl https://nixos.org/nix/install | sh

Bootstrap multi-user nix:

$ curl https://nixos.org/nix/install -o install
$ sh ./install --daemon

Bootstrap home-manager

$ hm switch

Use my nvim configuration as a standalone without installing dotfiles

$ nix run 'github:Mic92/dotfiles#nvim'

Articles about my dotfile repo

Need help with nix?

Drop me an email at [email protected] to book consultation on Nix/NixOS/DevOps related topics

dotfiles's People

Contributors

anstylian avatar bors[bot] avatar con-f-use avatar davhau avatar dependabot[bot] avatar github-actions[bot] avatar herrwiese avatar lassulus avatar makefu avatar mergify[bot] avatar mic92 avatar mic92-buildbot avatar mic92-renovate[bot] avatar mikkolukas avatar mrvandalo avatar pizzaandcheese avatar renovate-bot avatar slekwati avatar zowoq 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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotfiles's Issues

Question: Folder-based secrets organization with sops

Hi, i recently observed how you are organizing secrets in /sops folder and I loved it. But some questions arise on me, how are you consuming that? I tried to find it in your code but I haven't found it.

I was, also, wondering if a module system like haumea could make it accessible to sops-nix or similar?

Thanks in advance from a follower of your amazing work!!

How do you deploy the `age` Private Key?

If my understanding is correct, the age Private Key is used to decrypt the secrets. This means it needs to be on the deployed system. Is this right?

If so, how do you deploy the key? Do you do it manually?

Deleting array-like openwrt uci config sections

# HACK: there seem no better way to clear out a list

If you rely solely on uci batch commands, it's not possible to do. If you make use of some form of on-device scripting, it's trivial, and this is what both OpenWRT's documentation and scripts do currently. For example, deleting all existing network devices with ash:

while uci -q del network.@device[-1] 2>/dev/null; do :; done

There shouldn't really be much of an issue interspersing uci batch commands and segments of shell script; so long as you don't uci commit the changes until everything is done, any failure in the script won't be persisted and could be trivially reverted.

As a possibly more interesting alternative, ucode is now on every OpenWRT image from 22.03 and on, so you could directly ship the uci.json onto the router, along with a ucode script to parse & act on it directly on the target.

Question about home-manager

Hey @Mic92,
you have got an interesting and complex nix-setup. I forked to fiddle around with it and stumbled over your home-manager setup. Can you give me a hint, how it works? I would like to invoke it with a regular nixos-rebuild and just can not wrap my head around your setup. As I am always willing to learn, your answer would be very much appreciated.

[Thank You] Not An Issue

Hi Mic92,

I am new to Nix and was pointed to one of your repos today to solve a problem I was having while learning nix, and I have since found several great repos now, as well as this dotfiles repo to learn.

You rock, it is much appreciated. Thank you.

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.