NixOS/home-manager config files. Requires Nix flakes.
Shamelessly inspired/ripped-off from misterio77 and archer-65
Contains code from K900
flake.nix
: Entrypoint for hosts and home configurations. Also exposes devshells for boostrapping (nix develop
ornix-shell
).hosts
: NixOS Configurationscommon
: Shared configurations consumed by the machine-specific ones.global
: Configurations that are globally applied to all machines.optional
: Opt-in configurations any machines can use.
nixos-wsl
: NixOS on WSLrazorback
: Asus TUF A17 2023 Laptoprocinante
: AMD 5950x / NVIDIA 4090 Desktop
home
: Home-manager configurationmodules
: Modules (with options).overlays
: Patches and version overrides for some packages. Accessible vianix build
.pkgs
: Custom packages. Also accessible vianix build
.
Add following to /etc/nixos/configuration.nix
networking.hostName = "razorback"; # or "nixos-wsl"
nix.settings.experimental-features = [ "nix-command" "flakes" ];
environment.systemPackages = with pkgs; [
vim
wget
git
];
Then:
cd ~/.config
git clone https://github.com/McDamon/dotfiles.git
cd dotfiles
sudo nixos-rebuild switch --flake .#razorback
sudo nixos-rebuild switch --flake .#nixos-wsl
nix run home-manager/master -- init --switch
home-manager switch --flake .#amcmahon@razorback
home-manager switch --flake .#amcmahon@nixos-wsl