Corrections to flake formatting
This commit is contained in:
parent
4c50100a73
commit
086e2a3786
1 changed files with 50 additions and 42 deletions
90
flake.nix
90
flake.nix
|
|
@ -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."
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue