added: options

added: dev env
This commit is contained in:
2022-12-10 15:41:33 +01:00
parent 5042536c2d
commit 2a68518b56
3 changed files with 24 additions and 6 deletions

View File

@@ -65,11 +65,11 @@
RUST_SRC_PATH = "${if inputs ? fenix then "${toolchain pkgs}/lib/rustlib" else pkgs.rustPlatform.rustLibSrc}";
RUST_LOG = "debug";
SSH_CD_SOCKET_ADDRESS="127.0.0.1:6869";
SSH_CD_CERT_DIR="certs/";
SSH_CD_CA="certs/ca.pub";
SSH_CD_SOCKET_ADDRESS = "127.0.0.1:6869";
SSH_CD_CERT_DIR = "certs/";
SSH_CD_CA = "certs/ca.pub";
SSH_CD_API="http://${SSH_CD_SOCKET_ADDRESS}";
SSH_CD_API = "http://${SSH_CD_SOCKET_ADDRESS}";
nativeBuildInputs = with pkgs; [ (toolchain pkgs) cargo-watch rustfmt nixpkgs-fmt ] ++ packages.default.nativeBuildInputs;
inherit (packages.default) buildInputs;
@@ -77,6 +77,9 @@
printf "Rust version:"
rustc --version
printf "\nbuild inputs: ${pkgs.lib.concatStringsSep ", " (map (bi: bi.name) (buildInputs ++ nativeBuildInputs))}"
function server() {
cargo watch -x "run --all-features -- server ''${@}"
}
'';
};
@@ -112,6 +115,12 @@
homeManagerModules.default = {
imports = [ ./modules/home-manager.nix ];
};
nixosConfigurations.test = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
self.nixosModules.default
];
};
};