initial wsl setup
This commit is contained in:
parent
e914535876
commit
e7a0c0f0f2
6 changed files with 185 additions and 9 deletions
48
modules/nixos/submodules/basics-wsl/default.nix
Normal file
48
modules/nixos/submodules/basics-wsl/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.submodules.basics-wsl;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.submodules.basics-wsl = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable basic configuration.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
neofetch
|
||||
|
||||
fd
|
||||
tree
|
||||
ripgrep
|
||||
fzf
|
||||
colorls
|
||||
];
|
||||
|
||||
wyrdgard = {
|
||||
nix = enabled;
|
||||
|
||||
tools = {
|
||||
git = enabled;
|
||||
};
|
||||
|
||||
system.hardware = {
|
||||
networking = enabled;
|
||||
};
|
||||
|
||||
system = {
|
||||
fonts = enabled;
|
||||
locale = enabled;
|
||||
time = enabled;
|
||||
xkb = enabled;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue