Giter VIP home page Giter VIP logo

dotfiles's Introduction

All the Nix I have

Purpose of this repository is to collect all of my Nix/NixOS configuration in one place. This repository is not ment for you to depend on it, but it is a showcase how

Take good things from it. Complain about the weird things. Or just stop and say hi: @garbas

Structure

  • nixos/ (configuration for specific machine)
    • biedronka.nix (my gf's mom laptop)
    • zabka.nix (my gf's laptop)
    • nemo.nix (my work laptop)
    • oskar.nix (my personal laptop)
    • floki.nix (my server)
    • profiles/ (profile is a collection of nixos services)
      • base.nix (setup which only configures self updating)
      • rok.nix (my own setup, shared between my laptops)
      • gnome3.nix (setup I maintain for my famility)
  • pkgs/ (my custom packages which extend nixpkgs)
    • default.nix (list of all overrides)
    • config/ (confiurations for programs)
  • default.nix (imports pkgs/)
  • release.nix (hydra script)

Deploying a machine

Login as root on the existing NixOS installation and then::

% cd /etc/nixos
/etc/nixos % mv configuration.nix backup.nix
/etc/nixos % git clone https://github.com/garbas/dotfiles
/etc/nixos % nixos-rebuild switch

Using packages without NixOS

Make sure you have nix installed on your system and then::

% mkdir -p ~/.nixpkgs/
% cd ~/.nixpkgs
~/.nixpkgs % git clone https://github.com/garbas/dotfiles
~/.nixpkgs % echo "{ packageOverrides = pkgs: import ./dotfiles { inherit pkgs; }; }"

Read more about ~/.nixpkgs/config.nix.


Purpose of this repository is to collect all of my Nix/NixOS configuration in one place. This repository is not ment for you to depend on it, but it is a showcase how

Take good things from it. Complain about the weird things. Or just stop and say hi: @garbas

Structure

  • nixos/ (configuration for specific machine)
    • biedronka.nix (my gf's mom laptop)
    • zabka.nix (my gf's laptop)
    • nemo.nix (my work laptop)
    • oskar.nix (my personal laptop)
    • floki.nix (my server)
    • profiles/ (profile is a collection of nixos services)
      • base.nix (setup which only configures self updating)
      • rok.nix (my own setup, shared between my laptops)
      • gnome3.nix (setup I maintain for my famility)
  • pkgs/ (my custom packages which extend nixpkgs)
    • default.nix (list of all overrides)
    • config/ (confiurations for programs)
  • default.nix (imports pkgs/)
  • release.nix (hydra script)

Deploying a machine

Login as root on the existing NixOS installation and then::

% cd /etc/nixos
/etc/nixos % mv configuration.nix backup.nix
/etc/nixos % git clone https://github.com/garbas/dotfiles
/etc/nixos % nixos-rebuild switch

Using packages without NixOS

Make sure you have nix installed on your system and then::

% mkdir -p ~/.nixpkgs/
% cd ~/.nixpkgs
~/.nixpkgs % git clone https://github.com/garbas/dotfiles
~/.nixpkgs % echo "{ packageOverrides = pkgs: import ./dotfiles { inherit pkgs; }; }"

Read more about ~/.nixpkgs/config.nix.

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.