Merge branch 'main' of git.atlanticaweb.fr:alexandre/nixos-config

This commit is contained in:
Alexandre LUCAZEAU 2023-01-07 19:29:28 +00:00
commit 1436c71a30
11 changed files with 64 additions and 17 deletions

View File

@ -12,7 +12,6 @@
./services.nix
./packages.nix
../modules/prometheus-node.nix
./appsmith.nix
];
# Use the systemd-boot EFI boot loader.

View File

@ -10,6 +10,7 @@
./mails.nix
./dunst.nix
./bat.nix
./AstroNvim.nix
# ./redshift.nix
# ../../../modules/neovim.nix
../../../modules/rust.nix

View File

@ -48,7 +48,6 @@
neovim
python3
mtr
ferdi
powertop
unar # like 7z
nmap
@ -60,5 +59,12 @@
vagrant
zellij
guake
dig
vlc
ferdi
pinta
];
nixpkgs.config.permittedInsecurePackages = [
"ferdi-5.8.1"
];
}

View File

@ -1,16 +1,20 @@
{config, pkgs, ...}:
{
environment.systemPackages = with pkgs; [
restic
];
services.restic.backups = {
localbackup = {
initialize = true;
passwordFile = "/run/restic_pass";
paths = [ "/var/lib/nextcloud/data/" "/var/backup/postgresql" ];
repository = "rest:https://back.atlanticaweb.fr/Nextcloud";
timerConfig = {
OnCalendar = "02:05";
RandomizedDelaySec = "5h";
};
remotebackup = {
initialize = true;
passwordFile = "/run/restic_pass";
paths = [ "/var/lib/nextcloud/data/" "/var/backup/postgresql" ];
#repository = "rest:https://back.atlanticaweb.fr/Nextcloud";
repository = "sftp:u329746@u329746.your-storagebox.de:/home/Nextcloud";
timerConfig = {
OnCalendar = "02:05";
RandomizedDelaySec = "5h";
};
};
};
services.postgresqlBackup = {
enable = true;

View File

@ -9,6 +9,8 @@
../modules/navidrome.nix
../modules/transmission.nix
../modules/prometheus-node.nix
../docker/appsmith.nix
../docker/baserow.nix
./agenix.nix
# <agenix/modules/age.nix>
];
@ -22,8 +24,11 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUA1RW6JwZasspAp8qmFRFnlV5WXjhLfStAAkM+KYLv lucazeau.alexandre@gmail.com"
];
networking.firewall.allowedTCPPorts = [ 80 443 22 9002 4533];
programs.ssh.extraConfig = "Host u329746.your-storagebox.de\n Hostname u329746.your-storagebox.de\n Port 23\n user u329746\n IdentityFile /home/alexandre/.ssh/id_ed25519-perso";
networking.firewall.allowedTCPPorts = [ 80 443 22 9002 4533 5050 8080];
services.qemuGuest.enable = true;
services.shiori.enable = true;
# environment.systemPackages = [ (pkgs.callPackage <agenix/pkgs/agenix.nix> {}) ];
# age.secrets.secret_restic = {

View File

@ -6,7 +6,7 @@ networking.firewall.allowedTCPPorts = [ 5432 5050 ];
services.postgresql = {
enable = true;
enableTCPIP = true;
authentication = "host all all 192.168.0.0/16 trust";
authentication = "host all all 192.168.0.0/16 trust \nhost all all 10.88.0.0/16 trust";
# Ensure the database, user, and permissions always exist
ensureDatabases = [ "pizzajoffredb" ];

View File

@ -12,6 +12,7 @@
./services.nix
./scanner.nix
../modules/common.nix
./dev.nix
];
# Use the GRUB 2 boot loader.
@ -87,7 +88,6 @@ fonts = {
terminus_font
proggyfonts
dejavu_fonts
font-awesome-ttf
font-awesome
nerdfonts
source-code-pro

32
hosts/x201/nixos/dev.nix Normal file
View File

@ -0,0 +1,32 @@
{config, pkgs, ...}:
{
# home.packages = with pkgs; [
# nodejs
# ];
# Enable PostgreSQL
services.postgresql = {
enable = true;
package = pkgs.postgresql_14 ;
enableTCPIP = true;
authentication = "
local all all trust
host all all 127.0.0.1/32 trust
";
# Ensure the database, user, and permissions always exist
ensureDatabases = [ "pizzajoffredb" ];
ensureUsers = [
{ name = "pizzajoffre";
ensurePermissions."DATABASE devpj" = "ALL PRIVILEGES";
}
];
};
# services.pgadmin = {
# openFirewall = true;
# enable = true;
# initialEmail = "pizzajoffre@gmail.com";
# initialPasswordFile = /run/pgadmin;
# };
}

View File

@ -10,6 +10,7 @@
./emacs.nix
./i3status.nix
./neovim.nix
./himalaya.nix
];
home.keyboard = {
layout = "fr";

View File

@ -23,13 +23,12 @@
texlive.combined.scheme-full
hugo
eww
polybar
alacritty
youtube-dl
barrier
zola
keepassxc
zlib
python3
nodejs
];
}

View File

@ -14,7 +14,7 @@
bat
procs
plocate
exa
lsd
age
lsd
];