Skip to content

bug: All home-manager services are not running. #2252

Description

@winston0410

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

All services inside home-manager are not running. This is the file that I have defined my home-manager module:

{ config, lib, pkgs, ... }:

{
  imports = [
    <home-manager/nixos>
    # ./services/fusuma.nix
    # ./service-configuration.nix
  ];

  environment.systemPackages = with pkgs; [ xautomation ];

  home-manager.useUserPackages = true;
  home-manager.useGlobalPkgs = true;

  home-manager.users.hugosum = { pkgs, ... }: {
    programs.zoxide = {
      enable = true;
      enableZshIntegration = true;
      enableFishIntegration = true;
    };

    programs.fzf = {
      enable = true;
      # enableZshIntegraton = true;
      enableFishIntegration = true;
    };

    programs.direnv = {
      enable = true;
      enableZshIntegration = true;
      enableFishIntegration = true;
    };

    services.lorri = { enable = true; };

    services.sxhkd = {
      enable = true;
      extraConfig = ''
        control + n
            xte "key Down"
      '';
    };

  };
}

Then I just import this file into configuration.nix like this:

{ config, pkgs, ... }:

let unstable = import <unstable> { };
in {
  imports = [
    ./hardware-configuration.nix
    ./xserver.nix
    ./home-manager.nix
    ./shell.nix
    ./docker.nix
  ];

  users = {
    mutableUsers = false;
    users.hugosum = {
      isNormalUser = true;
      home = "/home/hugosum";
      extraGroups = [ "wheel" "networkmanager" ];
  };
}

I can confirm that I am running the correct user:

❯ whoami
hugosum

And when I check systemctl --user, I cannot find all the defined service direnv, lorri and sxhkd:

  UNIT                                                                                       >
  sys-devices-LNXSYSTM:00-LNXPWRBN:00-input-input3-event3.device                             >
  sys-devices-LNXSYSTM:00-LNXSYBUS:00-PNP0A08:00-LNXVIDEO:00-input-input6-event6.device      >
  sys-devices-LNXSYSTM:00-LNXSYBUS:00-PNP0C0C:00-input-input1-event1.device                  >
  sys-devices-LNXSYSTM:00-LNXSYBUS:00-PNP0C0E:00-input-input2-event2.device                  >
  sys-devices-pci0000:00-0000:00:02.0-backlight-acpi_video0.device                           >
  sys-devices-pci0000:00-0000:00:02.0-drm-card0-card0\x2deDP\x2d1-intel_backlight.device     >
  sys-devices-pci0000:00-0000:00:1c.0-0000:01:00.0-nvme-nvme0-nvme0n1-nvme0n1p1.device       >
  sys-devices-pci0000:00-0000:00:1c.0-0000:01:00.0-nvme-nvme0-nvme0n1-nvme0n1p2.device       >
  sys-devices-pci0000:00-0000:00:1c.0-0000:01:00.0-nvme-nvme0-nvme0n1-nvme0n1p3.device       >
  sys-devices-pci0000:00-0000:00:1c.0-0000:01:00.0-nvme-nvme0-nvme0n1.device                 >
  sys-devices-pci0000:00-0000:00:1d.0-0000:02:00.0-net-wlp2s0.device                         >
  sys-devices-pci0000:00-0000:00:1e.0-dw\x2dapb\x2duart.2-tty-ttyS0.device                   >
  sys-devices-pci0000:00-0000:00:1e.3-pxa2xx\x2dspi.3-spi_master-spi2-spi\x2dAPP000D:00-input>
  sys-devices-pci0000:00-0000:00:1e.3-pxa2xx\x2dspi.3-spi_master-spi2-spi\x2dAPP000D:00-leds->
  sys-devices-pci0000:00-0000:00:1f.3-sound-card0-controlC0.device                           >
  sys-devices-platform-serial8250-tty-ttyS1.device                                           >
  sys-devices-platform-serial8250-tty-ttyS2.device                                           >
  sys-devices-platform-serial8250-tty-ttyS3.device                                           >
  sys-devices-virtual-input-mice.device                                                      >
  sys-devices-virtual-misc-rfkill.device                                                     >
  sys-devices-virtual-misc-tun.device                                                        >
  sys-devices-virtual-net-docker0.device                                                     >
  sys-module-configfs.device                                                                 >
  sys-module-fuse.device                                                                     >
  sys-module-tun.device                                                                      >
  sys-subsystem-net-devices-docker0.device   

Maintainer CC

No response

System information

❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.48, NixOS, 21.05.1408.9376bf7b342 (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.12`
 - channels(hugosum): `"home-manager-21.05, nixos-21.05.1408.9376bf7b342, unstable-21.11pre301044.87807e64a5e"`
 - channels(root): `"home-manager-21.05, nixos-21.05.1408.9376bf7b342, unstable-21.11pre301439.f9e81f7ad87"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions