Skip to content

mt190502/dotfiles.nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

896 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mt190502's dots

This dotfiles is made for my personal use. I use it with Nix Package Manager, so you can use it with NixOS or Nix installed on your system.

Configuration & Modules

Name Description
Assets Assets for the configuration (wallpapers, etc.)
Hosts Configuration for hosts (laptop, desktop, etc.)
Modules Package configurations and nixGL wrapped packages
Packages Modded & Custom packages
Users User configurations (home-manager)

Hosts

Name Description Screenshot
lenovo-thinkpad-e14-nixos Laptop running a AMD Ryzen 5 7530U, 16GB of RAM and a AMD Barcelo Graphics image
macbook-m3-air-work MacBook Air M3 Workstation Setup with nix-darwin and home-manager image
msi-h510m-pro-nixos Desktop pc running a Intel i5-11400, 32GB of RAM and a MSI RX570 OC Edition 4GB image
msi-h510m-pro-fedora Same as msi-h510m-pro-nixos but running Fedora instead of NixOS image

Installation

NixOS Setups
  • First, clone this repository to your system

    git clone <this-repo>
    cd dotfiles.nix
  • Then, set up user and system configurations

    • For user configuration, change the username in the users/ and hosts/YOUR_CONFIG/home directory
    • For system configuration, change the hosts/ directory
  • After that, you can switch the configuration like below:

    sudo nixos-rebuild switch --flake .#msi-h510m-pro-nixos
Darwin Setups
  • First, clone this repository to your macOS system

    git clone <this-repo>
    cd dotfiles.nix
  • Then, set up nix and nix-darwin on your macOS system (if you haven't already)

    NIX_VERSION="25.11" #~ or your desired Nix version like "25.05"
    curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
    
    # relogin or restart your terminal session to have nix command available
    sudo nix-channel --add https://nixos.org/channels/nixos-${NIX_VERSION} nixpkgs
    sudo nix-channel --add https://github.com/nix-darwin/nix-darwin/archive/nix-darwin-${NIX_VERSION}.tar.gz darwin
    sudo nix-channel --update
    nix-build '<darwin>' -A darwin-rebuild
  • Enable flake support in Nix

    echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf
  • Then, set up user and system configurations

    • For user configuration, change the username in the users/ and hosts/YOUR_CONFIG/home directory
    • For system configuration, change the hosts/ directory
  • After that, you can switch the configuration like below:

    sudo darwin-rebuild switch --flake .#macbook-m3-air-work
Home Manager only Setups
  • First, set up some packages on your system. (I'm using Fedora, so you can use this command to install them)

    sudo dnf install git curl fish swaylock mate-polkit
    • We need to install swaylock, mate-polkit and fish using the distribution's own package manager. Because the home-manager is not compatible with pam-locking. If you use another distribution, you can install it with your package manager.
  • Set up Nix Package Manager on your system (if you haven't already or you don't have NixOS installed)

    NIX_VERSION="25.11" #~ or your desired Nix version like "25.05"
    curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
    nix-channel --add https://nixos.org/channels/nixos-${NIX_VERSION} nixpkgs
    nix-channel --add https://github.com/nix-community/home-manager/archive/release-${NIX_VERSION}.tar.gz home-manager
    nix-channel --update
    nix-shell '<home-manager>' -A install
  • Enable flake support in Nix

    echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf
  • Switch this flake

    home-manager switch --no-out-link --flake github:mt190502/dotfiles.nix/unstable#msi-h510m-pro-fedora

    Note: In this example, you must change username into the hosts/msi-h510m-pro-fedora/home/default.nix file.

Credits & Big Thanks

  • Kranzes - I basically copy pasted and edited his config
  • yomaq - For the module system idea
  • usdogu - Special thanks for the inspiration and support!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •