im trying to install hm on nixos unstable so I can run hyprland and other reasons
- I followed the official guide added the correct channels
unstable and home manager with sudo. - added <home-manager/nixos> to my imports on config file
- go to rebuild switch and get a error about home manager cant be found. aftrer fighting that all day I tried installing it again
I removed all my channels re-added them and still no go. I dont understand what im doing wrong
Edit this configuration file to define what should be installed on
your system. Help is available in the configuration.nix(5) man page
and in the NixOS manual (accessible by running ‘nixos-help’).
> { config, pkgs, ... }:
>
> {
> imports =
> [ # Include the results of the hardware scan.
>
> ./hardware-configuration.nix
> <home-manager/nixos>
> ];
>
>
> # Bootloader.
> boot.loader.systemd-boot.enable = true;
> boot.loader.efi.canTouchEfiVariables = true;
> boot.loader.efi.efiSysMountPoint = "/boot/efi";
>
>
>
> networking.hostName = "nixos"; # Define your hostname.
> # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
>
> # Configure network proxy if necessary
> # networking.proxy.default = "http://user:password@proxy:port/";
> # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
>
>
> nixpkgs.config.permittedInsecurePackages = ["openssl-1.1.1u"];
>
> # Enable networking
> networking.networkmanager.enable = true;
>
> # Set your time zone.
> time.timeZone = "America/Los_Angeles";
>
> # Select internationalisation properties.
> i18n.defaultLocale = "en_US.UTF-8";
>
> # Enable the X11 windowing system.
> services.xserver.enable = true;
>
> # Enable the KDE Plasma Desktop Environment.
> services.xserver.displayManager.sddm.enable = true;
> services.xserver.desktopManager.plasma5.enable = true;
>
> # Configure keymap in X11
> services.xserver = {
> layout = "us";
> xkbVariant = "";
> };
>
> # Enable CUPS to print documents.
> services.printing.enable = true;
>
> # Enable sound with pipewire.
> sound.enable = true;
> hardware.pulseaudio.enable = false;
> security.rtkit.enable = true;
> services.pipewire = {
> enable = true;
> alsa.enable = true;
> alsa.support32Bit = true;
> pulse.enable = true;
> }
>
> users.users.webb.isNormalUser = true;
> home-manager.users.webb = { pkgs, ... }: {
> home = { stateVersion = "22.11"; };
> home.packages = [ pkgs.atool pkgs.httpie ];
> programs.bash.enable = true;
> };
>
> # Define a user account. Don't forget to set a password with ‘passwd’.
> users.extraUsers.webb = {
> isNormalUser = true;
> home = "/home/webb";
> extraGroups = [ "wheel" ];
> };
home.nix
> { config, pkgs, ... }:
>
> {
> # Home Manager needs a bit of information about you and the paths it should
> # manage.
> home.username = "webb";
> home.homeDirectory = "/home/webb";
>
> # This value determines the Home Manager release that your configuration is
> # compatible with. This helps avoid breakage when a new Home Manager release
>
>
>
> # You should not change this value, even if you update Home Manager. If you do
>
>
> # want to update the value, then make sure to first check the Home Manager
> # release notes.
> home.stateVersion = "23.05"; # Please read the comment before changing.
>
> # The home.packages option allows you to install Nix packages into your
> # # It is sometimes useful to fine-tune packages, for example, by applying
> # # overrides. You can do that directly here, just don't forget the
> # # parentheses. Maybe you want to install Nerd Fonts with a limited number of
> # # fonts?
> # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
>
> # # You can also create simple shell scripts directly inside your
> # # configuration. For example, this adds a command 'my-hello' to your
> #environment:
> # Home Manager is pretty good at managing dotfiles. The primary way to manage
> # plain files is through 'home.file'.
> home.file = {};
> # # Building this configuration will create a copy of 'dotfiles/screenrc' in
> # environment.
> home.packages = with pkgs;[
> # # Adds the 'hello' command to your environment. It prints a friendly
> # # "Hello, world!" when run.
> # pkgs.hello
# if you don't want to manage your shell through Home Manager.
home.sessionVariables = {
EDITOR = "helix";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}