Thank you for help. so now I have flake.nix and home.nix in ~/.config/home-manager.
flake.nix looks like
`{
description = “Plasma Manager Example”;
inputs = {
home-manager.url = “github:nix-community/home-manager”;
nixpkgs.url = “github:nixos/nixpkgs/nixpkgs-unstable”;
home-manager.inputs.nixpkgs.follows = “nixpkgs”;
plasma-manager. url = "github:pjones/plasma-manager";
plasma-manager. inputs. nixpkgs. follows = "nixpkgs";
plasma-manager. inputs. home-manager. follows = "home-manager";
};
outputs = inputs:
let
system = “x86_64-linux”;
username = “naresh”;
in
{
# Standalone Home Manager Setup:
homeConfigurations.${username} =
inputs.home-manager.lib.homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages.${system};
# Ensure Plasma Manager is available:
extraModules = [
inputs.plasma-manager.homeManagerModules.plasma-manager
];
# Specify the path to your home configuration here:
configuration = import ./home.nix;
inherit system username;
homeDirectory = "/home/${username}";
};
# A shell where Home Manager can be used:
devShells.${system}.default =
let pkgs = import inputs.nixpkgs { inherit system; }; in
pkgs.mkShell {
buildInputs = [
inputs.home-manager.packages.${system}.home-manager
];
};
};
}`
and when I run
home-manager switch --flake ~/.config/home-manager/
It gives me
`error:
… while calling the ‘throw’ builtin
at /nix/store/1ryprai4bllkrna60cmcygxc4qyn79s1-source/lib/trivial.nix:393:37:
392| */
393| throwIf = cond: msg: if cond then throw msg else x: x;
| ^
394|
error: The 'homeManagerConfiguration' arguments
- 'configuration',
- 'username',
- 'homeDirectory'
- 'stateVersion',
- 'extraModules', and
- 'system'
have been removed. Instead use the arguments 'pkgs' and
'modules'. See the 22.11 release notes for more: https://nix-community.github.io/home-manager/release-notes.html#sec-release-22.11-highlights
Deprecated args passed: configuration username homeDirectory extraModules system
`
Now don’t know what to do. I got your latter advice regarding diff but first I need to make this work. I am on unstable nixos version. and
home-manager --version gives 23.11-pre
nixos-version gives 23.11pre546599.e44462d6021b (Tapir)