mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Avoid builtins
This commit is contained in:
parent
5a960a1074
commit
c48f95dc56
3 changed files with 4 additions and 4 deletions
|
|
@ -20,9 +20,9 @@ let
|
||||||
"${self}/users"
|
"${self}/users"
|
||||||
|> builtins.readDir
|
|> builtins.readDir
|
||||||
|> lib.filterAttrs (_: type: type == "directory")
|
|> lib.filterAttrs (_: type: type == "directory")
|
||||||
|> builtins.attrNames
|
|> lib.attrNames
|
||||||
|> map (user: "${self}/users/${user}/@${hostName}")
|
|> map (user: "${self}/users/${user}/@${hostName}")
|
||||||
|> builtins.filter (path: builtins.pathExists path);
|
|> lib.filter (path: lib.pathExists path);
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
{ networking = { inherit hostName; }; }
|
{ networking = { inherit hostName; }; }
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
systemd.user.tmpfiles.rules =
|
systemd.user.tmpfiles.rules =
|
||||||
let
|
let
|
||||||
settings = builtins.replaceStrings [ "," ] [ ",\\n" ] (
|
settings = lib.replaceStrings [ "," ] [ ",\\n" ] (
|
||||||
builtins.toJSON {
|
builtins.toJSON {
|
||||||
"workbench.colorTheme" =
|
"workbench.colorTheme" =
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ in
|
||||||
|
|
||||||
systemd.services.radicale.serviceConfig.ExecStartPre =
|
systemd.services.radicale.serviceConfig.ExecStartPre =
|
||||||
let
|
let
|
||||||
gitignore = builtins.toFile "radicale-collection-gitignore" ''
|
gitignore = pkgs.writeText "radicale-collection-gitignore" ''
|
||||||
.Radicale.cache
|
.Radicale.cache
|
||||||
.Radicale.lock
|
.Radicale.lock
|
||||||
.Radicale.tmp-*
|
.Radicale.tmp-*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue