Skip to content

Commit

Permalink
refactor(nixos/home): Split nixos/home/base/home
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarKirov committed Feb 26, 2023
1 parent 579db56 commit 4dc54b7
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 17 deletions.
3 changes: 3 additions & 0 deletions nixos/home/base/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
imports = [
./env-vars.nix
./git.nix
./home.nix
./pkg-sets/cli-utils.nix
./shells/bash.nix
./shells/direnv.nix
./shells/fish.nix
./shells/nushell.nix
./xdg-symlinks.nix
Expand Down
12 changes: 12 additions & 0 deletions nixos/home/base/env-vars.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{config, ...}: {
home.sessionVariables = rec {
DIRENV_WARN_TIMEOUT = "30s";
CODE = "${config.home.homeDirectory}/code";
TMPCODE = "${CODE}/tmp";
REPOS = "${CODE}/repos";
CFG = "${REPOS}/dotfiles";
DLANG = "${REPOS}/dlang";
WORK = "${REPOS}/metacraft-labs";
MINE = "${REPOS}mine";
};
}
18 changes: 1 addition & 17 deletions nixos/home/base/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,5 @@
};

manual.manpages.enable = false;

programs = {
home-manager.enable = true;
bash.enable = true;
direnv.enable = true;
};

home.sessionVariables = rec {
DIRENV_WARN_TIMEOUT = "30s";
CODE = "${config.home.homeDirectory}/code";
TMPCODE = "${CODE}/tmp";
REPOS = "${CODE}/repos";
CFG = "${REPOS}/dotfiles";
DLANG = "${REPOS}/dlang";
WORK = "${REPOS}/metacraft-labs";
MINE = "${REPOS}mine";
};
programs.home-manager.enable = true;
}
3 changes: 3 additions & 0 deletions nixos/home/base/shells/bash.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
programs.bash.enable = true;
}
3 changes: 3 additions & 0 deletions nixos/home/base/shells/direnv.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
programs.direnv.enable = true;
}

0 comments on commit 4dc54b7

Please sign in to comment.