Skip to content

pierrot-lc/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Dotfiles

Installation

Here's the steps after a fresh NixOS installation:

  1. Install vim and git, and activate flakes.
nix-shell -p vim
sudo vim /etc/nixos/configuration.nix
  nix.settings.experimental-features = [ "nix-command" "flakes" ];
  environment.systemPackages = with pkgs; [
    vim
    git
  ];
  1. Clone the repo.
git clone git@github.com:pierrot-lc/dotfiles.git
cd dotfiles/
  1. Setup the system configuration:
  • Create an entry in ./hosts/{host-name}/default.nix. You can directly copy the content from /etc/nixos/configuration.nix or take inspiration from other hardwares in this repo.
  • Copy the /etc/nixos/hardware-configuration.nix file to ./hosts/{host-name}/.
  • Import this file from your ./hosts/{host-name}/default.nix.
  • Create and setup the file ./hosts/{host-name}/options.nix.
  imports = [
    ./hardware-configuration.nix
  ];
  • Add this new configuration in the flake.nix
    hosts = {
        [host-name] = null;
        # ...
    }

    nixosConfigurationsParse = {
      [host-name] = ./hosts/{host-name}/configuration.nix;
      # ...
    };

    optionsParser = {
      [host-name] = ./hosts/{host-name}/options.nix;
    };
  1. Build and switch at boot this new configuration:
sudo nixos-rebuild boot --flake .#[host-name] -v
  1. Reboot.
  2. Make channels follow unstable (if you want).
nix-channel --add https://nixos.org/channels/nixos-unstable nixos
sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos

nix-channel --update
sudo nix-channel --update
  1. Install home-manager.
  2. This repo uses a private flake input to hide personal information. Unless you're me and you have access to this repository, you should not use this part of the config. So you can remove the parts where this private information is used.
home-manager switch --flake .#[your-username] -v
  1. Install flatpaks from ./notes/flatpak.norg

And you're good to go!

About

Dot files fully configured with Nix.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published