rename home/home.nix -> home/base.nix

This commit is contained in:
ant 2025-09-03 12:50:40 +02:00
parent 1b174242d7
commit f2608d0a82
2 changed files with 5 additions and 5 deletions

108
home/base.nix Normal file
View file

@ -0,0 +1,108 @@
{ inputs, config, lib, pkgs, variant, ... }:
{
imports = [
./lf.nix
./fish.nix
./terminal-software.nix
] ++ (if variant != "hs" then
[
./ui.nix
./gui-software.nix
./gaming.nix
./additional-software.nix
]
else []);
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.homeDirectory = "/home/${config.home.username}";
home.stateVersion = "23.05"; # Please read the comment before changing.
home.packages = with pkgs; [
signal-desktop
open-in-mpv
(python313.withPackages (pp: with pp; [
numpy
matplotlib
]))
# bluez
go-mtpfs
xdg-utils
davfs2
sshfs
ghc
yt-dlp
aria2
yazi
ncdu
ripgrep
android-tools
scrcpy
];
home.file = {
".docker/config.json".text = (builtins.toJSON { detachKeys= "ctrl-z,z"; });
};
home.sessionPath = [
"$HOME/.local/bin"
"$HOME/.bin"
];
home.sessionVariables = {
GOPATH = "${config.home.homeDirectory}/.local/share/go";
GOMODCACHE = "${config.home.homeDirectory}/.cache/go/pkg/mod";
CCACHE_MAXSIZE = "100Gi";
} // (if variant == "allegro" then {
TMPDIR = "/home/${config.home.username}/tmp";
GSETTINGS_SCHEMA_DIR = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/gsettings-desktop-schemas-47.1/glib-2.0/schemas";
} else {});
home.keyboard.options = [
"caps:escape"
];
xdg = {
enable = true;
systemDirs.data = [ "${config.home.homeDirectory}/.local/share" ];
userDirs = {
enable = true;
createDirectories = false;
download = "${config.home.homeDirectory}/downloads";
templates = "${config.home.homeDirectory}/templates";
desktop = "${config.home.homeDirectory}";
documents = "${config.home.homeDirectory}";
music = "${config.home.homeDirectory}";
pictures = "${config.home.homeDirectory}";
publicShare = "${config.home.homeDirectory}";
videos = "${config.home.homeDirectory}";
};
mimeApps = {
enable = true;
};
};
programs.home-manager.enable = true;
programs.nh = {
enable = true;
flake = "${config.home.homeDirectory}/nix-system";
};
programs.git = {
enable = true;
aliases = {
co = "checkout";
};
extraConfig = {
pull.rebase = true;
};
};
}