Merge branch 'main' of git.atlanticaweb.fr:alexandre/nixos-config
This commit is contained in:
commit
1436c71a30
|
@ -12,7 +12,6 @@
|
||||||
./services.nix
|
./services.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
../modules/prometheus-node.nix
|
../modules/prometheus-node.nix
|
||||||
./appsmith.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
./mails.nix
|
./mails.nix
|
||||||
./dunst.nix
|
./dunst.nix
|
||||||
./bat.nix
|
./bat.nix
|
||||||
|
./AstroNvim.nix
|
||||||
# ./redshift.nix
|
# ./redshift.nix
|
||||||
# ../../../modules/neovim.nix
|
# ../../../modules/neovim.nix
|
||||||
../../../modules/rust.nix
|
../../../modules/rust.nix
|
||||||
|
|
|
@ -48,7 +48,6 @@
|
||||||
neovim
|
neovim
|
||||||
python3
|
python3
|
||||||
mtr
|
mtr
|
||||||
ferdi
|
|
||||||
powertop
|
powertop
|
||||||
unar # like 7z
|
unar # like 7z
|
||||||
nmap
|
nmap
|
||||||
|
@ -60,5 +59,12 @@
|
||||||
vagrant
|
vagrant
|
||||||
zellij
|
zellij
|
||||||
guake
|
guake
|
||||||
|
dig
|
||||||
|
vlc
|
||||||
|
ferdi
|
||||||
|
pinta
|
||||||
|
];
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
"ferdi-5.8.1"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,20 @@
|
||||||
{config, pkgs, ...}:
|
{config, pkgs, ...}:
|
||||||
{
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
restic
|
||||||
|
];
|
||||||
services.restic.backups = {
|
services.restic.backups = {
|
||||||
localbackup = {
|
remotebackup = {
|
||||||
initialize = true;
|
initialize = true;
|
||||||
passwordFile = "/run/restic_pass";
|
passwordFile = "/run/restic_pass";
|
||||||
paths = [ "/var/lib/nextcloud/data/" "/var/backup/postgresql" ];
|
paths = [ "/var/lib/nextcloud/data/" "/var/backup/postgresql" ];
|
||||||
repository = "rest:https://back.atlanticaweb.fr/Nextcloud";
|
#repository = "rest:https://back.atlanticaweb.fr/Nextcloud";
|
||||||
timerConfig = {
|
repository = "sftp:u329746@u329746.your-storagebox.de:/home/Nextcloud";
|
||||||
OnCalendar = "02:05";
|
timerConfig = {
|
||||||
RandomizedDelaySec = "5h";
|
OnCalendar = "02:05";
|
||||||
};
|
RandomizedDelaySec = "5h";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
services.postgresqlBackup = {
|
services.postgresqlBackup = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
../modules/navidrome.nix
|
../modules/navidrome.nix
|
||||||
../modules/transmission.nix
|
../modules/transmission.nix
|
||||||
../modules/prometheus-node.nix
|
../modules/prometheus-node.nix
|
||||||
|
../docker/appsmith.nix
|
||||||
|
../docker/baserow.nix
|
||||||
./agenix.nix
|
./agenix.nix
|
||||||
# <agenix/modules/age.nix>
|
# <agenix/modules/age.nix>
|
||||||
];
|
];
|
||||||
|
@ -22,8 +24,11 @@
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUA1RW6JwZasspAp8qmFRFnlV5WXjhLfStAAkM+KYLv lucazeau.alexandre@gmail.com"
|
"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.qemuGuest.enable = true;
|
||||||
|
|
||||||
|
services.shiori.enable = true;
|
||||||
|
|
||||||
# environment.systemPackages = [ (pkgs.callPackage <agenix/pkgs/agenix.nix> {}) ];
|
# environment.systemPackages = [ (pkgs.callPackage <agenix/pkgs/agenix.nix> {}) ];
|
||||||
# age.secrets.secret_restic = {
|
# age.secrets.secret_restic = {
|
||||||
|
|
|
@ -6,7 +6,7 @@ networking.firewall.allowedTCPPorts = [ 5432 5050 ];
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableTCPIP = 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
|
# Ensure the database, user, and permissions always exist
|
||||||
ensureDatabases = [ "pizzajoffredb" ];
|
ensureDatabases = [ "pizzajoffredb" ];
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
./services.nix
|
./services.nix
|
||||||
./scanner.nix
|
./scanner.nix
|
||||||
../modules/common.nix
|
../modules/common.nix
|
||||||
|
./dev.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
# Use the GRUB 2 boot loader.
|
||||||
|
@ -87,7 +88,6 @@ fonts = {
|
||||||
terminus_font
|
terminus_font
|
||||||
proggyfonts
|
proggyfonts
|
||||||
dejavu_fonts
|
dejavu_fonts
|
||||||
font-awesome-ttf
|
|
||||||
font-awesome
|
font-awesome
|
||||||
nerdfonts
|
nerdfonts
|
||||||
source-code-pro
|
source-code-pro
|
||||||
|
|
|
@ -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;
|
||||||
|
# };
|
||||||
|
|
||||||
|
}
|
|
@ -10,6 +10,7 @@
|
||||||
./emacs.nix
|
./emacs.nix
|
||||||
./i3status.nix
|
./i3status.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
|
./himalaya.nix
|
||||||
];
|
];
|
||||||
home.keyboard = {
|
home.keyboard = {
|
||||||
layout = "fr";
|
layout = "fr";
|
||||||
|
|
|
@ -23,13 +23,12 @@
|
||||||
texlive.combined.scheme-full
|
texlive.combined.scheme-full
|
||||||
hugo
|
hugo
|
||||||
eww
|
eww
|
||||||
polybar
|
|
||||||
alacritty
|
alacritty
|
||||||
youtube-dl
|
youtube-dl
|
||||||
barrier
|
|
||||||
zola
|
zola
|
||||||
keepassxc
|
keepassxc
|
||||||
zlib
|
zlib
|
||||||
python3
|
python3
|
||||||
|
nodejs
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
bat
|
bat
|
||||||
procs
|
procs
|
||||||
plocate
|
plocate
|
||||||
exa
|
lsd
|
||||||
age
|
age
|
||||||
lsd
|
lsd
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue