Compare commits
2
Commits
2c6ef7b60e
...
a68130625e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a68130625e | ||
|
|
7b04adbbe6 |
No files matched your search
@@ -1,32 +1,68 @@
|
|||||||
{
|
{
|
||||||
description = "Sovran Systems OS - A secure, self-hosted server OS";
|
description = "The Ultimate Sovran_SystemsOS Configuration from Sovran Systems";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-26.05";
|
|
||||||
nixvim.url = "github:nix-community/nixvim";
|
nixvim.url = "github:nix-community/nixvim";
|
||||||
btc-clients.url = "github:emmanuelrosa/btc-clients-nix";
|
btc-clients.url = "github:emmanuelrosa/btc-clients-nix";
|
||||||
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-26.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixpkgs-stable, nixvim, btc-clients }:
|
outputs = { self, nixpkgs, nixvim, btc-clients, nixpkgs-stable, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
overlay-stable = final: prev: {
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
stable = import nixpkgs-stable {
|
||||||
pkgs-stable = import nixpkgs-stable {
|
system = prev.stdenv.hostPlatform.system;
|
||||||
inherit system;
|
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
|
||||||
specialArgs = { inherit pkgs-stable; };
|
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
{ nixpkgs.hostPlatform = "x86_64-linux"; nixpkgs.overlays = [ overlay-stable ]; }
|
||||||
./modules
|
self.nixosModules.Sovran_SystemsOS
|
||||||
btc-clients.nixosModules.bitcoin
|
./hardware-configuration.nix
|
||||||
|
./role-state.nix
|
||||||
|
./custom.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
nixosConfigurations.sovran_systemsos-iso = nixpkgs.lib.nixosSystem {
|
||||||
|
modules = [
|
||||||
|
{ nixpkgs.hostPlatform = "x86_64-linux"; nixpkgs.overlays = [ overlay-stable ]; }
|
||||||
|
./iso/common.nix
|
||||||
|
./modules/bitcoin
|
||||||
nixvim.nixosModules.nixvim
|
nixvim.nixosModules.nixvim
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixosModules.Sovran_SystemsOS = { pkgs, lib, config, ... }: {
|
||||||
|
imports = [
|
||||||
|
({ config, pkgs, ... }: {
|
||||||
|
nixpkgs.overlays = [ overlay-stable ];
|
||||||
|
})
|
||||||
|
./configuration.nix
|
||||||
|
./modules/bitcoin
|
||||||
|
nixvim.nixosModules.nixvim
|
||||||
|
];
|
||||||
|
config = {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
btc-clients.packages.${pkgs.system}.bisq
|
||||||
|
btc-clients.packages.${pkgs.system}.bisq2
|
||||||
|
btc-clients.packages.${pkgs.system}.sparrow
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nixosTests.nwc-wallets-port-collision =
|
||||||
|
import ./nix/tests/nwc-wallets-port-collision.nix {
|
||||||
|
inherit nixpkgs;
|
||||||
|
system = "x86_64-linux";
|
||||||
|
};
|
||||||
|
|
||||||
|
checks.x86_64-linux.nwc-wallets-port-collision =
|
||||||
|
self.nixosTests.nwc-wallets-port-collision;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, pkgs-stable, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
@@ -26,8 +26,8 @@ let
|
|||||||
};
|
};
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pkgs-stable.nbxplorer;
|
default = pkgs.stable.nbxplorer;
|
||||||
defaultText = "pkgs-stable.nbxplorer";
|
defaultText = "pkgs.stable.nbxplorer";
|
||||||
description = "The package providing nbxplorer binaries.";
|
description = "The package providing nbxplorer binaries.";
|
||||||
};
|
};
|
||||||
dataDir = mkOption {
|
dataDir = mkOption {
|
||||||
@@ -47,7 +47,7 @@ let
|
|||||||
# be nix-bitcoin <=0.0.91)
|
# be nix-bitcoin <=0.0.91)
|
||||||
addNetworkSymlink = mkOption {
|
addNetworkSymlink = mkOption {
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
default = pkgs-stable.nbxplorer != cfg.nbxplorer.package;
|
default = pkgs.stable.nbxplorer != cfg.nbxplorer.package;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to add a compatibility symlink (like `${cfg.nbxplorer.dataDir}/Main`)
|
Whether to add a compatibility symlink (like `${cfg.nbxplorer.dataDir}/Main`)
|
||||||
to the dataDir.
|
to the dataDir.
|
||||||
@@ -83,8 +83,8 @@ let
|
|||||||
};
|
};
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pkgs-stable.btcpayserver;
|
default = pkgs.stable.btcpayserver;
|
||||||
defaultText = "pkgs-stable.btcpayserver";
|
defaultText = "pkgs.stable.btcpayserver";
|
||||||
description = "The package providing BTCPay Server binaries.";
|
description = "The package providing BTCPay Server binaries.";
|
||||||
};
|
};
|
||||||
address = mkOption {
|
address = mkOption {
|
||||||
|
|||||||
Reference in new issue
Block a user