~ruther/nixos-config

ref: 5b1602c8f5563556f28c67d066d1aee7b46e55e7 nixos-config/hosts/laptop-phobos/home.nix -rw-r--r-- 1.4 KiB
5b1602c8 — Frantisek Bohacek chore: update 1 year, 3 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
#  Home-manager configuration for laptop
#
#  flake.nix
#   ├─ ./hosts
#   │   └─ ./laptop
#   │       └─ home.nix *
#   └─ ./modules
#       └─ ./desktop
#           └─ ./bspwm
#              └─ home.nix
#

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

{
  imports =
    [
      ../../modules/desktop/qtile/home.nix # Window Manager
      ../../modules/desktop/gnome/home.nix
    ];

  home = {                                # Specific packages for laptop
    packages = [
      pkgs.distrobox

      # Power Management
      pkgs.acpi

      pkgs.easyeffects
    ];
  };

  systemd.user.services.cbatticon = lib.mkIf config.services.cbatticon.enable {
    Unit = {
      After = lib.mkForce [];
      PartOf = lib.mkForce [ "qtile-services.target" ];
    };
    Install.WantedBy = lib.mkForce [ "qtile-services.target" ];
  };

  systemd.user.services.network-manager-applet = lib.mkIf config.services.network-manager-applet.enable {
    Unit = {
      After = lib.mkForce [];
      PartOf = lib.mkForce [ "qtile-services.target" ];
    };
    Install.WantedBy = lib.mkForce [ "qtile-services.target" ];
  };

  services = {                            # Applets
    network-manager-applet.enable = true; # Network
    cbatticon = {
     enable = true;
     criticalLevelPercent = 10;
     lowLevelPercent = 20;
    };

    easyeffects = {
      enable = true;
    };
  };
}
Do not follow this link