Remove unused garage

This commit is contained in:
Filippo Berto 2023-10-28 02:04:53 +02:00
parent c98867d0b4
commit 9266a2dd90
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
12 changed files with 7 additions and 146 deletions

View file

@ -1,10 +1,5 @@
{ pkgs, ... }: {
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

@ -8,27 +8,6 @@
packages = builtins.attrValues { inherit (pkgs) nix-prefetch-scripts; };
};
# 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";
# StartLimitBurst = 5;
# StartLimitInterval = 200;
# 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://freya.local:3900";
# Restart = "always";
# RestartSec = 30;
# Type = "exec";
# };
# Install = {
# WantedBy = [ "default.target" ];
# };
# };
imports = [
../../modules/hm/__basic.nix

View file

@ -7,27 +7,6 @@
};
};
# 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";
# StartLimitBurst = 5;
# StartLimitInterval = 200;
# 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://freya.local:3900";
# Restart = "always";
# RestartSec = 30;
# Type = "exec";
# };
# Install = {
# WantedBy = [ "default.target" ];
# };
# };
imports = [
../../modules/hm/__basic.nix

View file

@ -1,11 +1,5 @@
{ 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, nixosConfig, ... }: {
{ pkgs, ... }: {
home = {
language.base = "it_IT.UTF-8";
keyboard = {
@ -11,27 +11,6 @@
};
};
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";
StartLimitBurst = 5;
StartLimitInterval = 200;
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";
Restart = "always";
RestartSec = 30;
Type = "exec";
};
Install = {
WantedBy = [ "default.target" ];
};
};
imports = [
../../modules/hm/__basic.nix

View file

@ -1,11 +1,6 @@
{ 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

@ -40,18 +40,6 @@
options = [ "subvol=@condiviso" "compress=lzo" ];
};
fileSystems."/var/lib/garage/data" = {
device = "/dev/disk/by-uuid/2e897ea5-c8f9-4fa8-9cc6-3f5807ba8afc";
fsType = "btrfs";
options = [ "subvol=@garage" "compress=lzo" ];
};
fileSystems."/var/lib/garage/meta" = {
device = "/dev/disk/by-uuid/2e897ea5-c8f9-4fa8-9cc6-3f5807ba8afc";
fsType = "btrfs";
options = [ "subvol=@garage-metadata" "compress=lzo" ];
};
# fileSystems."/var/lib/minio/data" = {
# device = "/dev/disk/by-uuid/2e897ea5-c8f9-4fa8-9cc6-3f5807ba8afc";
# fsType = "btrfs";

View file

@ -1,4 +1,4 @@
{ pkgs, nixosConfig, ... }: {
{
home = {
language.base = "it_IT.UTF-8";
keyboard = {
@ -7,27 +7,6 @@
};
};
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";
StartLimitBurst = 5;
StartLimitInterval = 200;
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";
Restart = "always";
RestartSec = 30;
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 = {
@ -7,27 +7,6 @@
};
};
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";
StartLimitBurst = 5;
StartLimitInterval = 200;
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";
Restart = "always";
RestartSec = 30;
Type = "exec";
};
Install = {
WantedBy = [ "default.target" ];
};
};
imports = [
../../modules/hm/__basic.nix

View file

@ -2,7 +2,6 @@
with lib; {
age.secrets = {
garage_bertof_odin_key = { file = ../../secrets/garage_bertof_odin_key.age; owner = "bertof"; };
odin_wg_priv = { file = ../../secrets/odin_wg_priv.age; };
};

View file

@ -2,7 +2,6 @@
with lib; {
age.secrets = {
garage_bertof_thor_key = { file = ../../secrets/garage_bertof_thor_key.age; owner = "bertof"; };
thor_wg_priv = { file = ../../secrets/thor_wg_priv.age; };
};