further modularization + systemd template

This commit is contained in:
2024-05-11 21:35:31 -06:00
parent 0380c32b9a
commit 02d600cc73
16 changed files with 149 additions and 85 deletions

View File

@@ -10,7 +10,6 @@ in {
./hardware-configuration.nix
../../base.nix
../../gnome.nix
# ../../services/systemd-user/tasks.nix
];
my = {
emacs.enable = true;
@@ -22,18 +21,21 @@ in {
internet.enable = true;
multimedia.enable = true;
office.enable = true;
# misc.enable = true;
misc.enable = true;
};
dev = {
haskell.enable = true;
nix.enable = true;
python.enable = true;
gameDev.enable = true;
sh.enable = true;
javascript.enable = false;
docker.enable = false;
};
shell = {
exercism.enable = true;
# multimedia.enable = true;
# tools.enable = true;
multimedia.enable = true;
tools.enable = true;
};
services = {
network.enable = true;
@@ -41,6 +43,7 @@ in {
printing.enable = true;
sound.enable = true;
};
scripts = { tasks.enable = true; };
};
networking = {
@@ -104,7 +107,6 @@ in {
torrenttools # create torrent files from the terminal!
vcsi # video thumbnails for torrents, can I replace it with ^?
(writeScriptBin "tasks" (builtins.readFile ../../scripts/tasks.sh))
(writeScriptBin "ffmpeg4discord"
(builtins.readFile ../../scripts/ffmpeg4discord.py))
(writeScriptBin "ffmpreg"
@@ -115,18 +117,6 @@ in {
(writeScriptBin "pika-list"
(builtins.readFile ../../scripts/pika-list.sh))
# SH
bashdb # autocomplete
shellcheck # linting
shfmt # a shell parser and formatter
# DOCKER
dockfmt
# JS
nodejs # not as bad as I thought
jq # linting
]) ++ (with pkgs.python3Packages;
[
(buildPythonApplication rec {
@@ -137,20 +127,8 @@ in {
buildInputs = [ setuptools ];
propagatedBuildInputs = [ pyyaml types-pyyaml ];
})
]) ++ (with pkgs.nodePackages; [
# Language servers
dockerfile-language-server-nodejs
yaml-language-server
bash-language-server
vscode-json-languageserver
pyright
markdownlint-cli # Linter
prettier # Linter
pnpm # Package manager
]);
}; # <--- end of package list
};
};
};