adding nixos egg yoke for WSL
All checks were successful
gitea-deepak/nixconf/pipeline/head This commit looks good

This commit is contained in:
2024-12-29 20:53:38 +00:00
parent 3ec71851bd
commit e8e13282dd

View File

@@ -0,0 +1,83 @@
{ pkgs, customPackageOverlay, modulesPath, ... }:
let
custom-fonts = import ../../fonts { inherit pkgs; };
in
{
imports = [
"${modulesPath}/profiles/minimal.nix"
];
wsl = {
enable = true;
wslConf.automount.root = "/mnt";
defaultUser = "deepak";
startMenuLaunchers = true;
# Enable native Docker support
# docker-native.enable = true;
# Enable integration with Docker Desktop (needs to be installed)
# docker-desktop.enable = true;
nativeSystemd = true;
wslConf.interop.appendWindowsPath = false;
};
networking.hostName = "nixosWSL"; # Define your hostname.
# Enable nix flakes
nix.package = pkgs.nixFlakes;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
nixpkgs.overlays = [
customPackageOverlay
];
system.stateVersion = "22.05";
# Define a user account. Don't forget to set a password with passwd.
users.users.deepak = {
isNormalUser = true;
home = "/home/deepak";
description = "Deepak Mallubhotla";
extraGroups = [ "wheel" "networkmanager" ]; # Enable sudo for the user.
shell = pkgs.zsh;
};
programs.zsh.enable = true;
# default packages because otherwise configuration is a nightmare!
environment.systemPackages = with pkgs; [
wget
vim
git
pinentry
pinentry-curses
gnupg
];
fonts.packages = with pkgs; [
fira-code
fira-code-symbols
powerline-fonts
custom-fonts.custom-fonts
];
programs.gnupg.agent = {
enable = true;
pinentryFlavor = "curses";
enableSSHSupport = true;
};
environment.variables = {
DPK_NIX_CONF_DIR = "/mnt/d/Projects/nixconf";
};
}