stockholm/lass/2configs/bitcoin.nix

23 lines
439 B
Nix
Raw Normal View History

2015-07-16 13:51:01 +00:00
{ config, pkgs, ... }:
2016-01-19 18:59:53 +00:00
let
mainUser = config.users.extraUsers.mainUser;
in {
2015-07-16 13:51:01 +00:00
environment.systemPackages = with pkgs; [
electrum
];
users.extraUsers = {
bitcoin = {
name = "bitcoin";
description = "user for bitcoin stuff";
home = "/home/bitcoin";
useDefaultShell = true;
createHome = true;
};
};
2016-01-19 18:59:53 +00:00
security.sudo.extraConfig = ''
${mainUser.name} ALL=(bitcoin) NOPASSWD: ALL
'';
2015-07-16 13:51:01 +00:00
}