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, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
modules = [
nix-bitcoin.nixosModules.default
./nix/modules/bitcoind
./nix/modules/nbxplorer
./nix/modules/btcpay
];
in {
devShells.default = pkgs.mkShell {
buildInputs = [
nixos-generators.packages.${system}.nixos-generate
pkgs.just
];
shellHook = ''
echo "💚 Devshell ready: nixos-generate, just available."
'';
};
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;
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
modules = [
nix-bitcoin.nixosModules.default
./nix/modules/bitcoind
./nix/modules/nbxplorer
./nix/modules/btcpay
];
in {
# Top-level nixosConfigurations for proper nixos-rebuild support
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 = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAaV7JtUWkWrjo5FfCcpTCCEY/OJ+T1mJOLbe4avg0XH sysadmin@skrybit.io"
];
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAaV7JtUWkWrjo5FfCcpTCCEY/OJ+T1mJOLbe4avg0XH sysadmin@skrybit.io"
];
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
};
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "prohibit-password";
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."
'';
};
}
);
};
}