mirror of
https://github.com/kmein/niveum
synced 2026-03-20 20:01:08 +01:00
feat: restructure home directory
This commit is contained in:
@@ -14,21 +14,16 @@ in {
|
|||||||
};
|
};
|
||||||
passwordFile = config.age.secrets.restic.path;
|
passwordFile = config.age.secrets.restic.path;
|
||||||
extraBackupArgs = [
|
extraBackupArgs = [
|
||||||
"--exclude=/home/kfm/projects/nixpkgs/.git"
|
"--exclude=/home/kfm/sync/src/nixpkgs/.git"
|
||||||
"--exclude=node_modules"
|
"--exclude=node_modules"
|
||||||
"--exclude=.parcel-cache"
|
"--exclude=.parcel-cache"
|
||||||
];
|
];
|
||||||
paths = [
|
paths = [
|
||||||
"/home/kfm/work"
|
"/home/kfm/sync"
|
||||||
"/home/kfm/projects"
|
"/home/kfm/state"
|
||||||
"/home/kfm/Zotero"
|
|
||||||
"/home/kfm/notes"
|
|
||||||
"/home/kfm/Maildir"
|
|
||||||
"/home/kfm/cloud"
|
"/home/kfm/cloud"
|
||||||
"/home/kfm/.gnupg"
|
"/home/kfm/.gnupg"
|
||||||
"/home/kfm/.ssh"
|
"/home/kfm/.ssh"
|
||||||
"/mnt/sd-card/music"
|
|
||||||
"/mnt/sd-card/Books"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ in {
|
|||||||
home-manager.users.me.xdg.enable = true;
|
home-manager.users.me.xdg.enable = true;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
environment.interactiveShellInit = "export PATH=$PATH:$HOME/projects/niveum";
|
environment.interactiveShellInit = "export PATH=$PATH";
|
||||||
environment.shellAliases = let
|
environment.shellAliases = let
|
||||||
swallow = command: "${niveumPackages.swallow}/bin/swallow ${command}";
|
swallow = command: "${niveumPackages.swallow}/bin/swallow ${command}";
|
||||||
in {
|
in {
|
||||||
@@ -264,6 +264,7 @@ in {
|
|||||||
./zsh.nix
|
./zsh.nix
|
||||||
./tor.nix
|
./tor.nix
|
||||||
./stw-berlin.nix
|
./stw-berlin.nix
|
||||||
|
./fritzbox.nix
|
||||||
./mastodon-bot.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,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
ledgerDirectory = "/home/kfm/projects/ledger";
|
ledgerDirectory = "/home/kfm/sync/src/ledger";
|
||||||
hora = pkgs.callPackage ../packages/hora.nix { timeLedger = "${ledgerDirectory}/time.timeclock"; };
|
hora = pkgs.callPackage ../packages/hora.nix { timeLedger = "${ledgerDirectory}/time.timeclock"; };
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = let
|
environment.systemPackages = let
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
export KEYTIMEOUT=1
|
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
|
autoload -U zmv run-help edit-command-line
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user