nixconf/hosts/nixosWSL/configuration.nix
Deepak Mallubhotla b7d9e0ba7e
All checks were successful
gitea-deepak/nixconf/pipeline/head This commit looks good
feat: adds lsp nix stuff and gpg stuff for config
2023-09-23 16:05:57 +00:00

68 lines
1.4 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ pkgs, modulesPath, ... }:
{
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
'';
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
];
programs.gnupg.agent = {
enable = true;
pinentryFlavor = "curses";
enableSSHSupport = true;
};
environment.variables = {
DPK_NIX_CONF_DIR = "/mnt/d/Projects/nixconf";
};
}