Skip to content

Instantly share code, notes, and snippets.

{ 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.
@fuad-ibrahimzade
fuad-ibrahimzade / configuration.nix
Created July 29, 2025 06:49 — forked from hermannolafs/configuration.nix
Nixos Gnome RDP Remote Desktop
{
# 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;
@fuad-ibrahimzade
fuad-ibrahimzade / calcPL.mq4
Created May 6, 2025 04:02 — forked from currencysecrets/calcPL.mq4
MQL4: Calculate Profit or Loss on Trade
/**
* 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) {
@fuad-ibrahimzade
fuad-ibrahimzade / WLMS-Disabler.bat
Created February 8, 2025 10:49 — forked from suuhm/WLMS-Disabler.bat
WLMS-Disabler : Disable and prevent the forced Shutdown on not licensed Windows Server and Client , Win 8 to win 11 , Server 2022 supported / https://github.com/suuhm/Powershell-Scripts-Collection
@echo off
SET mypath=%~dp0
echo %mypath:~0,-1%
pushd %~dp0
echo\
REM popd
REM !!! YOU NEED PSEXEC !!!
REM DOWNLOAD zip package incl psexec:
@fuad-ibrahimzade
fuad-ibrahimzade / disable_or_enable_windows_defender.bat
Created February 1, 2025 17:04 — forked from megahomyak/disable_or_enable_windows_defender.bat
Disable or enable Windows Defender (DISABLE TAMPERING PROTECTION MANUALLY FIRST!!!)
@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
@fuad-ibrahimzade
fuad-ibrahimzade / Win_Server_2022_Evaluation_to_full_version.md
Created February 1, 2025 15:42
Upgrade Windows Server 2022 Evaluation (Eval) to Full Version Standard or Datacenter
@fuad-ibrahimzade
fuad-ibrahimzade / containers-nested.nix
Created June 22, 2024 16:18 — forked from sorki/containers-nested.nix
nested NixOS containers
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;
@fuad-ibrahimzade
fuad-ibrahimzade / nixos-spawn.sh
Created June 22, 2024 16:06 — forked from Thesola10/nixos-spawn.sh
Build and spin up a NixOS configuration or flake as a systemd-nspawn container on non-NixOS systems.
#!/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}
@fuad-ibrahimzade
fuad-ibrahimzade / README.md
Created June 22, 2024 16:01 — forked from gdamjan/README.md
Install a NixOS for a systemd-nspawn container … from podman

Install

Run a nix container with podman, with the container destination mounted as /mnt:

DEST=~/containers/nixos
mkdir -p $DEST/{dev,proc,etc/nixos}

podman run -v $DEST:/mnt -it --rm --cap-add SYS_ADMIN docker.io/nixos/nix:latest
@fuad-ibrahimzade
fuad-ibrahimzade / install_python_termux_android.txt
Created June 3, 2024 04:01 — forked from thetdg/install_python_termux_android.txt
Installing Full Scipy Stack on Android
# 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