restructure
This commit is contained in:
parent
4922f8f7cb
commit
ffe40ca5e7
25 changed files with 84 additions and 66 deletions
30
home/default.nix
Normal file
30
home/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# This is a NixOS module, not a home-manager module!
|
||||
{
|
||||
lib,
|
||||
inputs,
|
||||
config,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
];
|
||||
|
||||
config = lib.mkIf config.hd.desktop.enable {
|
||||
home-manager.users."hd" = lib.mkAliasDefinitions options.home;
|
||||
# install to /etc/profiles, not ~/.nix-profile
|
||||
home-manager.useUserPackages = true;
|
||||
# dont use home.nixpkgs
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
home = {
|
||||
imports = [
|
||||
./unison.nix
|
||||
./protonmail-bridge.nix
|
||||
];
|
||||
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue