mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
initial server work
This commit is contained in:
parent
26e1521491
commit
036db0b3b9
53 changed files with 228 additions and 11 deletions
38
src/modules/system/corn/default.nix
Normal file
38
src/modules/system/corn/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.corn;
|
||||
|
||||
in
|
||||
{ options.modules.corn = { enable = mkEnableOption "corn"; };
|
||||
|
||||
imports = [
|
||||
./core-lightning
|
||||
./sparrow-cli
|
||||
];
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
users = {
|
||||
users = {
|
||||
"bitcoind" = {
|
||||
description = "bitcoind system user";
|
||||
isSystemUser = true;
|
||||
group = "bitcoin";
|
||||
};
|
||||
};
|
||||
groups = {
|
||||
"bitcoin" = {
|
||||
members = [ "core-lightning" "electrs" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
services.bitcoind = {
|
||||
"main-net" = {
|
||||
enable = true;
|
||||
user = "bitcoind";
|
||||
group = "bitcoin";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue