QuickStart
-
install these packages:
-
write
nixpkgs/home.nix
{ config, pkgs, ... }: { home.username = "<username>"; home.homeDirectory = "<home directory path>"; imports = [ ./home.base.nix ]; # ... }
-
run
make
-
run
home-manager switch
Linux
If you use Linux, you must import home.linux.nix
in nixpkgs/home.nix
# ...
imports = [ ./home.base.nix ./home.linux.nix ];
# ...
macOS
If you use macOS, you must run following commands further:
make osx
you must add following configurations to ~/.nixpkgs/darwin-configuration.nix
:
{ config, pkgs, ... }:
{
environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix";
services.nix-daemon.enable = true;
# valid `<login shell name>` value: fish, bash, zsh
programs.<login shell name>.enable = true;
system.stateVersion = 4;
}
License
To the extent possible under law,
moba1
has waived all copyright and related or neighboring rights to
moba1's dotfiles.
This work is published from:
日本.