Home manager
This commit is contained in:
@@ -1,14 +1,7 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
settings = import ../settings.nix;
|
||||
# The assets folder from the project root
|
||||
assetsPath = ../assets;
|
||||
in
|
||||
{
|
||||
# Use tmpfiles.rules to create the symlink at boot/activation
|
||||
# L+ forces the creation of the symlink, removing existing file/dir if necessary
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /home/${settings.username}/Assets - - - - ${assetsPath}"
|
||||
"L+ /home/atridad/Assets - - - - ${../assets}"
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user