diff --git a/hosts/dell-5590/nixos/configuration.nix b/hosts/dell-5590/nixos/configuration.nix index 6a9d020..6cae867 100644 --- a/hosts/dell-5590/nixos/configuration.nix +++ b/hosts/dell-5590/nixos/configuration.nix @@ -12,7 +12,6 @@ ./services.nix ./packages.nix ../modules/prometheus-node.nix - ./appsmith.nix ]; # Use the systemd-boot EFI boot loader. diff --git a/hosts/dell-5590/nixpkgs/home.nix b/hosts/dell-5590/nixpkgs/home.nix index da60f4f..a9a50ef 100644 --- a/hosts/dell-5590/nixpkgs/home.nix +++ b/hosts/dell-5590/nixpkgs/home.nix @@ -10,6 +10,7 @@ ./mails.nix ./dunst.nix ./bat.nix + ./AstroNvim.nix # ./redshift.nix # ../../../modules/neovim.nix ../../../modules/rust.nix diff --git a/hosts/dell-5590/nixpkgs/packages.nix b/hosts/dell-5590/nixpkgs/packages.nix index 031a4c0..9cdc653 100644 --- a/hosts/dell-5590/nixpkgs/packages.nix +++ b/hosts/dell-5590/nixpkgs/packages.nix @@ -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" ]; } diff --git a/hosts/next/backup.nix b/hosts/next/backup.nix index bc8b51e..475c780 100644 --- a/hosts/next/backup.nix +++ b/hosts/next/backup.nix @@ -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; diff --git a/hosts/next/configuration.nix b/hosts/next/configuration.nix index 87bccd1..ab3232a 100644 --- a/hosts/next/configuration.nix +++ b/hosts/next/configuration.nix @@ -9,6 +9,8 @@ ../modules/navidrome.nix ../modules/transmission.nix ../modules/prometheus-node.nix + ../docker/appsmith.nix + ../docker/baserow.nix ./agenix.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 {}) ]; # age.secrets.secret_restic = { diff --git a/hosts/next/databases.nix b/hosts/next/databases.nix index 0a50f4e..ff7a150 100644 --- a/hosts/next/databases.nix +++ b/hosts/next/databases.nix @@ -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" ]; diff --git a/hosts/x201/nixos/configuration.nix b/hosts/x201/nixos/configuration.nix index 62517b6..8acb98d 100644 --- a/hosts/x201/nixos/configuration.nix +++ b/hosts/x201/nixos/configuration.nix @@ -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 diff --git a/hosts/x201/nixos/dev.nix b/hosts/x201/nixos/dev.nix new file mode 100644 index 0000000..84e3e9f --- /dev/null +++ b/hosts/x201/nixos/dev.nix @@ -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; +# }; + +} diff --git a/hosts/x201/nixpkgs/home.nix b/hosts/x201/nixpkgs/home.nix index 6d2eae5..62a7683 100644 --- a/hosts/x201/nixpkgs/home.nix +++ b/hosts/x201/nixpkgs/home.nix @@ -10,6 +10,7 @@ ./emacs.nix ./i3status.nix ./neovim.nix + ./himalaya.nix ]; home.keyboard = { layout = "fr"; diff --git a/hosts/x201/nixpkgs/packages.nix b/hosts/x201/nixpkgs/packages.nix index 74737ac..5a2aaad 100644 --- a/hosts/x201/nixpkgs/packages.nix +++ b/hosts/x201/nixpkgs/packages.nix @@ -23,13 +23,12 @@ texlive.combined.scheme-full hugo eww - polybar alacritty youtube-dl - barrier zola keepassxc zlib python3 + nodejs ]; } diff --git a/modules/common.nix b/modules/common.nix index b96a1af..fbdf836 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -14,7 +14,7 @@ bat procs plocate - exa + lsd age lsd ];