Initial commit

This commit is contained in:
ktkk 2025-06-05 19:13:28 +00:00
commit b89303566a
6 changed files with 462 additions and 0 deletions

66
hosts/shared/default.nix Normal file
View file

@ -0,0 +1,66 @@
{
pkgs,
outputs,
inputs,
lib,
...
}:
{
environment.systemPackages = with pkgs; [
home-manager
neovim
git
tree
wget
];
programs.direnv = {
enable = true;
};
services.openssh = {
enable = true;
};
networking = {
firewall = {
allowedTCPPorts = [ 22 ];
enable = true;
};
};
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ALL = "en_US.UTF-8";
};
};
nix = {
settings = {
experimental-features = [
"nix-command"
"flakes"
];
};
gc = {
automatic = true;
options = "--delete-older-than 5d";
};
optimise = {
automatic = true;
};
};
system = {
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
stateVersion = "24.05"; # Did you read the comment?
};
}

View file

@ -0,0 +1,20 @@
{
pkgs,
outputs,
inputs,
lib,
...
}:
{
imports = [
../../modules/grafana
../shared
];
networking.hostName = "wsl";
wsl = {
enable = true;
defaultUser = "nixos";
};
}