I want to use Plasma-manager in my system. I have enabled flakes in configurations. Now what to do to use it. The output generated by tool rc2nix can be copied through terminal but when i put that in home.nix , it says that plasma is not available which is true but then how do I use this tool. flake file.
3 Comments
Triton@lemm.ee · 2 pts · 2y
First, you need to pass the
plasma-managerinput to your home-manager config in some way. I use the NixOS module for home-manager which I declare like this in myflake.nix(if you have a different setup, this might not be necessary or you have to do it in a slightly different way):Now the home-manager config (in my case
home.nix) can look like this:You probably forgot to import the plasma-manager module into home-manager. If you want to have a cleaner setup, I'd also recommend against just copying the complete output of
rc2nixinto your config since it tends to contain a lot of unnecessary stuff. What I usually do is:rc2nix > old-config.nixrc2nix > new-config.nixdiff old-config.nix new-config.nixand add what I want to my actual plasma-manager config.This of course only works if you're starting from a relatively unmodified installation of KDE, but in that case it's worth the effort imo.
43dc92z0@lemmy.world · 1 pts · 2y
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 = { # Specify the source of Home Manager and Nixpkgs home-manager.url = "github:nix-community/home-manager"; nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { home-manager , plasma-manager , nixpkgs , ... }: let system = "x86_64-linux"; username = "naresh"; in { homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.${system}; # extraModules = [ # plasma-manager.homeManagerModules.plasma-manager # ];
} `
and home.nix looks like
and when I run
home-manager switch --flake ~/.config/home-manager/It gives me`error: … while evaluating a branch condition
`
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)
___``___Triton@lemm.ee · 1 pts · 2y
The problem seems to be that
home.stateVersionis not set because you commented out both the declaration inflake.nixas well as the line that importshome.nix. It's a bit difficult to see whether the config is otherwise fine since there is a lot of visual clutter due to all the commented-out lines.