Skip to content

My personal NixOS configuration files I use for all my linux machines.

Notifications You must be signed in to change notification settings

nktfh100/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NixOS Config

My personal NixOS configuration files.

Images

Screenshot 1 Screenshot 2

What I Use

Install

Steps:

  • Install NixOS GNOME with nktfh100 as the username.
  • Create a nix shell with git package
    nix-shell -p git
    
  • Set PC variable
    # Based on hosts folder
    PC=""
    
  • Run install script:
    # Take ownership of /etc/nixos
    sudo chown -R $USER /etc/nixos
    
    # Remove the default configuration file
    rm /etc/nixos/configuration.nix
    
    # Clone the repo to a temp folder
    git clone --recurse-submodules -j8 https://github.com/nktfh100/nixos-config /tmp/nixos
    
    # Copy repo to /etc/nixos
    cp -R /tmp/nixos /etc
    
    # Move new hardware-configuration file to the appropriate location for this machine
    mv /etc/nixos/hardware-configuration.nix /etc/nixos/hosts/$PC/
    
    # Rebuild
    cd /etc/nixos && git add . && sudo nixos-rebuild switch --install-bootloader --flake .#nktfh100-$PC
    
  • Reset layout
    gsettings reset org.gnome.desktop.input-sources xkb-options
    gsettings reset org.gnome.desktop.input-sources sources
    

About

My personal NixOS configuration files I use for all my linux machines.

Topics

Resources

Stars

Watchers

Forks