fix(minion): lib useless
This commit is contained in:
parent
f82c3ce165
commit
296c98870c
|
@ -1 +1 @@
|
||||||
inputs: [ (import ./misc.nix inputs) ]
|
_inputs: [ ]
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
_inputs: _self: super:
|
|
||||||
let
|
|
||||||
writeText = text: (super.writeText (builtins.hashString "sha256" "${text}") "${text}");
|
|
||||||
in
|
|
||||||
{
|
|
||||||
lib = super.lib // {
|
|
||||||
inherit writeText;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -88,6 +88,9 @@ in
|
||||||
"dir_mode=0700"
|
"dir_mode=0700"
|
||||||
"credentials=${cfg.credentials}"
|
"credentials=${cfg.credentials}"
|
||||||
"x-systemd.after=sys-devices-virtual-net-samba\\x2dpatrick.device"
|
"x-systemd.after=sys-devices-virtual-net-samba\\x2dpatrick.device"
|
||||||
|
"x-systemd.automount"
|
||||||
|
"x-systemd.mount-timeout=30"
|
||||||
|
"_netdev"
|
||||||
]
|
]
|
||||||
++ (optional (!cfg.automatic) "noauto");
|
++ (optional (!cfg.automatic) "noauto");
|
||||||
in
|
in
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
# addon-path is base64 encode path
|
# addon-path is base64 encode path
|
||||||
cfgFile = lib.writeText ''
|
cfgFile = pkgs.writeText "mimion.xml" ''
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<minion>
|
<minion>
|
||||||
<config-version>2</config-version>
|
<config-version>2</config-version>
|
||||||
|
@ -30,6 +30,7 @@ in
|
||||||
# yet another program that uses the config file as a live state file
|
# yet another program that uses the config file as a live state file
|
||||||
# Why?
|
# Why?
|
||||||
home.activation.installMinionConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
home.activation.installMinionConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
|
run mkdir -p .minion
|
||||||
run cp -f ${cfgFile} .minion/minion.xml
|
run cp -f ${cfgFile} .minion/minion.xml
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue