Compare commits
3 commits
8237728a12
...
b4d82ccb9c
Author | SHA1 | Date | |
---|---|---|---|
b4d82ccb9c | |||
029ea2d2a6 | |||
c2cb7e1297 |
4 changed files with 82 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
result
|
result
|
||||||
|
*.qcow2
|
||||||
|
|
11
README.md
11
README.md
|
@ -77,12 +77,21 @@ Ram: 32GB
|
||||||
Gpu: NVIDIA GeForce GTX 1070
|
Gpu: NVIDIA GeForce GTX 1070
|
||||||
|
|
||||||
### [kb-games-01](./systems/x86_64-linux/kb-games-01)
|
### [kb-games-01](./systems/x86_64-linux/kb-games-01)
|
||||||
My KVM Server for Gameservers
|
My KVM Server for Gameservers (wip)
|
||||||
|
|
||||||
Cpu: AMD EPYC 7702P 64-Core (4 Cores)
|
Cpu: AMD EPYC 7702P 64-Core (4 Cores)
|
||||||
|
|
||||||
Ram: 16GB
|
Ram: 16GB
|
||||||
|
|
||||||
|
### [U3ncSovm](./systems/x86_64-linux/U3ncSovm)
|
||||||
|
My NAS Server, currently under construction only as VM.
|
||||||
|
|
||||||
|
Cpu: 3 Cores of Host
|
||||||
|
|
||||||
|
Ram: 3GB of Host
|
||||||
|
|
||||||
|
Build: `nixos-rebuild build-vm --flake .#U3ncSovm`
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
[MIT © kB01](../LICENSE)
|
[MIT © kB01](../LICENSE)
|
||||||
|
|
61
systems/x86_64-linux/U3ncSovm/default.nix
Normal file
61
systems/x86_64-linux/U3ncSovm/default.nix
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ # Include the results of the hardware scan.
|
||||||
|
./vm.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Configure Nix
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
nix.package = pkgs.lix;
|
||||||
|
|
||||||
|
# Use the GRUB 2 boot loader.
|
||||||
|
boot.loader.grub.enable = true;
|
||||||
|
boot.loader.grub.efiSupport = true;
|
||||||
|
boot.loader.grub.devices = [ "nodev" ];
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
# Define your hostname.
|
||||||
|
networking.hostName = "U3ncSovm";
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "Europe/Amsterdam";
|
||||||
|
|
||||||
|
# Configure keymap in X11
|
||||||
|
services.xserver.xkb.layout = "us";
|
||||||
|
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.users.master = {
|
||||||
|
initialPassword = "test";
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
];
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||||
|
packages = with pkgs; [
|
||||||
|
tree
|
||||||
|
vim
|
||||||
|
fastfetch
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# List packages installed in system profile. To search, run:
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
vim
|
||||||
|
wget
|
||||||
|
git
|
||||||
|
];
|
||||||
|
|
||||||
|
# SSH and Mosh
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
settings.PasswordAuthentication = false;
|
||||||
|
settings.KbdInteractiveAuthentication = false;
|
||||||
|
ports = [ 5530 ];
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
programs.mosh.enable = true;
|
||||||
|
|
||||||
|
# Do NOT change this value
|
||||||
|
system.stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
}
|
||||||
|
|
10
systems/x86_64-linux/U3ncSovm/vm.nix
Normal file
10
systems/x86_64-linux/U3ncSovm/vm.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
{
|
||||||
|
virtualisation.vmVariant = {
|
||||||
|
# following configuration is added only when building VM with build-vm
|
||||||
|
virtualisation = {
|
||||||
|
memorySize = 4*1024;
|
||||||
|
cores = 3;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue