mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 12:40:44 +03:00
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ inputs, ... }@flakeContext:
|
|
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
# Paths
|
|
beetsPath = "${config.xlib.dirs.storage}/beets/linux";
|
|
sshPath = "${config.xlib.dirs.storage}/ssh/${config.xlib.devices.server.hostname}";
|
|
musicPath = "${config.home.homeDirectory}/External/Music";
|
|
in
|
|
{
|
|
imports = [
|
|
inputs.self.homeModules.minimal
|
|
];
|
|
xdg = {
|
|
configFile = {
|
|
"beets" = {
|
|
source = config.lib.file.mkOutOfStoreSymlink beetsPath;
|
|
target = "beets";
|
|
};
|
|
};
|
|
enable = true;
|
|
autostart.enable = true;
|
|
userDirs = {
|
|
enable = true;
|
|
createDirectories = false;
|
|
desktop = null;
|
|
documents = null;
|
|
download = null;
|
|
music = null;
|
|
pictures = null;
|
|
publicShare = null;
|
|
templates = null;
|
|
videos = null;
|
|
};
|
|
};
|
|
home = {
|
|
file = {
|
|
".ssh" = {
|
|
source = config.lib.file.mkOutOfStoreSymlink sshPath;
|
|
target = ".ssh";
|
|
};
|
|
"Music" = {
|
|
source = config.lib.file.mkOutOfStoreSymlink musicPath;
|
|
target = "${config.home.homeDirectory}/Music";
|
|
};
|
|
};
|
|
};
|
|
}
|