2022-12-16 03:50:49 +00:00
|
|
|
{ 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";
|
2022-12-21 18:19:58 +00:00
|
|
|
startMenuLaunchers = false;
|
2022-11-28 16:43:16 +00:00
|
|
|
};
|
|
|
|
|
2023-12-02 01:01:16 +00:00
|
|
|
#system.stateVersion = "21.11";
|
2022-11-28 16:43:16 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
#};
|
|
|
|
}
|