mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 12:40:44 +03:00
123
This commit is contained in:
+1
-29
@@ -8,20 +8,14 @@
|
|||||||
let
|
let
|
||||||
symlinksPaths = {
|
symlinksPaths = {
|
||||||
"${config.home.homeDirectory}/External/Music" = "Music";
|
"${config.home.homeDirectory}/External/Music" = "Music";
|
||||||
|
"${xlib.dirs.storage}/beets" = ".config/beets";
|
||||||
"${xlib.dirs.storage}/ssh" = ".ssh/config";
|
"${xlib.dirs.storage}/ssh" = ".ssh/config";
|
||||||
"${xlib.dirs.storage}/ssh" = ".ssh/known_hosts";
|
"${xlib.dirs.storage}/ssh" = ".ssh/known_hosts";
|
||||||
"${xlib.dirs.storage}/beets" = ".config/beets";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
mkLinks = lib.mapAttrs' (sourcePath: targetPath: {
|
mkLinks = lib.mapAttrs' (sourcePath: targetPath: {
|
||||||
name = targetPath;
|
name = targetPath;
|
||||||
value.source = config.lib.file.mkOutOfStoreSymlink "${sourcePath}";
|
value.source = config.lib.file.mkOutOfStoreSymlink "${sourcePath}";
|
||||||
}) symlinksPaths;
|
}) symlinksPaths;
|
||||||
|
|
||||||
# Paths
|
|
||||||
beetsPath = "${xlib.dirs.storage}/beets";
|
|
||||||
sshPath = "${xlib.dirs.storage}/ssh";
|
|
||||||
musicPath = "${config.home.homeDirectory}/External/Music";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -29,12 +23,6 @@ in
|
|||||||
];
|
];
|
||||||
home.file = mkLinks;
|
home.file = mkLinks;
|
||||||
xdg = {
|
xdg = {
|
||||||
# configFile = {
|
|
||||||
# "beets" = {
|
|
||||||
# source = config.lib.file.mkOutOfStoreSymlink beetsPath;
|
|
||||||
# target = "beets";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
enable = true;
|
enable = true;
|
||||||
autostart.enable = true;
|
autostart.enable = true;
|
||||||
userDirs = {
|
userDirs = {
|
||||||
@@ -50,20 +38,4 @@ in
|
|||||||
videos = null;
|
videos = null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# home = {
|
|
||||||
# file = {
|
|
||||||
# "ssh-config" = {
|
|
||||||
# source = config.lib.file.mkOutOfStoreSymlink "${sshPath}/config";
|
|
||||||
# target = ".ssh/config";
|
|
||||||
# };
|
|
||||||
# "ssh-known" = {
|
|
||||||
# source = config.lib.file.mkOutOfStoreSymlink "${sshPath}/known_hosts";
|
|
||||||
# target = ".ssh/known_hosts";
|
|
||||||
# };
|
|
||||||
# "Music" = {
|
|
||||||
# source = config.lib.file.mkOutOfStoreSymlink musicPath;
|
|
||||||
# target = "${config.home.homeDirectory}/Music";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
inputs,
|
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
xlib,
|
xlib,
|
||||||
|
|||||||
Reference in New Issue
Block a user