nix-community / plasma-manager

Manage KDE Plasma with Home Manager
https://nix-community.github.io/plasma-manager/
MIT License
578 stars 66 forks source link

Example `flake.nix` has deprecated attributes `extraModules` and `configuration` #57

Open manuelbb-upb opened 7 months ago

manuelbb-upb commented 7 months ago

The example flake uses deprecated attributes extraModules and configuration, see https://nix-community.github.io/home-manager/release-notes.xhtml#sec-release-22.11-highlights Putting both plasma-manager and home.nix in modules seems to work, though (at least it builds)... Here is my flake:

{
  description = "Home-Manager Flake";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

    home-manager.url = "github:nix-community/home-manager";
    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";

    nixgl.url = "github:guibou/nixGL";

    custom-any-nix-shell.url = "github:manuelbb-upb/any-nix-shell/nix_develop";
    custom-any-nix-shell.inputs.nixpkgs.follows = "nixpkgs"; 
  };

  outputs = inputs@{ nixpkgs, home-manager, plasma-manager, nixgl, custom-any-nix-shell, ... }:
  let
    system = "x86_64-linux";
  in {
    homeConfigurations.manuelbb = home-manager.lib.homeManagerConfiguration {
      pkgs = import nixpkgs {
        inherit system;
        config.allowUnfree = true;
        overlays = [ nixgl.overlay ];
      };
      modules = [ 
        inputs.plasma-manager.homeManagerModules.plasma-manager
        ./manuelbb_config/home.nix 
      ];
      extraSpecialArgs = { inherit inputs; };
    };
  };
}

Will test a bit more and hopefully manage a PR.

Asqiir commented 2 months ago

I think this is fixed by now, at least I couldn't find any example still using extraModules.