added mini and some other stuff

This commit is contained in:
Alexander Szczepanski
2021-08-01 13:14:12 +02:00
parent a565591b8c
commit c446c9d356
4 changed files with 50 additions and 2 deletions

View File

@ -3,6 +3,7 @@
{
nixpkgs.config.allowUnfree = true;
nixpkgs.config.allowBroken = true;
environment.systemPackages = with pkgs; [
kitty
signal-desktop
@ -32,8 +33,13 @@
transmission-gtk
bitwarden
libreoffice
etcher
mangohud
minecraft
];
programs.steam.enable = true;
fonts = {
enableDefaultFonts = true;
fontDir.enable = true;
@ -63,8 +69,6 @@
programs.dconf.enable = true;
programs.steam.enable = true;
nixpkgs.config.chromium.commandLineArgs = "--enable-features=WebUIDarkMode,NativeNotifications,VaapiVideoDecoder --ignore-gpu-blocklist --use-gl=desktop --force-dark-mode --disk-cache-dir=/tmp/cache";
programs.chromium = {
enable = true;

View File

@ -35,6 +35,10 @@
hostname = "192.168.122.33";
};
matchBlocks."mini" = {
hostname = "192.168.0.87";
};
matchBlocks."router" = {
hostname = "192.168.1.1";
user = "root";

View File

@ -7,5 +7,6 @@
enable = true;
qemuPackage = pkgs.qemu_kvm;
};
spiceUSBRedirection.enable = true;
};
}

39
machine/mini.nix Normal file
View File

@ -0,0 +1,39 @@
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
/etc/nixos/hardware-configuration.nix
../configs/virtualisation.nix
../configs/common.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "mini";
networking.useDHCP = false;
networking.interfaces.enp3s0.useDHCP = true;
users.users.alex = {
defaultUserShell = pkgs.zsh;
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# 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 = "21.05"; # Did you read the comment?
}