Combine default.nix and home.nix

This commit is contained in:
Oliver Davies 2025-04-06 01:00:57 +01:00
parent 1d284c9432
commit 4836066be4
2 changed files with 38 additions and 45 deletions

View file

@ -17,20 +17,49 @@ let
]; ];
}; };
inherit (pkgs) lib;
inherit (config.xdg) inherit (config.xdg)
cacheHome cacheHome
configHome configHome
dataHome dataHome
stateHome stateHome
; ;
inherit (pkgs) lib;
in in
{ {
imports = [ home.username = "opdavies";
./home.nix 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 = { home.sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
IMAPFILTER_HOME = "${configHome}/imapfilter"; 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.
} }

View file

@ -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";
}