mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
+51
-22
@@ -6,6 +6,34 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
symlinksPaths = {
|
||||||
|
"${config.home.homeDirectory}/External/Music" = "Music";
|
||||||
|
"${xlib.dirs.storage}/ssh" = ".ssh/config";
|
||||||
|
"${xlib.dirs.storage}/ssh" = ".ssh/known_hosts";
|
||||||
|
"${xlib.dirs.storage}/beets" = ".config/beets";
|
||||||
|
|
||||||
|
# "hypr" = ".config/hypr";
|
||||||
|
# "waybar" = ".config/waybar";
|
||||||
|
# "rofi" = ".config/rofi";
|
||||||
|
# "yazi" = ".config/yazi";
|
||||||
|
|
||||||
|
# "alacritty" = ".config/alacritty";
|
||||||
|
# "zellij" = ".config/zellij";
|
||||||
|
|
||||||
|
# "zed" = ".config/zed";
|
||||||
|
|
||||||
|
# "lazygit" = ".config/lazygit";
|
||||||
|
|
||||||
|
# "fish/config.fish" = ".config/fish/config.fish";
|
||||||
|
# "git/.gitconfig" = ".gitconfig";
|
||||||
|
# "npm/.npmrc" = ".npmrc";
|
||||||
|
};
|
||||||
|
|
||||||
|
mkLinks = lib.mapAttrs' (sourcePath: targetPath: {
|
||||||
|
name = targetPath;
|
||||||
|
value.source = config.lib.file.mkOutOfStoreSymlink "${sourcePath}";
|
||||||
|
}) symlinksPaths;
|
||||||
|
|
||||||
# Paths
|
# Paths
|
||||||
beetsPath = "${xlib.dirs.storage}/beets";
|
beetsPath = "${xlib.dirs.storage}/beets";
|
||||||
sshPath = "${xlib.dirs.storage}/ssh";
|
sshPath = "${xlib.dirs.storage}/ssh";
|
||||||
@@ -16,12 +44,12 @@ in
|
|||||||
# ./minimal.nix
|
# ./minimal.nix
|
||||||
# ];
|
# ];
|
||||||
xdg = {
|
xdg = {
|
||||||
configFile = {
|
# configFile = {
|
||||||
"beets" = {
|
# "beets" = {
|
||||||
source = config.lib.file.mkOutOfStoreSymlink beetsPath;
|
# source = config.lib.file.mkOutOfStoreSymlink beetsPath;
|
||||||
target = "beets";
|
# target = "beets";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
enable = true;
|
enable = true;
|
||||||
autostart.enable = true;
|
autostart.enable = true;
|
||||||
userDirs = {
|
userDirs = {
|
||||||
@@ -37,20 +65,21 @@ in
|
|||||||
videos = null;
|
videos = null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home = {
|
home.file = mkLinks;
|
||||||
file = {
|
# home = {
|
||||||
"ssh-config" = {
|
# file = {
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${sshPath}/config";
|
# "ssh-config" = {
|
||||||
target = ".ssh/config";
|
# source = config.lib.file.mkOutOfStoreSymlink "${sshPath}/config";
|
||||||
};
|
# target = ".ssh/config";
|
||||||
"ssh-known" = {
|
# };
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${sshPath}/known_hosts";
|
# "ssh-known" = {
|
||||||
target = ".ssh/known_hosts";
|
# source = config.lib.file.mkOutOfStoreSymlink "${sshPath}/known_hosts";
|
||||||
};
|
# target = ".ssh/known_hosts";
|
||||||
"Music" = {
|
# };
|
||||||
source = config.lib.file.mkOutOfStoreSymlink musicPath;
|
# "Music" = {
|
||||||
target = "${config.home.homeDirectory}/Music";
|
# source = config.lib.file.mkOutOfStoreSymlink musicPath;
|
||||||
};
|
# target = "${config.home.homeDirectory}/Music";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user