add home manager as a nixos module

This commit is contained in:
Yisroel Baum 2026-03-29 16:57:57 +03:00
parent 9918a80c3d
commit d6720540b1
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -11,15 +11,19 @@
# the `inputs.nixpkgs` of the current flake,
# to avoid problems caused by different versions of nixpkgs.
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, ... }@inputs: {
# Please replace my-nixos with your hostname
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
modules = [
# Import the previous configuration.nix we used,
# so the old configuration file still takes effect
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.yisroel = import ./home-manager/home.nix;
}
];
};
};