Merge branch 'vps' of codeberg.org:muon/home into vps

This commit is contained in:
mups 2024-08-27 21:53:29 +00:00
commit ea08e19912
21 changed files with 350 additions and 38 deletions

View file

@ -17,6 +17,7 @@ in {
mods.desktop.enable = true;
mods.desktop.wayland.enable = false;
mods.desktop.gaming.enable = true;
mods.boot.enable = true;
mods.theme.enable = true;
mods.theme.scheme = "woodland";
@ -25,10 +26,14 @@ in {
mods.containers.steam.enable = false;
mods.server.media.enable = true;
mods.server.astral.enable = true;
mods.server.astral.memory = "6G";
mods.server.astral.autoStart = false;
mods.docker.media.enable = false;
mods.server.sync.enable = true;
mods.tailscale.enable = true;
mods.openvpn.enable = false;
mods.wireguard.enable = true;
services.xserver.windowManager.i3.enable = true;
@ -40,7 +45,7 @@ in {
# Hardware preferences
## Mouse
services.xserver.libinput.mouse.accelProfile = "flat";
services.libinput.mouse.accelProfile = "flat";
## Monitors
mods.monitors = {

View file

@ -50,7 +50,7 @@
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
networking.interfaces.enp0s31f6.mtu = 1200;
networking.interfaces.enp0s31f6.mtu = 1500;
# networking.interfaces.tun0.useDHCP = lib.mkDefault true;
# networking.interfaces.vboxnet0.useDHCP = lib.mkDefault true;

View file

@ -0,0 +1,54 @@
{ config, lib, pkgs, inputs, system, ... }:
let
cfg = config.mods;
in {
# Hardware
imports = [
./hardware-configuration.nix
];
# System
mods.user.name = "muon";
networking.hostName = "muvm";
mods.home.file = ./home.nix;
users.users.muon.initialPassword = "changeme";
boot.loader.grub = {
enable = true;
efiSupport = true;
device = "nodev";
};
# Modules
mods.desktop.enable = true;
mods.boot.enable = false;
mods.theme.enable = true;
mods.theme.scheme = "woodland";
mods.theme.wallpaper = ./wallpaper.png;
services.xserver.windowManager.i3.enable = true;
# Proprietary </3
mods.unfree.steam.enable = true;
users.users.muon = {
openssh.authorizedKeys.keys =
[''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKEio+Y5wBVD1wILaH2R3wV10FvVjiqy/4gGBWHOITTB muon@muon'' ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKevYmkH7xvYoquBjnYZ7PJiVqf+GOh9fxAJBN6wZGBB gin4@hi.is'' ];
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys =
[''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKEio+Y5wBVD1wILaH2R3wV10FvVjiqy/4gGBWHOITTB muon@muon'' ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKevYmkH7xvYoquBjnYZ7PJiVqf+GOh9fxAJBN6wZGBB gin4@hi.is'' ];
networking.firewall = {
enable = true;
allowedTCPPorts = [ 22 ];
};
system.stateVersion = "24.05"; # Did you read the comment?
}

View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, modulesPath, ... }: {
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
networking.useDHCP = lib.mkForce true;
virtualisation.vmVariant = {
# following configuration is added only when building VM with build-vm
virtualisation = {
memorySize = 2048; # Use 2048MiB memory.
cores = 3;
graphics = false;
};
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

9
hosts/muvm/home.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs, lib, osConfig,... }: {
# Modules
mods.terminal.zsh.enable = true;
mods.terminal.development.enable = true;
mods.terminal.tools.enable = true;
# Version of first install
home.stateVersion = "24.05";
}

BIN
hosts/muvm/wallpaper.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 KiB