1
1
Fork 0
nixos-configs/machine/stagirite/default.nix

69 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, pkgs, config, modulesPath, ... }:
2022-11-28 16:43:16 +00:00
with lib;
let
wp = { addr = "localhost"; port = 4567; };
in
{
imports = [
"${modulesPath}/profiles/minimal.nix"
];
wsl = {
enable = true;
wslConf.automount.root = "/mnt";
defaultUser = "nixos";
startMenuLaunchers = false;
2022-11-28 16:43:16 +00:00
};
system.stateVersion = "21.11";
networking.hostName = "stagirite";
fileSystems.winssh = {
device = "C:/Users/tvb/.ssh";
fsType = "drvfs";
options = [ "ro" "noatime" "uid=1000" "gid=100" "case=off" "umask=0077" "fmask=0177" "metadata" ];
depends = [ "/" ];
mountPoint = "/home/nixos/.ssh";
};
documentation.enable = true;
documentation.man.enable = true;
documentation.dev.enable = true;
# Enable nix flakes
nix.package = pkgs.nixFlakes;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
environment.systemPackages =
[
pkgs.vim pkgs.git
pkgs.nmap
(pkgs.python3.withPackages (pypkgs: [ pypkgs.poetry ]))
pkgs.htop pkgs.wget
pkgs.gcc
];
environment.variables = {
EDITOR = "vim";
};
#services.code-server.enable = true;
#services.code-server.extraPackages = [ pkgs.bashInteractive ];
services.openssh.enable = true;
#services.wordpress.webserver = "nginx";
#services.wordpress.sites.${wp.addr} = {
# extraConfig = ''
# define('WPSITEURL','http://${wp.addr}:${toString wp.port}/');
# define('WPHOME','http://${wp.addr}:${toString wp.port}/');
# '';
#};
#services.nginx.virtualHosts.${wp.addr} = {
# listen = [ wp ];
#};
}