From b8bfd1f34a9b59dfac6361d40f19186f5e3efcdf Mon Sep 17 00:00:00 2001 From: albert <albert@sysctl.io> Date: Mon, 15 Jul 2024 20:47:20 +0900 Subject: [PATCH] Update images --- home-manager/image.nix | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 home-manager/image.nix diff --git a/home-manager/image.nix b/home-manager/image.nix new file mode 100644 index 00000000..542fc17a --- /dev/null +++ b/home-manager/image.nix @@ -0,0 +1,38 @@ +{ lib, inputs, hostname, username, desktop, hmStateVersion, system, isimage, ... }: { + imports = [ + # Common configs + ./common/software/cli + + # User configs + ./users/${username} + + # Theming + inputs.stylix.homeManagerModules.stylix + ../stylix + + # Secrets + inputs.sops-nix.homeManagerModules.sops + ] + ++ lib.optional (builtins.isString desktop) ./common/software/gui # GUI packages + ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop} # Machine-agnostic desktop configs + ++ lib.optional (builtins.isString desktop) ./hosts/${hostname}/desktops/${desktop} # Machine-specific desktop configs + ++ lib.optional (builtins.isString isiamge) ./common/image-specific.nix # Image specific items + ; + + programs.atuin.enable = mkDefault false; + + news.display = "silent"; + home = { + inherit username; + stateVersion = hmStateVersion; + homeDirectory = "/home/${username}"; + sessionPath = [ "$HOME/.local/bin" ]; + }; + + nixpkgs = { + overlays = [ + # Currently in use in the Firefox config + inputs.nur.overlay + ]; + }; +}