mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ let
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.self.homeModules."${xlib.device.type}"
|
"./type/${xlib.device.type}.nix"
|
||||||
];
|
];
|
||||||
home = {
|
home = {
|
||||||
username = xlib.device.username;
|
username = xlib.device.username;
|
||||||
|
|||||||
@@ -0,0 +1,52 @@
|
|||||||
|
{ inputs, ... }@flakeContext:
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
# Paths
|
||||||
|
beetsPath = "${inputs.zeroq.dirs.storage}/beets/linux";
|
||||||
|
sshPath = "${inputs.zeroq.dirs.storage}/ssh/${inputs.zeroq.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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user