2024-01-31 04:31:01 +01:00
|
|
|
{ lib, config, pkgs, inputs, hostname, system, username, desktop, theme, hmStateVersion, ... }: {
|
2023-12-12 11:29:04 +01:00
|
|
|
imports = [
|
|
|
|
# Common configs
|
|
|
|
./common/software/cli/bash.nix
|
|
|
|
./common/software/cli/git.nix
|
|
|
|
./common/software/cli/neovim.nix
|
|
|
|
./common/software/cli/ssh.nix
|
2024-01-05 08:10:10 +01:00
|
|
|
./common/software/cli/btop.nix
|
2023-12-12 11:29:04 +01:00
|
|
|
|
|
|
|
# User configs
|
|
|
|
./users/${username}
|
|
|
|
]
|
|
|
|
++ 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
|
|
|
|
;
|
|
|
|
|
|
|
|
home = {
|
|
|
|
inherit username;
|
|
|
|
stateVersion = hmStateVersion;
|
|
|
|
homeDirectory = "/home/${username}";
|
|
|
|
sessionPath = [ "$HOME/.local/bin" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
overlays = [
|
|
|
|
# Currently in use in the Firefox config
|
|
|
|
inputs.nur.overlay
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|