From 94d3cab99cd06880a6282eced0351440486d8a88 Mon Sep 17 00:00:00 2001 From: dracoling Date: Wed, 1 May 2024 13:01:37 +0000 Subject: [PATCH] add wsl/nixos config from bento --- machines/bento-wsl-nixos/configuration.nix | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 machines/bento-wsl-nixos/configuration.nix diff --git a/machines/bento-wsl-nixos/configuration.nix b/machines/bento-wsl-nixos/configuration.nix new file mode 100644 index 0000000..d9e27a2 --- /dev/null +++ b/machines/bento-wsl-nixos/configuration.nix @@ -0,0 +1,42 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page, on +# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). + +# NixOS-WSL specific options are documented on the NixOS-WSL repository: +# https://github.com/nix-community/NixOS-WSL + +{ config, lib, pkgs, ... }: + +{ + imports = [ + # include NixOS-WSL modules + + ]; + + wsl.enable = true; + wsl.defaultUser = "nixos"; + + environment.systemPackages = [ + pkgs.neovim + pkgs.git + pkgs.btop + pkgs.dig + ]; + + # This value determines the NixOS release from which the default + # settings for stateful data, like file locations and database versions + # on your system were taken. It's perfectly fine and recommended to leave + # this value at the release version of the first install of this system. + # Before changing this value read the documentation for this option + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). + system.stateVersion = "23.05"; # Did you read the comment? + + # Automatic Garbage Collection + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + +} +