From ffb2f7235ddbf898d98c03cd99af5d259a52dc0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20H=C3=BCbner?= Date: Tue, 22 Oct 2024 10:32:28 +0200 Subject: [PATCH] Initial commit --- .gitignore | 64 +++++++++++++++++++++++++++++++++++++++++++++++ configuration.nix | 42 +++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 .gitignore create mode 100644 configuration.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd8d5cd --- /dev/null +++ b/.gitignore @@ -0,0 +1,64 @@ +# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,windows,linux +# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,windows,linux + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,windows,linux diff --git a/configuration.nix b/configuration.nix new file mode 100644 index 0000000..692b0d4 --- /dev/null +++ b/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"; + + + # 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 = "24.05"; # Did you read the comment? + + nix = { + settings = { + experimental-features = [ "nix-command" "flakes" ]; + }; + }; + + environment = { + systemPackages = with pkgs; [ + git + vim + wget + curl + ]; + }; +}