Compare commits
4 Commits
645ca12ef2
...
e223895944
Author | SHA1 | Date |
---|---|---|
Bill Ewanick | e223895944 | |
Bill Ewanick | de8714c89a | |
Bill Ewanick | a78b1ee8ab | |
Bill Ewanick | 2dbb513ab6 |
|
@ -1,3 +1,6 @@
|
||||||
|
let
|
||||||
|
PROJECT_ROOT = builtins.toString ./.;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -5,7 +8,7 @@
|
||||||
"ewanick.com" = {
|
"ewanick.com" = {
|
||||||
serverAliases = [ "www.ewanick.com" ];
|
serverAliases = [ "www.ewanick.com" ];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
root * /workspace/nixos-apps/ewanick.com/
|
root * ${PROJECT_ROOT}/ewanick.com/
|
||||||
file_server
|
file_server
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
|
@ -11,9 +11,9 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
# Applications that run on this server
|
# Applications that run on this server
|
||||||
/workspace/nixos-apps/ewanick.com.nix
|
../nixos-apps/ewanick.com.nix
|
||||||
/workspace/nixos-apps/fancytypist.com.nix
|
../nixos-apps/fancytypist.com.nix
|
||||||
/workspace/nixos-apps/git.ewanick.com.nix
|
../nixos-apps/git.ewanick.com.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
# Use the GRUB 2 boot loader.
|
||||||
|
@ -82,6 +82,15 @@
|
||||||
sysstat
|
sysstat
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Enable Nix-ld for remote VSCode SSH to work
|
||||||
|
programs.nix-ld.enable = true;
|
||||||
|
environment.variables = {
|
||||||
|
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [
|
||||||
|
pkgs.stdenv.cc.cc
|
||||||
|
];
|
||||||
|
NIX_LD = lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
|
||||||
|
};
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -93,6 +102,7 @@
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
networking.interfaces.eth0.useDHCP = true;
|
networking.interfaces.eth0.useDHCP = true;
|
||||||
|
|
||||||
|
# Linode Longview monitoring
|
||||||
services.longview = {
|
services.longview = {
|
||||||
enable = true;
|
enable = true;
|
||||||
apiKeyFile = "/var/lib/longview/apiKeyFile";
|
apiKeyFile = "/var/lib/longview/apiKeyFile";
|
||||||
|
@ -105,5 +115,4 @@
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "22.11"; # Did you read the comment?
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1680665430,
|
"lastModified": 1680865339,
|
||||||
"narHash": "sha256-MTVhTukwza1Jlq2gECITZPFnhROmylP2uv3O3cSqQCE=",
|
"narHash": "sha256-H6rmJ1CyJ3Q5ZyoLMYq/UEYMS9Q1orJjRpWiQ47HudE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5233fd2ba76a3accb5aaa999c00509a11fd0793c",
|
"rev": "0040164e473509b4aee6aedb3b923e400d6df10b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
Loading…
Reference in New Issue