Refactor Home Manager modules
This commit is contained in:
parent
5229429bc4
commit
7771c88040
6 changed files with 22 additions and 29 deletions
12
nix/home/common/default.nix
Normal file
12
nix/home/common/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
outputs,
|
||||
hostname,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = builtins.attrValues outputs.homeManagerModules ++ [
|
||||
../../home/${username}/hosts/${hostname}.nix
|
||||
];
|
||||
}
|
|
@ -44,7 +44,10 @@ let
|
|||
};
|
||||
in
|
||||
{
|
||||
imports = [ shared-config ];
|
||||
imports = [
|
||||
../common
|
||||
shared-config
|
||||
];
|
||||
|
||||
home.packages =
|
||||
shared-packages
|
||||
|
@ -64,6 +67,7 @@ in
|
|||
);
|
||||
|
||||
home.sessionVariables = {
|
||||
DOCUMENTS = "$HOME/Documents";
|
||||
EDITOR = "nvim";
|
||||
LANG = "en_GB.UTF-8";
|
||||
LC_ALL = "en_GB.UTF-8";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue