mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
changes
This commit is contained in:
parent
1d99368b0a
commit
433dac83d8
3 changed files with 24 additions and 18 deletions
|
|
@ -7,11 +7,6 @@ let
|
|||
|
||||
home = "/var/lib/bitcoind";
|
||||
|
||||
bitcoinConf = pkgs.writeTextFile {
|
||||
name = "bitcoin.conf";
|
||||
text = builtins.readFile ./config/bitcoin.conf;
|
||||
};
|
||||
|
||||
in
|
||||
{ options.modules.system.bitcoin = { enable = mkEnableOption "Bitcoin Server"; };
|
||||
config = mkIf cfg.enable {
|
||||
|
|
@ -36,7 +31,7 @@ in
|
|||
group = "bitcoin";
|
||||
createHome = true;
|
||||
};
|
||||
"nginx" = {
|
||||
"${config.services.nginx.user}" = {
|
||||
extraGroups = mkIf nginx.enable [
|
||||
"bitcoin"
|
||||
];
|
||||
|
|
@ -60,7 +55,7 @@ in
|
|||
enable = true;
|
||||
user = "btc";
|
||||
group = "bitcoin";
|
||||
configFile = bitcoinConf;
|
||||
configFile = ./config/bitcoin.conf;
|
||||
dataDir = home;
|
||||
pidFile = "${home}/bitcoind.pid";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue