Skip to content

wenjinnn/.dotfiles

Repository files navigation

Personal NixOS configuration with Flake and Home Manager

Screenshot

Image

The old Arch configuration at Arch branch.

Recently I also replace my ags configuration with some standalone package (you can see detail on below), But I think the old ags configuration still valuable So you can visit it in ags-v1.

I don't want to spend too much time on writing about my desktop environment components, I do most of my work in the command line and prioritize practicality, so I want to keep my compositor desktop minimalist.

Why NixOS?

For a lone time I'm seeking for a solution to manage my OS configurations, The Arch branch is a way that I manage my home configurations, but that's not enough, NixOS provided capability to manage system wide configurations, or even more, now this repo manage my laptop, WSL, and nix-on-droid configurations together (but nix-on-droid configurations are not work well now)

Repo's structure base on nix-starter-config#standard, is a good start point for leaning NixOS, but you should be careful to using unstable and stable nixpkgs together, e.g. if you want to stay at stable nixpkgs branch but using unstable Hyprland, it will broken because of the mesa package version are not equal.

Stuff here

Installation

Note

You can not use this repo directly for I'm using sops-nix to manage my secrets in some modules, you won't pass the compile, but I still give a short guide to install this to remind you and myself.

Even you remove all the modules that using sops secrets, the other parts still has many custom settings that may not suitable for you machine, use it directly maybe damage your system.

Please always check the code before you use it.

For NixOS users:

  • This repo should be placed at $HOME/.dotfiles for I'm defined a immutable value and refer it in some home-manager modules.

  • Replace hardware-configuration.nix with your own, and change the username variable to yours

  • You also need to remove this hardware setting or replace it with your hardware model

  • Other modules that using sops secrets should be removed.

  • Navigate to repo root then execute following command in repo root:

$ sudo nixos-rebuild switch --flake .#nixos
$ home-manager switch --flake .#wenjin@nixos
  • If your machine's $HOSTNAME and $USER variables as same as that variables in nixosConfigurations and homeConfigurations, there's also a Makefile for simplified command:
$ make          # build system and home
$ make system   # build system
$ make home     # build home

About

Personal NixOS configurations and more

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages