nix-dotfiles/instances/baldur/hm.nix

48 lines
1.5 KiB
Nix

{ pkgs, nixosConfig, ... }: {
home = {
language.base = "it_IT.UTF-8";
keyboard = {
layout = "it";
options = [ "terminate:ctrl_alt_bksp" "compose:rctrl" "grp:menu_toggle" ];
};
packages = builtins.attrValues { inherit (pkgs) nix-prefetch-scripts; };
};
imports = [
../../modules/hm/__basic.nix
# ../../modules/hm/development/cpp.nix
# ../../modules/hm/development/data.nix
# ../../modules/hm/development/go.nix
# ../../modules/hm/development/javascript.nix
# ../../modules/hm/development/latex.nix
# ../../modules/hm/development/python.nix
# ../../modules/hm/development/rust.nix
# ../../modules/hm/fonts.nix
../../modules/hm/helix.nix
# ../../modules/hm/kitty.nix
# ../../modules/hm/lf.nix
# ../../modules/hm/megasync.nix
# ../../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";
}