1
0
mirror of https://github.com/kmein/niveum synced 2026-03-22 12:51:08 +01:00

2 Commits

Author SHA1 Message Date
5909167243 feat: restructure home directory 2024-04-03 07:56:13 +02:00
ee71156f3b feat(syncthing): add tmp folder 2024-04-03 07:56:13 +02:00
6 changed files with 27 additions and 11 deletions

View File

@@ -14,21 +14,16 @@ in {
};
passwordFile = config.age.secrets.restic.path;
extraBackupArgs = [
"--exclude=/home/kfm/projects/nixpkgs/.git"
"--exclude=/home/kfm/sync/src/nixpkgs/.git"
"--exclude=node_modules"
"--exclude=.parcel-cache"
];
paths = [
"/home/kfm/work"
"/home/kfm/projects"
"/home/kfm/Zotero"
"/home/kfm/notes"
"/home/kfm/Maildir"
"/home/kfm/sync"
"/home/kfm/state"
"/home/kfm/cloud"
"/home/kfm/.gnupg"
"/home/kfm/.ssh"
"/mnt/sd-card/music"
"/mnt/sd-card/Books"
];
};

View File

@@ -113,6 +113,7 @@ in {
cloud-dir = "${config.users.users.me.home}/cloud";
in {
"${config.users.users.me.home}/sync".devices = ["kabsa" "manakish" "fatteh"];
"${config.users.users.me.home}/tmp".devices = ["kabsa" "manakish" "fatteh" "heym"];
"${cloud-dir}/syncthing/mundoiu".devices = ["kabsa" "manakish" "heym" "fatteh"];
"${cloud-dir}/syncthing/music" = {
devices = ["kabsa" "manakish" "heym" "zaatar" "fatteh"];

View File

@@ -96,7 +96,7 @@ in {
home-manager.users.me.xdg.enable = true;
}
{
environment.interactiveShellInit = "export PATH=$PATH:$HOME/projects/niveum";
environment.interactiveShellInit = "export PATH=$PATH";
environment.shellAliases = let
swallow = command: "${niveumPackages.swallow}/bin/swallow ${command}";
in {
@@ -264,6 +264,7 @@ in {
./zsh.nix
./tor.nix
./stw-berlin.nix
./fritzbox.nix
./mastodon-bot.nix
];
}

19
configs/fritzbox.nix Normal file
View File

@@ -0,0 +1,19 @@
{ config, ... }:
{
fileSystems."/media/fritzbox" = {
device = "//192.168.178.1/FRITZ.NAS";
fsType = "cifs";
options = [
"username=ftpuser"
"password=ftppassword"
"noauto"
"uid=${toString config.users.users.me.uid}"
"gid=${toString config.users.groups.users.gid}"
"rw"
"nounix"
"x-systemd.automount"
"x-systemd.device-timeout=1"
"x-systemd.idle-timeout=1min"
];
};
}

View File

@@ -2,7 +2,7 @@
pkgs,
...
}: let
ledgerDirectory = "/home/kfm/projects/ledger";
ledgerDirectory = "/home/kfm/sync/src/ledger";
hora = pkgs.callPackage ../packages/hora.nix { timeLedger = "${ledgerDirectory}/time.timeclock"; };
in {
environment.systemPackages = let

View File

@@ -52,7 +52,7 @@
export KEYTIMEOUT=1
hash -d nixos=/etc/nixos niveum=${config.users.users.me.home}/projects/niveum
hash -d nixos=/etc/nixos niveum=${config.users.users.me.home}/sync/src/niveum
autoload -U zmv run-help edit-command-line