Combine default.nix and home.nix
This commit is contained in:
parent
1d284c9432
commit
4836066be4
2 changed files with 38 additions and 45 deletions
|
@ -17,20 +17,49 @@ let
|
|||
];
|
||||
};
|
||||
|
||||
inherit (pkgs) lib;
|
||||
|
||||
inherit (config.xdg)
|
||||
cacheHome
|
||||
configHome
|
||||
dataHome
|
||||
stateHome
|
||||
;
|
||||
|
||||
inherit (pkgs) lib;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./home.nix
|
||||
home.username = "opdavies";
|
||||
home.homeDirectory = "/home/${config.home.username}";
|
||||
|
||||
home.packages = with pkgs; [
|
||||
cachix
|
||||
delta
|
||||
entr
|
||||
gcc
|
||||
git
|
||||
git-crypt
|
||||
gnupg
|
||||
inotify-tools
|
||||
jq
|
||||
killall
|
||||
lua
|
||||
mob
|
||||
pv
|
||||
simple-http-server
|
||||
sshs
|
||||
tldr
|
||||
tree
|
||||
tree-sitter
|
||||
unzip
|
||||
w3m
|
||||
watchexec
|
||||
wget
|
||||
xclip
|
||||
xdg-utils
|
||||
zbar
|
||||
];
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
IMAPFILTER_HOME = "${configHome}/imapfilter";
|
||||
|
@ -67,4 +96,9 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Nicely reload system units when changing configs.
|
||||
systemd.user.startServices = "sd-switch";
|
||||
|
||||
home.stateVersion = "22.05"; # Please read the comment before changing.
|
||||
}
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.username = "opdavies";
|
||||
home.homeDirectory = "/home/${config.home.username}";
|
||||
|
||||
home.stateVersion = "22.05"; # Please read the comment before changing.
|
||||
|
||||
home.packages = with pkgs; [
|
||||
cachix
|
||||
delta
|
||||
entr
|
||||
gcc
|
||||
git
|
||||
git-crypt
|
||||
gnupg
|
||||
inotify-tools
|
||||
jq
|
||||
killall
|
||||
lua
|
||||
mob
|
||||
pv
|
||||
simple-http-server
|
||||
sshs
|
||||
tldr
|
||||
tree
|
||||
tree-sitter
|
||||
unzip
|
||||
w3m
|
||||
watchexec
|
||||
wget
|
||||
xclip
|
||||
xdg-utils
|
||||
zbar
|
||||
];
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
# Nicely reload system units when changing configs.
|
||||
systemd.user.startServices = "sd-switch";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue