move home-manager nix from ~/.config/nixpkgs to ~/nix

This commit is contained in:
Dave Gallant
2021-01-10 16:38:12 -05:00
parent fa5b760d9a
commit e8776c93cf
7 changed files with 22 additions and 1 deletions

View File

@@ -1 +0,0 @@
{ allowUnfree = true; }

View File

@@ -6,6 +6,8 @@ This repo stores nix expressions and other configuration.
## Setup ## Setup
## git
Clone this as a bare repo to avoid the need for symlinking: Clone this as a bare repo to avoid the need for symlinking:
```console ```console
@@ -14,3 +16,11 @@ $ alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' # add alias to
$ config config --local status.showUntrackedFiles no $ config config --local status.showUntrackedFiles no
$ config checkout -f # this will overwrite any existing configs in the home directory $ config checkout -f # this will overwrite any existing configs in the home directory
``` ```
## home manager
Install [nix](https://nixos.org/guides/install-nix.html) and [home-manager](https://github.com/nix-community/home-manager).
```console
$ home-manager -f ~/nix/home.nix switch
```

View File

@@ -1,6 +1,8 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
nixpkgs.overlays = import ./overlays { inherit pkgs; };
nixpkgs.config.allowUnfree = true;
home = { home = {
sessionVariables = { sessionVariables = {

7
nix/overlays/default.nix Normal file
View File

@@ -0,0 +1,7 @@
{ ... }:
[
(import ./rfd.nix)
(import ./lastpass.nix)
]

View File

@@ -19,6 +19,9 @@ with pkgs; [
unzip unzip
zip zip
# education
anki
# monitoring # monitoring
htop htop