Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

My config powered by nix

NotificationsYou must be signed in to change notification settings

sharpchen/nix-config

Repository files navigation

Prerequisites

Non-NixOS Prerequisites

  1. install nix

  2. enable flakes

sudo sh -c'echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf'

Common Prerequisites

  1. add home-manager channel
nix-channel --add https://nixos.org/channels/nixos-unstable nixpkgsnix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-managernix-channel --update
  1. install home-manager as standalone
nix-shell'<home-manager>' -A install
  1. clone repo
nix-shell -p gitmkdir -p~/.config/home-manager/&&cd~/.config/home-manager/&& git clone https://github.com/sharpchen/nix-config.git.

Installation

NixOS-WSL

sudo nixos-rebuild switch --flake~/.config/home-manager#nixos-wsl

Non-NixOS

home-manager switch --flake~/.config/home-manager#sharpchen

Restore on Windows

Whole machine

pwsh -noprofile -f ./install.ps1

Dotfiles only

pwsh -noprofile -f ./dotfiles.ps1

[8]ページ先頭

©2009-2025 Movatter.jp