mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
+4
-20
@@ -11,22 +11,6 @@ let
|
|||||||
"${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";
|
"${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: {
|
mkLinks = lib.mapAttrs' (sourcePath: targetPath: {
|
||||||
@@ -40,9 +24,10 @@ let
|
|||||||
musicPath = "${config.home.homeDirectory}/External/Music";
|
musicPath = "${config.home.homeDirectory}/External/Music";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# imports = [
|
imports = [
|
||||||
# ./minimal.nix
|
./minimal.nix
|
||||||
# ];
|
];
|
||||||
|
home.file = mkLinks;
|
||||||
xdg = {
|
xdg = {
|
||||||
# configFile = {
|
# configFile = {
|
||||||
# "beets" = {
|
# "beets" = {
|
||||||
@@ -65,7 +50,6 @@ in
|
|||||||
videos = null;
|
videos = null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home.file = mkLinks;
|
|
||||||
# home = {
|
# home = {
|
||||||
# file = {
|
# file = {
|
||||||
# "ssh-config" = {
|
# "ssh-config" = {
|
||||||
|
|||||||
+18
-23
@@ -1,30 +1,37 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
xlib,
|
xlib,
|
||||||
inputs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
# Paths
|
symlinksPaths = {
|
||||||
beetsPath = "${xlib.dirs.wsl-storage}/beets";
|
"${config.home.homeDirectory}/External/Music" = "Music";
|
||||||
externalPath = "${xlib.dirs.wsl-home}";
|
"${xlib.dirs.wsl-home}" = "External";
|
||||||
musicPath = "${config.home.homeDirectory}/External/Music";
|
"${xlib.dirs.wsl-storage}/beets" = ".config/beets";
|
||||||
|
};
|
||||||
|
mkLinks = lib.mapAttrs' (sourcePath: targetPath: {
|
||||||
|
name = targetPath;
|
||||||
|
value.source = config.lib.file.mkOutOfStoreSymlink "${sourcePath}";
|
||||||
|
}) symlinksPaths;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./apps
|
./apps
|
||||||
./minimal.nix
|
./minimal.nix
|
||||||
];
|
];
|
||||||
|
home.file = mkLinks;
|
||||||
xdg = {
|
xdg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autostart.enable = true;
|
autostart.enable = true;
|
||||||
configFile = {
|
# configFile = {
|
||||||
"beets" = {
|
# "beets" = {
|
||||||
source = config.lib.file.mkOutOfStoreSymlink beetsPath;
|
# source = config.lib.file.mkOutOfStoreSymlink beetsPath;
|
||||||
target = "beets";
|
# target = "beets";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
userDirs = {
|
userDirs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
createDirectories = false;
|
createDirectories = false;
|
||||||
@@ -38,16 +45,4 @@ in
|
|||||||
videos = null;
|
videos = null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home = {
|
|
||||||
file = {
|
|
||||||
"External" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink externalPath;
|
|
||||||
target = "External";
|
|
||||||
};
|
|
||||||
"Music" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink musicPath;
|
|
||||||
target = "${config.home.homeDirectory}/Music";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user