Skip to content

TheDenast/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Denast NixOS Configuration

A configuration for NixOS that I personally daily drive

Features

  • Flakes + Home Manager
  • Multiple configurations in a single config (see below)
  • Dotfiles are packaged with the configurations and automatically symlinked using home manager

Deployment Instructions

Initial Setup

  1. Clone the Repository on the New Machine:

    git clone https://github.com/TheDenast/nixos-config.git /home/denast/.nixos-config
  2. Select configuration to build. Currently available:

    • asus-ga401iu
    • framework-13
  3. Rebuild the System with the New Configuration:

    sudo nixos-rebuild switch --flake /home/denast/.nixos-config#{configuration}

    Where {configuration} is your configuration of choice

System Updates

Since the configuration uses flakes to overwrite pinned nixpkgs version, in order to complete the system update you have to update the flake.lock first

  1. Update flake.lock

    cd /home/denast/.nixos-config
    nix flake update
  2. Rebuild the system with new flake.lock

    sudo nixos-rebuild switch --flake /home/denast/.nixos-config#{configuration}
  3. If the update went well, commit and push the changes

    git add .
    git commit -m "Flake update"
    git push

Configuration Updates

  1. Make changes to the configuration:

    cd /home/denast/.nixos-config
    nvim configuration.nix  # or any other editor
  2. Rebuild the system to test the changes:

    sudo nixos-rebuild switch --flake /home/denast/.nixos-config#{configuration}
  3. If all went well, commit and push the changes:

    git add .
    git commit -m "specify what you changed here"
    git push

About

My personal NixOS Configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published