Created
February 20, 2023 20:32
-
-
Save henrik-ch/24979d1f6c5f54f0794043907c726cfc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, config, modulesPath, ... }: | |
let | |
nixos-wsl = import ./nixos-wsl; | |
in | |
{ | |
imports = [ | |
nixos-wsl.nixosModules.wsl | |
<home-manager/nixos> | |
]; | |
wsl = { | |
enable = true; | |
nativeSystemd = true; | |
wslConf.automount.root = "/mnt"; | |
defaultUser = "nixos"; | |
startMenuLaunchers = true; | |
# Enable native Docker support | |
# docker-native.enable = true; | |
# Enable integration with Docker Desktop (needs to be installed) | |
# docker-desktop.enable = true; | |
}; | |
# Enable nix flakes | |
nix.package = pkgs.nixFlakes; | |
nix.extraOptions = '' | |
experimental-features = nix-command flakes | |
''; | |
users.users.i97henka.isNormalUser = true; | |
home-manager.users.i97henka = { pkgs, ... }: { | |
home.stateVersion = "22.11"; | |
home.packages = [ pkgs.jq pkgs.ripgrep pkgs.gh ]; | |
programs.bash.enable = true; | |
programs.git.enable = true; | |
programs.neovim = { | |
enable = true; | |
defaultEditor = true; | |
viAlias = true; | |
vimAlias = true; | |
vimdiffAlias = true; | |
plugins = with pkgs.vimPlugins; [ | |
nvim-lspconfig | |
nvim-treesitter.withAllGrammars | |
plenary-nvim | |
gruvbox-material | |
mini-nvim | |
]; | |
}; | |
}; | |
environment.systemPackages = with pkgs; [ | |
bat | |
]; | |
system.stateVersion = "22.11"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment