2024-03-17 19:18:53 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
config,
|
|
|
|
system,
|
2024-07-31 12:19:42 +02:00
|
|
|
lib,
|
2024-03-17 19:18:53 +01:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
imports = [ ./modules/latex.nix ];
|
|
|
|
home.stateVersion = "23.11";
|
|
|
|
|
|
|
|
schmittlauch = {
|
|
|
|
packages = {
|
|
|
|
graphics = true;
|
|
|
|
multimedia = true;
|
|
|
|
nixHelpers = true;
|
|
|
|
devTools = true;
|
|
|
|
pythonTools = true;
|
|
|
|
games = true;
|
2024-04-07 01:31:11 +02:00
|
|
|
desktopLinux = true;
|
2024-03-17 19:18:53 +01:00
|
|
|
kde = true;
|
|
|
|
};
|
|
|
|
latex.guiTools = true;
|
|
|
|
};
|
|
|
|
|
2024-03-18 11:06:21 +01:00
|
|
|
# for backwards compatibility
|
|
|
|
services.lorri.enable = true;
|
|
|
|
|
2024-03-17 19:18:53 +01:00
|
|
|
programs.git =
|
|
|
|
let
|
|
|
|
# TODO profile specific
|
2024-07-31 12:19:42 +02:00
|
|
|
contacts = import "${inputs.mysecrets}/contacts.nix" { inherit lib; };
|
2024-03-17 19:18:53 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
includes =
|
|
|
|
[
|
|
|
|
{
|
|
|
|
condition = "gitdir:~/Seafile/Studium/";
|
|
|
|
contents = {
|
2024-07-31 12:19:42 +02:00
|
|
|
user.name = contacts.personal.name;
|
|
|
|
user.email = contacts.uni.email;
|
2024-03-17 19:18:53 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
condition = "gitdir:~/src/nixpkgs/";
|
|
|
|
contents = {
|
|
|
|
user.name = "Trolli Schmittlauch";
|
2024-07-31 12:19:42 +02:00
|
|
|
user.email = contacts.nixOs.email;
|
2024-03-17 19:18:53 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
]
|
|
|
|
# set default name for several other common locations
|
|
|
|
++
|
|
|
|
map
|
|
|
|
(dir: {
|
|
|
|
condition = "gitdir:${dir}";
|
|
|
|
contents = {
|
2024-07-31 12:19:42 +02:00
|
|
|
user = {
|
|
|
|
inherit (contacts.schmittlauch) email name;
|
|
|
|
};
|
2024-03-17 19:18:53 +01:00
|
|
|
};
|
|
|
|
})
|
|
|
|
[
|
|
|
|
"~/src/"
|
|
|
|
"~/bin/"
|
|
|
|
"~/tmp/"
|
|
|
|
"~/nixconfigs/"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
|
|
|
#enableSshSupport = true;
|
2024-06-11 07:36:07 +02:00
|
|
|
pinentryPackage = pkgs.pinentry-qt;
|
2024-03-17 19:18:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
# ssh host config
|
|
|
|
matchBlocks = (import "${inputs.mysecrets}/ssh_hosts.nix").privateHosts;
|
|
|
|
};
|
|
|
|
|
|
|
|
# media button control support from Bluetooth devices
|
|
|
|
services.mpris-proxy.enable = true;
|
|
|
|
}
|