From 3681b0ce1d841e120a7af15ea998b0509669c993 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 28 Dec 2021 18:31:28 -0400 Subject: feat(wpcarro/marcus): Support home-manager For now: - git confg - picom: X compositor - dunst: system notifications (not working for quassel) I still need to port various configs and ensure I support both gLinux and NixOS machines. Change-Id: I31a635eaacac25ef6219e079fc968d2ece026a5f Reviewed-on: https://cl.tvl.fyi/c/depot/+/4736 Reviewed-by: wpcarro Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/nixos/marcus/default.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'users/wpcarro/nixos') diff --git a/users/wpcarro/nixos/marcus/default.nix b/users/wpcarro/nixos/marcus/default.nix index f2be266c8fcd..fb4442c6ccd9 100644 --- a/users/wpcarro/nixos/marcus/default.nix +++ b/users/wpcarro/nixos/marcus/default.nix @@ -13,6 +13,7 @@ let in { imports = [ (depot.path + "/users/wpcarro/nixos/marcus/hardware.nix") + "${pkgs.home-manager.src}/nixos" ]; # Use the TVL binary cache @@ -102,6 +103,34 @@ in { VISUAL = "emacsclient"; }; + home-manager.useGlobalPkgs = true; + home-manager.users.wpcarro = { config, lib, ... }: { + programs.git = { + enable = true; + userName = "William Carroll"; + userEmail = "wpcarro@gmail.com"; + extraConfig = { + pull.rebase = true; + }; + }; + + services.picom = { + enable = true; + vSync = true; + backend = "glx"; + }; + + services.dunst.enable = true; + xdg.configFile."dunst/dunstrc" = { + source = wpcarro.dotfiles.dunstrc; + onChange = '' + ${pkgs.procps}/bin/pkill -u "$USER" ''${VERBOSE+-e} dunst || true + ''; + }; + + systemd.user.startServices = true; + }; + environment.systemPackages = wpcarro.common.shell-utils ++ (with pkgs; [ -- cgit 1.4.1