From ab0cca019bd574b396cf2ccc9ca6a5531bd87856 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 1 Jul 2022 10:06:37 -0700 Subject: feat(wpcarro/nixos): Support laptop.nix module Define shared laptop configuration. The primary impetus of this change was `powerManagement.powertop`. Change-Id: Icbd04a252005ab391dc8f7d5ebf0968af91f2e0c Reviewed-on: https://cl.tvl.fyi/c/depot/+/5910 Tested-by: BuildkiteCI Reviewed-by: wpcarro Autosubmit: wpcarro --- users/wpcarro/nixos/marcus/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'users/wpcarro/nixos/marcus/default.nix') diff --git a/users/wpcarro/nixos/marcus/default.nix b/users/wpcarro/nixos/marcus/default.nix index 0dc4fc57f5e2..db3472926a22 100644 --- a/users/wpcarro/nixos/marcus/default.nix +++ b/users/wpcarro/nixos/marcus/default.nix @@ -4,6 +4,8 @@ let inherit (depot.users) wpcarro; + usermod = name: depot.path.origSrc + ("/users/wpcarro/nixos/modules/${name}"); + wpcarrosEmacs = wpcarro.emacs.nixos { load = [ ./marcus.el ]; }; @@ -18,6 +20,7 @@ in imports = [ (depot.path.origSrc + "/users/wpcarro/nixos/marcus/hardware.nix") (pkgs.home-manager.src + "/nixos") + (usermod "laptop.nix") ]; # Use the TVL binary cache @@ -111,9 +114,7 @@ in }; }; - programs = wpcarro.common.programs // { - light.enable = true; - }; + programs = wpcarro.common.programs; environment.variables = { EDITOR = "emacsclient"; -- cgit 1.4.1