1
1
Fork 0

Compare commits

..

No commits in common. "43c19146a9674710323b4259f92dab7b94d5249f" and "0b8ef01e5e8de9bf2c3708fcf12154625a401d57" have entirely different histories.

3 changed files with 48 additions and 11 deletions

View File

@ -62,11 +62,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1690997685, "lastModified": 1688390516,
"narHash": "sha256-naQeYVDiLw+w75ODGYrqGG91SEK1yva2uxyyWahflBs=", "narHash": "sha256-KeZ/oIn95nAwC5els+sEC2Xhl71qXmlgfnkjDGZxLOM=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "4f8b424416a350b09fd4f512e89b4f4f312a79b6", "rev": "1fc66e814dc01acd06db9476ca7ff26b67816322",
"revCount": 23, "revCount": 21,
"type": "git", "type": "git",
"url": "ssh://gitea@git.alogoulogoi.com/Jaculabilis/intake-sources.git" "url": "ssh://gitea@git.alogoulogoi.com/Jaculabilis/intake-sources.git"
}, },

View File

@ -51,7 +51,6 @@
empyrean = nixpkgs-next.lib.nixosSystem { empyrean = nixpkgs-next.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
self.nixosModules.beatific
intake.nixosModules.default intake.nixosModules.default
intake-sources.nixosModules.default intake-sources.nixosModules.default
./machine/empyrean ./machine/empyrean

View File

@ -15,11 +15,6 @@
./inquisitor.nix ./inquisitor.nix
]; ];
beatific.hostName = "empyrean";
beatific.defaults = {
nebula = false;
};
# Use the GRUB 2 boot loader. # Use the GRUB 2 boot loader.
boot.loader.grub = { boot.loader.grub = {
enable = true; enable = true;
@ -31,20 +26,42 @@
nix = { nix = {
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
settings.max-jobs = 2; settings.max-jobs = 2;
extraOptions = ''
experimental-features = nix-command flakes
'';
}; };
swapDevices = [ { device = "/swap"; size = 1024; } ]; swapDevices = [ { device = "/swap"; size = 1024; } ];
networking.hostName = "empyrean";
# The global useDHCP flag is deprecated, therefore explicitly set to false here. # The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config # Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour. # replicates the default behaviour.
networking.useDHCP = false; networking.useDHCP = false;
networking.interfaces.eth0.useDHCP = true; networking.interfaces.eth0.useDHCP = true;
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
# Set your time zone.
time.timeZone = "UTC";
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
tinc_pre vim htop git tinc_pre python3
gitea gitea
]; ];
environment.variables.EDITOR = "vim";
services.nginx = let services.nginx = let
static-site = srv-dir: { static-site = srv-dir: {
@ -85,7 +102,13 @@
acceptTerms = true; acceptTerms = true;
}; };
services.ntp = {
enable = true;
servers = ["time.nist.gov"];
};
services.openssh = { services.openssh = {
enable = true;
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;
settings.PermitRootLogin = "prohibit-password"; settings.PermitRootLogin = "prohibit-password";
}; };
@ -128,7 +151,9 @@
networking.firewall = { networking.firewall = {
enable = true; enable = true;
allowPing = true;
allowedTCPPorts = [ allowedTCPPorts = [
22 # ssh
80 # http 80 # http
443 # https 443 # https
655 # tinc 655 # tinc
@ -139,6 +164,19 @@
]; ];
}; };
users.users.tvb = {
isNormalUser = true;
group = "tvb";
extraGroups = [ "wheel" ]; # Enable sudo for the user.
openssh.authorizedKeys.keyFiles = [
../../keys/tvb.palamas.pub
../../keys/tvb.stagirite.pub
../../keys/tvb.catacomb.pub
../../keys/tvb.unfolder.pub
];
};
users.groups.tvb = {};
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave