System/home-manager/machines/wsl/home.nix

58 lines
1.6 KiB
Nix
Raw Normal View History

2024-11-28 02:25:07 +00:00
{
2025-01-13 19:53:42 +00:00
withSystem,
inputs,
...
}: {
2024-11-28 02:25:07 +00:00
# perSystem = { ... }: { config.packages.hello = ...; };
flake.homeConfigurations.wsl = withSystem "x86_64-linux" (
2025-01-13 19:53:42 +00:00
ctx @ {
config,
inputs',
...
}:
inputs.home-manager.lib.homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages.${"x86_64-linux"};
extraSpecialArgs = {
inherit inputs inputs';
packages = config.packages;
};
modules = [
(
{
config,
lib,
pkgs,
...
}: {
imports = [
../../modules/programs/shell.nix
../../modules/programs/neovim.nix
(import ../../modules/programs/git.nix {})
../../modules/programs/core.nix
../../modules/programs/devel.nix
../../modules/programs/ssh.nix
(import ../../modules/programs/emacs.nix {})
../../modules/programs/fonts.nix
];
home.username = "nathan";
home.homeDirectory = "/home/nathan/";
programs.command-not-found.enable = true;
home.stateVersion = "24.11";
programs.home-manager.enable = true;
2024-11-29 04:12:35 +00:00
2025-01-13 19:53:42 +00:00
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
2024-11-29 06:05:35 +00:00
2025-01-13 19:53:42 +00:00
# Machine specific configuration
programs.nushell.environmentVariables = {
VISUAL = "nvim";
EDITOR = "nvim";
};
}
)
];
}
2024-11-28 02:25:07 +00:00
);
}