moba1 / dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QuickStart

  1. install these packages:

  2. write nixpkgs/home.nix

    { config, pkgs, ... }:
    {
      home.username = "<username>";
      home.homeDirectory = "<home directory path>";
      imports = [ ./home.base.nix ];
      # ...
    }
  3. run make

  4. 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

CC0
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: 日本.

About

License:Creative Commons Zero v1.0 Universal


Languages

Language:Nix 87.2%Language:Makefile 12.8%