From 8c0f3b5f05aed2d06435e9f9740c71d69d6d0711 Mon Sep 17 00:00:00 2001 From: Whovian9369 Date: Thu, 23 May 2024 05:16:16 -0400 Subject: [PATCH] Add some more notes for possible future use. --- README.md | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cea7fc6..963cdc5 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,49 @@ If you have suggestions on "fixing" or "cleaning up" my configurations, please a - [[githubL:ashebanow Starred - Example Nix Configs] "These are other people's nix configs I've found useful, informative, and/or inspirational."](https://github.com/stars/ashebanow/lists/example-nix-configs/) +### Extra notes for possible future use: +```nix +virtualisation.docker = { + enableOnBoot = true; + autoPrune.enable = true; +}; + +wsl = { + # Enable integration with Docker Desktop (needs to be installed) + docker-desktop.enable = false; +}; + +environment.shells = [pkgs.zsh]; + +nix = { + settings = { + access-tokens = [ + "github.com=${github_token-variable}" + "gitlab.com=OAuth2:${gitlab_token-variable}" + ]; + accept-flake-config = true; + auto-optimise-store = true; + }; + + registry = { + nixpkgs = { + flake = inputs.nixpkgs; + }; + }; + nixPath = [ + "nixpkgs=${inputs.nixpkgs.outPath}" + ]; + + gc = { + automatic = true; + options = "--delete-older-than 7d"; + }; +}; +``` + ### Notes: ```bash $ sudo nix-channel --list nixos https://nixos.org/channels/nixos-23.11 nixos-wsl https://github.com/nix-community/NixOS-WSL/archive/refs/heads/main.tar.gz ``` -