项目作者: BuriedInTheGround

项目描述 :
My NixOS configuration
高级语言: Nix
项目地址: git://github.com/BuriedInTheGround/nixos-config.git
创建时间: 2020-10-02T10:11:23Z
项目社区:https://github.com/BuriedInTheGround/nixos-config

开源协议:

下载


nixos-config

NixOS unstable

My NixOS system+user configuration.
Powered by Nix,
Nix Flakes,
Home Manager,
and passion.

My Setup

What Is What I Use
Browser Firefox
DM LightDM with Mini-Greeter
Editor Neovim
Launcher Rofi
Shell Zsh with Zgen
Status Bar Polybar
Terminal Alacritty + tmux
WM bspwm

Quickstart

Note: the optional steps are needed to set up a custom configuration and are
highly recommended (mainly because you probably have different hardware than
mine, and you also probably want to customize the system to your own needs).

Note 2: the commands in the following steps should be considered to be run as
root (e.g. using sudo).

  1. Download and boot the latest build of NixOS
    21.05
    .
  2. Partition as you like and mount your root to /mnt (see the
    manual
    ).
  3. (Optional) Generate an initial configuration as stated in the manual, using
    1. nixos-generate-config --root /mnt
  4. (Optional) Temporarely move the files generated in /mnt/etc/nixos
    somewhere else.
  5. Start a nix-shell with
    1. nix-shell -p git nixFlakes
  6. Clone this repo with
    1. git clone https://github.com/BuriedInTheGround/nixos-config.git /mnt/etc/nixos
  7. Fix some paths with
    1. mv /etc/nixos /etc/nixos.bak
    2. ln -s /mnt/etc/nixos /etc/nixos
  8. (Optional) Create a sub-directory inside hosts/ with the name you want for
    your host.
  9. (Optional) Put the files you moved in (4) into your host folder.
  10. (Optional) Rename hosts/<your-hostname>/configuration.nix to
    hosts/<your-hostname>/default.nix.
  11. (Optional) Customize hosts/<your-hostname>/default.nix by adding modules
    and NixOS settings.
  12. (Optional) Set your username by changing my default ("simone") in
    modules/options.nix.
  13. (Optional) Add your changes with git (mandatory if you actually made
    changes), e.g.
    1. git add hosts/<your-hostname>
    2. git add modules/options.nix
  14. Install NixOS with
    1. nixos-install --root /mnt --flake /mnt/etc/nixos#<your-hostname> --impure
  15. (Optional) Use nixos-enter to setup some files or folders in advance.
  16. Reboot.
  17. Change your root and user password.
  18. Enjoy your system! 🌸