WIP: home manager

This commit is contained in:
Yuri Tatishchev 2025-02-01 18:27:05 -08:00
parent 83bfc367f6
commit b3ca6dbac3
Signed by: CaZzzer
GPG Key ID: E0EBF441EA424369
2 changed files with 23 additions and 2 deletions

View File

@ -9,9 +9,13 @@
url = "github:nix-community/nixos-generators"; url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { self, nixpkgs, nixos-generators }: { outputs = { self, nixpkgs, nixos-generators, home-manager }: {
nixosConfigurations = { nixosConfigurations = {
Yura-PC = nixpkgs.lib.nixosSystem { Yura-PC = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
@ -27,6 +31,16 @@
./modules ./modules
./hosts/common.nix ./hosts/common.nix
./hosts/vm ./hosts/vm
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.jdoe = import ./home.nix;
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
]; ];
}; };
router = nixpkgs.lib.nixosSystem { router = nixpkgs.lib.nixosSystem {

View File

@ -1,4 +1,11 @@
{ config, pkgs, ... }: { { config, pkgs, inputs, ... }: {
imports = [
inputs.home-manager.nixosModules.home-manager
];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;