Tiziano: access to s3 servers

This commit is contained in:
Filippo Berto 2023-07-29 17:24:26 +02:00
parent 669c45203b
commit 3e1b7adfc8
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
23 changed files with 352 additions and 177 deletions

View file

@ -1,4 +1,10 @@
{ pkgs, config, ... }: {
age.secrets = {
garage_bertof_baldur_key = { file = ../../secrets/garage_bertof_baldur_key.age; owner = "bertof"; };
garage_tiziano_baldur_key = { file = ../../secrets/garage_tiziano_baldur_key.age; owner = "tiziano"; };
};
boot = {
growPartition = true;
kernelParams = [ "console=ttyS0" "panic=1" "boot.panic_on_fail" ];

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ pkgs, nixosConfig, ... }: {
home = {
language.base = "it_IT.UTF-8";
keyboard = {
@ -26,5 +26,23 @@
# ../../modules/hm/noti.nix
];
systemd.user.services.garage-home-s3 = {
Unit = {
After = [ "network.target" "network-online.target" "local-fs.target" ];
AssertPathIsDirectory = "/home/bertof/s3";
AssertPathIsReadWrite = "/home/bertof/s3";
Description = "Mount S3 bucket in bertof's home";
Wants = [ "network.target" "network-online.target" ];
};
Service = {
ExecStart = "${pkgs.s3fs}/bin/s3fs -f -d bertof /home/bertof/s3 -o passwd_file=${nixosConfig.age.secrets.garage_bertof_baldur_key.path},use_path_request_style,url=http://localhost:3900";
Type = "exec";
};
Install = {
WantedBy = [ "default.target" ];
};
};
home.stateVersion = "22.05";
}

View file

@ -0,0 +1,35 @@
{ pkgs, nixosConfig, ... }: {
home = {
language.base = "it_IT.UTF-8";
keyboard = {
layout = "it";
options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" ];
};
};
systemd.user.services.garage-home-s3 = {
Unit = {
After = [ "network.target" "network-online.target" "local-fs.target" ];
AssertPathIsDirectory = "/home/tiziano/s3";
AssertPathIsReadWrite = "/home/tiziano/s3";
Description = "Mount S3 bucket in tiziano's home";
Wants = [ "network.target" "network-online.target" ];
};
Service = {
ExecStart = "${pkgs.s3fs}/bin/s3fs -f -d tiziano /home/tiziano/s3 -o passwd_file=${nixosConfig.age.secrets.garage_tiziano_baldur_key.path},use_path_request_style,url=http://localhost:3900";
Type = "exec";
};
Install = {
WantedBy = [ "default.target" ];
};
};
imports = [
../../modules/hm/__basic.nix
../../modules/hm/lf.nix
../../modules/hm/shell_aliases.nix
];
home.stateVersion = "23.05";
}

View file

@ -1,5 +1,11 @@
{ pkgs, ... }: {
age.secrets = {
garage_bertof_freya_key = { file = ../../secrets/garage_bertof_freya_key.age; owner = "bertof"; };
# garage_tiziano_loki_key = { file = ../../secrets/garage_tiziano_loki_key.age; owner = "tiziano"; };
};
console = { font = "Lat2-Terminus16"; keyMap = "it"; };
environment = {

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ pkgs, nixosConfig, ... }: {
home = {
language.base = "it_IT.UTF-8";
keyboard = {
@ -10,6 +10,24 @@
cava gallery-dl procps wireguard-tools httpie;
};
};
systemd.user.services.garage-home-s3 = {
Unit = {
After = [ "network.target" "network-online.target" "local-fs.target" ];
AssertPathIsDirectory = "/home/bertof/s3";
AssertPathIsReadWrite = "/home/bertof/s3";
Description = "Mount S3 bucket in bertof's home";
Wants = [ "network.target" "network-online.target" ];
};
Service = {
ExecStart = "${pkgs.s3fs}/bin/s3fs -f -d bertof /home/bertof/s3 -o passwd_file=${nixosConfig.age.secrets.garage_bertof_freya_key.path},use_path_request_style,url=http://localhost:3900";
Type = "exec";
};
Install = {
WantedBy = [ "default.target" ];
};
};
imports = [
../../modules/hm/__basic.nix
@ -18,7 +36,7 @@
../../modules/hm/helix.nix
../../modules/hm/kitty.nix
../../modules/hm/lf.nix
../../modules/hm/spotifyd.nix
# ../../modules/hm/spotifyd.nix
../../modules/hm/syncthing.nix
# ../../modules/hm/xidlehook.nix
];

View file

@ -1,5 +1,11 @@
{ pkgs, lib, ... }:
with lib; {
age.secrets = {
garage_bertof_loki_key = { file = ../../secrets/garage_bertof_loki_key.age; owner = "bertof"; };
garage_tiziano_loki_key = { file = ../../secrets/garage_tiziano_loki_key.age; owner = "tiziano"; };
};
boot = {
binfmt.emulatedSystems = [ "armv7l-linux" "aarch64-linux" ];
# kernelPackages = pkgs.linuxPackages_latest;

View file

@ -1,4 +1,4 @@
{
{ pkgs, nixosConfig, ... }: {
home = {
language.base = "it_IT.UTF-8";
keyboard = {
@ -6,6 +6,24 @@
options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" ];
};
};
systemd.user.services.garage-home-s3 = {
Unit = {
After = [ "network.target" "network-online.target" "local-fs.target" ];
AssertPathIsDirectory = "/home/bertof/s3";
AssertPathIsReadWrite = "/home/bertof/s3";
Description = "Mount S3 bucket in bertof's home";
Wants = [ "network.target" "network-online.target" ];
};
Service = {
ExecStart = "${pkgs.s3fs}/bin/s3fs -f -d bertof /home/bertof/s3 -o passwd_file=${nixosConfig.age.secrets.garage_bertof_loki_key.path},use_path_request_style,url=http://localhost:3900";
Type = "exec";
};
Install = {
WantedBy = [ "default.target" ];
};
};
imports = [
../../modules/hm/__basic.nix

View file

@ -1,4 +1,4 @@
{
{ pkgs, nixosConfig, ... }: {
home = {
language.base = "it_IT.UTF-8";
keyboard = {
@ -6,18 +6,30 @@
options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" ];
};
};
systemd.user.services.garage-home-s3 = {
Unit = {
After = [ "network.target" "network-online.target" "local-fs.target" ];
AssertPathIsDirectory = "/home/tiziano/s3";
AssertPathIsReadWrite = "/home/tiziano/s3";
Description = "Mount S3 bucket in tiziano's home";
Wants = [ "network.target" "network-online.target" ];
};
Service = {
ExecStart = "${pkgs.s3fs}/bin/s3fs -f -d tiziano /home/tiziano/s3 -o passwd_file=${nixosConfig.age.secrets.garage_tiziano_loki_key.path},use_path_request_style,url=http://localhost:3900";
Type = "exec";
};
Install = {
WantedBy = [ "default.target" ];
};
};
imports = [
../../modules/hm/__basic.nix
../../modules/hm/helix.nix
../../modules/hm/kakoune.nix
../../modules/hm/kitty.nix
../../modules/hm/lf.nix
../../modules/hm/megasync.nix
../../modules/hm/syncthing_tiziano.nix
../../modules/hm/shell_aliases.nix
];
home.stateVersion = "21.11";
home.stateVersion = "23.05";
}