From 617f4f5cfa04e7afc3cd675b3f8a08962dad4cf8 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 22 Aug 2024 08:14:09 -0400 Subject: [PATCH] slateport: override aly hm config --- homes/aly/default.nix | 2 +- hosts/slateport/home.nix | 80 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 76 insertions(+), 6 deletions(-) diff --git a/homes/aly/default.nix b/homes/aly/default.nix index 50284532..fd275b41 100644 --- a/homes/aly/default.nix +++ b/homes/aly/default.nix @@ -83,7 +83,7 @@ self: { tmux.enable = true; vsCodium.enable = true; yazi.enable = true; - zed. enable = true; + zed.enable = true; }; defaultApps = { diff --git a/hosts/slateport/home.nix b/hosts/slateport/home.nix index 1331eaa5..578dd1c6 100644 --- a/hosts/slateport/home.nix +++ b/hosts/slateport/home.nix @@ -1,9 +1,79 @@ { + config, + lib, + pkgs, + self, + ... +}: { home-manager = { - sharedModules = [ - { - xdg.userDirs.music = "/mnt/Media/Music"; - } - ]; + users.aly = lib.mkForce { + imports = [ + self.homeManagerModules.default + self.inputs.agenix.homeManagerModules.default + ]; + + age.secrets = { + backblazeKeyId.file = ../../secrets/aly/backblaze/keyId.age; + backblazeKey.file = ../../secrets/aly/backblaze/key.age; + }; + + home = { + homeDirectory = "/home/aly"; + + packages = with pkgs; [ + browsh + curl + ]; + + stateVersion = "24.05"; + username = "aly"; + }; + + programs = { + git = { + enable = true; + lfs.enable = true; + userName = "Aly Raffauf"; + userEmail = "aly@raffauflabs.com"; + + extraConfig = { + color.ui = true; + github.user = "alyraffauf"; + push.autoSetupRemote = true; + }; + }; + + gitui.enable = true; + helix.defaultEditor = true; + home-manager.enable = true; + + rbw = { + enable = true; + + settings = { + email = "alyraffauf@fastmail.com"; + lock_timeout = 14400; + }; + }; + }; + + systemd.user.startServices = "legacy"; # Needed for auto-mounting agenix secrets. + + ar.home = { + apps = { + backblaze = { + enable = true; + keyIdFile = config.age.secrets.backblazeKeyId.path; + keyFile = config.age.secrets.backblazeKey.path; + }; + + fastfetch.enable = true; + helix.enable = true; + shell.enable = true; + tmux.enable = true; + yazi.enable = true; + }; + }; + }; }; }