- Open cmd (run as administrator), then use
dism /online /set-edition:serverstandard /productkey:VDYBN-27WPP-V4HQT-9VMD4-VMK7H /accepteula| { lib, config, options, pkgs, ... }: | |
| with lib; | |
| let cfg = config.services.chrome-remote-desktop; | |
| in { | |
| options.services.chrome-remote-desktop = { | |
| enable = mkEnableOption "Chrome Remote Desktop"; | |
| user = mkOption { | |
| type = types.str; | |
| description = '' | |
| A user which the service will run as. |
| { | |
| # minimized for clarity. | |
| # Some of these might not be needed. After some trial and error | |
| # I got this working with these configs. | |
| # I do not have the patience to rn an elimination test. | |
| services.gnome.gnome-remote-desktop.enable = true; | |
| # Enable the X11 windowing system. | |
| services.xserver.enable = true; |
| /** | |
| * This method calculates the profit or loss of a position in the home currency of the account | |
| * @param string sym | |
| * @param int type 0 = buy, 1 = sell | |
| * @param double entry | |
| * @param double exit | |
| * @param double lots | |
| * @result double profit/loss in home currency | |
| */ | |
| double calcPL(string sym, int type, double entry, double exit, double lots) { |
| @echo off | |
| SET mypath=%~dp0 | |
| echo %mypath:~0,-1% | |
| pushd %~dp0 | |
| echo\ | |
| REM popd | |
| REM !!! YOU NEED PSEXEC !!! | |
| REM DOWNLOAD zip package incl psexec: |
| @ECHO OFF | |
| if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) | |
| set /p what_to_do=enable or disable windows defender?: | |
| if "%what_to_do%"=="disable" ( | |
| set state=1 | |
| ) else ( | |
| if "%what_to_do%"=="enable" ( | |
| set state=0 |
dism /online /set-edition:serverstandard /productkey:VDYBN-27WPP-V4HQT-9VMD4-VMK7H /accepteula| import <nixpkgs/nixos/tests/make-test-python.nix> ({pkgs, ...}: rec { | |
| name = "nesting"; | |
| meta = with pkgs.stdenv.lib.maintainers; { | |
| maintainers = [ sorki ]; | |
| }; | |
| machine = { lib, ... }: | |
| let makeNested = subConf: { | |
| boot.enableContainers = true; |
| #!/bin/sh | |
| # nixos-spawn (c) Karim Vergnes <[email protected]> | |
| # This script launches systemd-nspawn in an empty root, with an overlay of the | |
| # host's Nix Store. This takes advantage of the NixOS stage 2 init's ability to | |
| # populate an empty system automatically. | |
| # By default, no changes are persisted anywhere -- use an additional bind mount | |
| # to add permanent storage. | |
| : ${NIXOS_CHANNEL:=nixpkgs} |
| # Updated on 2021-01-29 | |
| pkg install util-linux clang llvm nano wget autoconf automake bison bzip2 cmake coreutils diffutils flex gawk git grep gzip libtool make patch perl readline-dev sed silversearcher-ag tar python python-dev fftw libzmq libzmq-dev freetype freetype-dev libpng libpng-dev libjpeg-turbo-dev glib pkg-config zlib zlib-dev | |
| $PREFIX/bin/wget https://its-pointless.github.io/setup-pointless-repo.sh | |
| bash setup-pointless-repo.sh | |
| pkg update |