GithubHelp home page GithubHelp logo

nixos's Introduction

Logo

NixOS and Home Manager

My NixOS and Home Manager deployed as a flake.
Homepage · Forums · Nixpkgs

Usage

Installation

Official installation instructions can be found in the NixOS Wiki or the Home Manager community docs.

I deploy my HM configuration as a flake which needs be enabled. For standalone personal computers, I enable this via a nixos option nix.settings.experimental-features = [ "nix-command" "flakes" ];. If running Home Manager on top of another distro, I enable this via a nix config file:

# ~/.config/nix/nix.conf
experimental-features = nix-command flakes 

Nix Flakes documentation if needed.

Rebuilding and Updating

To rebuild home manager, run the command home-manager switch --flake /path/to/flake/#<flake_profile> where flake_profile is whatever gets set in flake.nix. I define the following alias for convenience:

home.shellAliases = {
    hms = "home-manager switch --flake $XDG_CONFIG_HOME/home-manager/#$USER";
}

One advantage of home manager as a flake is pinned dependencies for reproducibility (flake.lock). In practice, this means the nix channel I follow gets pinned and thus all packages I download and install are the same across all machines I use. To upgrade all system packages, I run the command nix flake update, rebuild home manager, and then commit my new lockfile.

WSL

[https://github.com/nix-community/NixOS-WSL]

nixos's People

Contributors

ajlow2000 avatar

Stargazers

Thomas Phillips avatar Grant avatar

Watchers

 avatar

nixos's Issues

Add handling for opening encrypted plaintext

Ideal behavior being unencrypt to edit, reencrypt upon close. Bonus points if it supports passwords from bitwarden

Unsure if I want this to happen through a "handler" like lf or go simple and just support nvim. Edge case being using something like visidata for tabular data

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.