mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Merge branch 'main' of codeberg.org:muon/home
This commit is contained in:
commit
8d18ee6d3e
5 changed files with 45 additions and 18 deletions
|
|
@ -1,5 +1,11 @@
|
|||
{ config, lib, pkgs, inputs, system, ... }:
|
||||
let cfg = config.mods;
|
||||
let
|
||||
cfg = config.mods;
|
||||
keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKEio+Y5wBVD1wILaH2R3wV10FvVjiqy/4gGBWHOITTB muon@muon"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKevYmkH7xvYoquBjnYZ7PJiVqf+GOh9fxAJBN6wZGBB gin4@hi.is"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILmAOd9VbhyJeibt6Vrb101MNTk5W8+rh94Djv/C+pyu muon@muho"
|
||||
];
|
||||
in {
|
||||
# Hardware
|
||||
imports = [ ./hardware-configuration.nix ../ports.nix ];
|
||||
|
|
@ -35,6 +41,9 @@ in {
|
|||
|
||||
services.xserver.windowManager.i3.enable = false;
|
||||
|
||||
users.users.muon.openssh.authorizedKeys.keys = keys;
|
||||
users.users.root.openssh.authorizedKeys.keys = keys;
|
||||
|
||||
# Proprietary </3
|
||||
mods.unfree.steam.enable = false;
|
||||
mods.unfree.nvidia.enable = false;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ in {
|
|||
mods.unfree.minecraft.enable = false;
|
||||
|
||||
# Hardware preferences
|
||||
|
||||
boot = {
|
||||
tmp.cleanOnBoot = true;
|
||||
bootspec.enable = true;
|
||||
|
|
@ -61,6 +60,11 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
# Turn off screen-saver
|
||||
environment.extraInit = ''
|
||||
xset s off -dpms
|
||||
'';
|
||||
|
||||
environment.variables = {
|
||||
WINIT_HIDPI_FACTOR = "1";
|
||||
WINIT_X11_SCALE_FACTOR = "1";
|
||||
|
|
|
|||
|
|
@ -48,11 +48,23 @@ in {
|
|||
root = "/var/www";
|
||||
configuration = { general = { directory-listing = true; }; };
|
||||
};
|
||||
services.nginx.virtualHosts."muon.host" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
default = true;
|
||||
locations."/" = { proxyPass = "http://localhost:8008"; };
|
||||
services.nginx.virtualHosts = {
|
||||
"muon.host" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
default = true;
|
||||
locations."/" = { proxyPass = "http://localhost:8008"; };
|
||||
};
|
||||
"tetterodesportcomplex.nl" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = { proxyPass = "http://10.0.0.3:5001"; };
|
||||
};
|
||||
"www.tetterodesportcomplex.nl" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = { proxyPass = "http://10.0.0.3:5001"; };
|
||||
};
|
||||
};
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue