1
1
Fork 0

Compare commits

..

4 Commits

3 changed files with 21 additions and 9 deletions

View File

@ -1,3 +1,6 @@
let
PROJECT_ROOT = builtins.toString ./.;
in
{
services.caddy = {
enable = true;
@ -5,7 +8,7 @@
"ewanick.com" = {
serverAliases = [ "www.ewanick.com" ];
extraConfig = ''
root * /workspace/nixos-apps/ewanick.com/
root * ${PROJECT_ROOT}/ewanick.com/
file_server
'';
};

View File

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
imports =
@ -11,9 +11,9 @@
./hardware-configuration.nix
# Applications that run on this server
/workspace/nixos-apps/ewanick.com.nix
/workspace/nixos-apps/fancytypist.com.nix
/workspace/nixos-apps/git.ewanick.com.nix
../nixos-apps/ewanick.com.nix
../nixos-apps/fancytypist.com.nix
../nixos-apps/git.ewanick.com.nix
];
# Use the GRUB 2 boot loader.
@ -82,6 +82,15 @@
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.
services.openssh = {
enable = true;
@ -93,6 +102,7 @@
networking.useDHCP = false;
networking.interfaces.eth0.useDHCP = true;
# Linode Longview monitoring
services.longview = {
enable = true;
apiKeyFile = "/var/lib/longview/apiKeyFile";
@ -105,5 +115,4 @@
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.11"; # Did you read the comment?
}

View File

@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1680665430,
"narHash": "sha256-MTVhTukwza1Jlq2gECITZPFnhROmylP2uv3O3cSqQCE=",
"lastModified": 1680865339,
"narHash": "sha256-H6rmJ1CyJ3Q5ZyoLMYq/UEYMS9Q1orJjRpWiQ47HudE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5233fd2ba76a3accb5aaa999c00509a11fd0793c",
"rev": "0040164e473509b4aee6aedb3b923e400d6df10b",
"type": "github"
},
"original": {