nixos-configs/machine/stagirite/default.nix

70 lines
1.6 KiB
Nix

{ lib, pkgs, config, modulesPath, ... }:
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;
};
#system.stateVersion = "21.11";
networking.hostName = "stagirite";
beatific.defaults.tvbSync = false;
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 ];
#};
}