mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat: restructure home directory
This commit is contained in:
@@ -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"
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
@@ -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
19
configs/fritzbox.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user