format with nix-fmt, use nix tree
This commit is contained in:
parent
b26856d2ed
commit
0d34a0f6a8
11 changed files with 307 additions and 188 deletions
|
|
@ -1,11 +1,23 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
homeDir = config.home.homeDirectory;
|
||||
repoDir = "${homeDir}/nix-config";
|
||||
|
||||
directories = [ "dev" "dl" "img" "img/screen" "wp" ];
|
||||
in {
|
||||
directories = [
|
||||
"dev"
|
||||
"dl"
|
||||
"img"
|
||||
"img/screen"
|
||||
"wp"
|
||||
];
|
||||
in
|
||||
{
|
||||
home.activation.createDirectories = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
for dir in ${lib.concatStringsSep " " directories}; do
|
||||
$DRY_RUN_CMD mkdir -p "$HOME/$dir"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue