refactor
This commit is contained in:
43
home.nix
Normal file
43
home.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
config,
|
||||
isServer ? false,
|
||||
opnix,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
allowUnfreePredicate = pkg: true;
|
||||
};
|
||||
|
||||
imports =
|
||||
[
|
||||
opnix.homeManagerModules.default
|
||||
./config/default.nix
|
||||
./packages/common/default.nix
|
||||
]
|
||||
++ (
|
||||
if isServer then
|
||||
[
|
||||
./packages/server/default.nix
|
||||
./server/default.nix
|
||||
]
|
||||
else
|
||||
[
|
||||
./packages/workstation/default.nix
|
||||
./workstation/default.nix
|
||||
]
|
||||
);
|
||||
|
||||
home = {
|
||||
username = "menno";
|
||||
homeDirectory = "/home/menno";
|
||||
stateVersion = "25.05";
|
||||
sessionVariables = {
|
||||
PATH = "${config.home.homeDirectory}/go/bin:$PATH";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user