This commit is contained in:
xunuwu 2024-02-07 19:05:44 +01:00
commit 498f3050d5
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
145 changed files with 2964 additions and 0 deletions

View file

@ -0,0 +1,3 @@
{pkgs, ...}: {
programs.nix-index-database.comma.enable = true;
}

View file

@ -0,0 +1,8 @@
{
imports = [
./git.nix
./direnv.nix
./xdg.nix
./comma.nix
];
}

View file

@ -0,0 +1,7 @@
{
programs.direnv = {
enable = true;
nix-direnv.enable = true;
enableZshIntegration = true;
};
}

View file

@ -0,0 +1,23 @@
{
lib,
config,
...
}: {
programs.git = {
enable = true;
delta.enable = true;
lfs.enable = true;
ignores = ["*~" ".direnv"];
signing = {
key = "${config.home.homeDirectory}/.ssh/id_ed25519";
signByDefault = true;
};
extraConfig.gpg.format = "ssh";
userEmail = "xunuwu@gmail.com";
userName = "xunuwu";
};
}

View file

@ -0,0 +1,26 @@
{
config,
pkgs,
...
}: let
home = config.home.homeDirectory;
in {
xdg = {
enable = true;
cacheHome = config.home.homeDirectory + "/.local/cache";
userDirs = {
enable = true;
createDirectories = true;
desktop = home + "/desktop";
documents = home + "/docs";
download = home + "/down";
music = home + "/music";
pictures = home + "/pics";
publicShare = home + "/share";
videos = home + "/vids";
};
};
home.packages = [pkgs.xdg-utils];
}