added more programs
This commit is contained in:
@@ -109,6 +109,7 @@ in { # Remember to close this bracket at the end of the document
|
||||
mypaint-brushes # but it's got some
|
||||
mypaint-brushes1 # nice damn brushes
|
||||
unstable.pureref # create inspiration/reference boards
|
||||
unstable.gimp # the coolest bestest art program to never exist
|
||||
|
||||
# Gaming
|
||||
lutris # game/emulator manager
|
||||
@@ -182,9 +183,15 @@ in { # Remember to close this bracket at the end of the document
|
||||
fzf # fuzzy finder! super cool and useful
|
||||
ripgrep # modern grep
|
||||
languagetool # proofreader for English. check if works without the service
|
||||
graphviz # graphs
|
||||
# doom everywhere
|
||||
xorg.xwininfo
|
||||
xdotool
|
||||
|
||||
# development environment
|
||||
nix-direnv # nix implementation of direnv
|
||||
nix-direnv # creates ephimeral environments
|
||||
direnv # manages development environment
|
||||
# editorconfig-checker # rules for contributing
|
||||
exercism # learn to code
|
||||
|
||||
# SH
|
||||
@@ -193,6 +200,9 @@ in { # Remember to close this bracket at the end of the document
|
||||
shellcheck # linting
|
||||
shfmt # a shell parser and formatter
|
||||
nodePackages.bash-language-server # LSP support
|
||||
file # required by my tasks script?
|
||||
gnome.zenity # dependency of my scripts
|
||||
xclip # manipulate clipboard from scripts
|
||||
|
||||
# NIX
|
||||
nixfmt # linting
|
||||
@@ -209,8 +219,7 @@ in { # Remember to close this bracket at the end of the document
|
||||
|
||||
# JS
|
||||
# jq # linting
|
||||
# Node-js
|
||||
# nodePackages.pnpm
|
||||
nodejs # not as bad as I thought
|
||||
|
||||
gnome.gnome-tweaks # tweaks for the gnome desktop environment
|
||||
|
||||
@@ -255,6 +264,7 @@ in { # Remember to close this bracket at the end of the document
|
||||
pylint # bug and style checker for python
|
||||
pytest # framework for writing tests
|
||||
speedtest-cli # check internet speed from the comand line
|
||||
editorconfig # follow rules of contributin
|
||||
|
||||
]) ++ (with pkgs.fishPlugins; [
|
||||
sponge # keep history clean from typos
|
||||
@@ -311,6 +321,7 @@ in { # Remember to close this bracket at the end of the document
|
||||
set lw $list_root/watch.txt
|
||||
set li $list_root/instant.txt
|
||||
set lc $list_root/comic.txt
|
||||
set command_timeout = 30
|
||||
|
||||
set GPG_TTY (tty)
|
||||
|
||||
@@ -340,66 +351,71 @@ in { # Remember to close this bracket at the end of the document
|
||||
};
|
||||
};
|
||||
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
config = {
|
||||
# map-syntax = [ "*.jenkinsfile:Groovy" "*.props:Java Properties" ];
|
||||
pager = "less -FR";
|
||||
theme = "base16";
|
||||
programs = {
|
||||
bat = {
|
||||
enable = true;
|
||||
config = {
|
||||
# map-syntax = [ "*.jenkinsfile:Groovy" "*.props:Java Properties" ];
|
||||
pager = "less -FR";
|
||||
theme = "base16";
|
||||
};
|
||||
};
|
||||
git = {
|
||||
enable = true;
|
||||
userName = "Danilo Reyes";
|
||||
userEmail = "CaptainJawZ@outlook.com";
|
||||
};
|
||||
gpg = {
|
||||
enable = true;
|
||||
homedir = "${config.xdg.dataHome}/gnupg";
|
||||
};
|
||||
htop = {
|
||||
enable = true;
|
||||
package = pkgs.htop-vim;
|
||||
};
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
xdg = {
|
||||
enable = true;
|
||||
userName = "Danilo Reyes";
|
||||
userEmail = "CaptainJawZ@outlook.com";
|
||||
userDirs = {
|
||||
enable = true;
|
||||
# createDirectories = true;
|
||||
desktop = "${config.home.homeDirectory}";
|
||||
documents = "${config.home.homeDirectory}/Documents";
|
||||
download = "${config.home.homeDirectory}/Downloads";
|
||||
music = "${config.home.homeDirectory}/Music";
|
||||
pictures = "${config.home.homeDirectory}/Pictures";
|
||||
# publicShare = "${config.home.homeDirectory}/.local/hd/Public";
|
||||
templates = "${config.home.homeDirectory}/.local/share/Templates";
|
||||
videos = "${config.home.homeDirectory}/Videos";
|
||||
};
|
||||
configFile = {
|
||||
"wgetrc".source = ./dotfiles/wget/wgetrc;
|
||||
"configstore/update-notifier-npm-check.json".source =
|
||||
./dotfiles/npm/update-notifier-npm-check.json;
|
||||
"npm/npmrc".source = ./dotfiles/npm/npmrc;
|
||||
"gallery-dl/config.json".source = ./dotfiles/gallery-dl/config.json;
|
||||
"htop/htoprc".source = ./dotfiles/htop/htoprc;
|
||||
};
|
||||
};
|
||||
|
||||
programs.gpg = {
|
||||
enable = true;
|
||||
homedir = "${config.xdg.dataHome}/gnupg";
|
||||
services = {
|
||||
emacs = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
package = pkgs.emacs;
|
||||
};
|
||||
};
|
||||
|
||||
programs.htop = {
|
||||
enable = true;
|
||||
package = pkgs.htop-vim;
|
||||
};
|
||||
xdg.configFile."htop/htoprc".source = ./dotfiles/htop/htoprc;
|
||||
|
||||
xdg = { enable = true; };
|
||||
xdg.userDirs = {
|
||||
enable = true;
|
||||
# createDirectories = true;
|
||||
desktop = "${config.home.homeDirectory}";
|
||||
documents = "${config.home.homeDirectory}/Documents";
|
||||
download = "${config.home.homeDirectory}/Downloads";
|
||||
music = "${config.home.homeDirectory}/Music";
|
||||
pictures = "${config.home.homeDirectory}/Pictures";
|
||||
# publicShare = "${config.home.homeDirectory}/.local/hd/Public";
|
||||
templates = "${config.home.homeDirectory}/.local/share/Templates";
|
||||
videos = "${config.home.homeDirectory}/Videos";
|
||||
};
|
||||
|
||||
xdg.configFile = {
|
||||
"wgetrc".source = ./dotfiles/wget/wgetrc;
|
||||
"configstore/update-notifier-npm-check.json".source =
|
||||
./dotfiles/npm/update-notifier-npm-check.json;
|
||||
"npm/npmrc".source = ./dotfiles/npm/npmrc;
|
||||
"gallery-dl/config.json".source = ./dotfiles/gallery-dl/config.json;
|
||||
};
|
||||
|
||||
# services.mpd-discord-rpc.enable = true;
|
||||
# services.mpdris2 = {
|
||||
# enable = true;
|
||||
# multimediaKeys = true;
|
||||
# mpd.host = "localhost";
|
||||
# };
|
||||
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ wget docker-compose ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget
|
||||
neovim
|
||||
docker-compose # easy way to migrate my docker anywhere!
|
||||
];
|
||||
|
||||
environment.sessionVariables = rec {
|
||||
environment.variables = rec {
|
||||
# PATH
|
||||
XDG_CACHE_HOME = "\${HOME}/.cache";
|
||||
XDG_CONFIG_HOME = "\${HOME}/.config";
|
||||
@@ -431,8 +447,7 @@ in { # Remember to close this bracket at the end of the document
|
||||
CUDA_CACHE_PATH = "\${XDG_CACHE_HOME}/nv";
|
||||
# GBM_BACKEND = "nvidia-drm";
|
||||
# "__GLX_VENDOR_LIBRARY_NAME" = "nvidia";
|
||||
# FISH
|
||||
fisher_path = "\${XDG_CONFIG_HOME}/fish/fisher";
|
||||
|
||||
# Themes
|
||||
# GTK_THEME = "Adwaita:light";
|
||||
# QT_QPA_PLATFORMTHEME = "adwaita-dark";
|
||||
@@ -444,7 +459,7 @@ in { # Remember to close this bracket at the end of the document
|
||||
"\${XDG_CONFIG_HOME}/emacs/bin"
|
||||
"\${XDG_DATA_HOME}/npm/bin"
|
||||
"\${PNPM_HOME}"
|
||||
# "\${SCRIPTS}"
|
||||
"\${SCRIPTS}"
|
||||
];
|
||||
};
|
||||
|
||||
@@ -454,6 +469,35 @@ in { # Remember to close this bracket at the end of the document
|
||||
enableNvidia = true;
|
||||
};
|
||||
|
||||
snapraid = {
|
||||
enable = true;
|
||||
touchBeforeSync = true;
|
||||
sync.interval = "02:00";
|
||||
scrub = {
|
||||
plan = 10;
|
||||
olderThan = 10;
|
||||
interval = "4:00";
|
||||
};
|
||||
parityFiles = [ "/mnt/parity/snapraid.parity" ];
|
||||
extraConfig = ''
|
||||
autosave 50
|
||||
'';
|
||||
exclude = [
|
||||
"/tmp/"
|
||||
"/lost+found/"
|
||||
"/multimedia/downloads/"
|
||||
"/scrapping/nextcloud/"
|
||||
];
|
||||
dataDisks = {
|
||||
d1 = "/mnt/disk1/";
|
||||
d2 = "/mnt/disk2/";
|
||||
};
|
||||
contentFiles = [
|
||||
"/var/snapraid.content"
|
||||
"/mnt/disk1/snapraid.content"
|
||||
"/mnt/disk2/snapraid.content"
|
||||
];
|
||||
};
|
||||
programs = {
|
||||
mtr.enable = true;
|
||||
gnupg.agent = {
|
||||
@@ -470,11 +514,6 @@ in { # Remember to close this bracket at the end of the document
|
||||
|
||||
services = {
|
||||
printing.enable = true;
|
||||
emacs = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
package = pkgs.emacs;
|
||||
};
|
||||
fstrim.enable = true;
|
||||
btrfs.autoScrub = {
|
||||
enable = true;
|
||||
@@ -487,6 +526,29 @@ in { # Remember to close this bracket at the end of the document
|
||||
udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
|
||||
};
|
||||
|
||||
systemd.services = {
|
||||
"docker-compose" = {
|
||||
enable = true;
|
||||
restartIfChanged = true;
|
||||
description = "Start docker-compose servers";
|
||||
after = [ "docker.service" "docker.socket" ];
|
||||
requires = [ "docker.service" "docker.socket" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
environment = {
|
||||
FILE = "/home/jawz/Development/Docker/docker-compose.yml";
|
||||
};
|
||||
path = [ pkgs.docker-compose ];
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
# Type = "simple";
|
||||
RestartSec = 30;
|
||||
ExecStart =
|
||||
"${pkgs.docker-compose}/bin/docker-compose -f \${FILE} up --remove-orphans";
|
||||
ExecStop = "${pkgs.docker-compose}docker-compose -f \${FILE} down";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
|
||||
Reference in New Issue
Block a user