Corrections to flake formatting

This commit is contained in:
jeirmeister 2025-08-01 11:24:06 -07:00
parent 4c50100a73
commit 086e2a3786

View file

@ -9,48 +9,56 @@
}; };
outputs = { self, nixpkgs, nix-bitcoin, nixos-generators, flake-utils, ... }: outputs = { self, nixpkgs, nix-bitcoin, nixos-generators, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system: let
let system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
modules = [ modules = [
nix-bitcoin.nixosModules.default nix-bitcoin.nixosModules.default
./nix/modules/bitcoind ./nix/modules/bitcoind
./nix/modules/nbxplorer ./nix/modules/nbxplorer
./nix/modules/btcpay ./nix/modules/btcpay
]; ];
in { in {
devShells.default = pkgs.mkShell { # Top-level nixosConfigurations for proper nixos-rebuild support
buildInputs = [ nixosConfigurations.btc-pay-server = nixpkgs.lib.nixosSystem {
nixos-generators.packages.${system}.nixos-generate system = "x86_64-linux";
pkgs.just modules = modules ++ [
]; ({ config, ... }: {
shellHook = '' boot.isContainer = true;
echo "💚 Devshell ready: nixos-generate, just available." system.stateVersion = "25.05";
''; services.btcpay-full.enable = true;
};
nixosConfigurations.btc-pay-server = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = modules ++ [
({ config, ... }: {
boot.isContainer = true;
system.stateVersion = "25.05";
services.btcpay-full.enable = true;
users.users.root.openssh.authorizedKeys.keys = [ users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAaV7JtUWkWrjo5FfCcpTCCEY/OJ+T1mJOLbe4avg0XH sysadmin@skrybit.io" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAaV7JtUWkWrjo5FfCcpTCCEY/OJ+T1mJOLbe4avg0XH sysadmin@skrybit.io"
]; ];
services.openssh = { services.openssh = {
enable = true; enable = true;
settings = { settings = {
PermitRootLogin = "prohibit-password"; PermitRootLogin = "prohibit-password";
PasswordAuthentication = false; PasswordAuthentication = false;
};
}; };
}) };
self.nixosModules.btcpay-server })
]; self.nixosModules.btcpay-server
}; ];
} };
);
# devShells and other per-system outputs, if desired
devShells = flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in {
default = pkgs.mkShell {
buildInputs = [
nixos-generators.packages.${system}.nixos-generate
pkgs.just
];
shellHook = ''
echo "💚 Devshell ready: nixos-generate, just available."
'';
};
}
);
};
} }