added mini and some other stuff
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nixpkgs.config.allowBroken = true;
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
kitty
|
kitty
|
||||||
signal-desktop
|
signal-desktop
|
||||||
@ -32,8 +33,13 @@
|
|||||||
transmission-gtk
|
transmission-gtk
|
||||||
bitwarden
|
bitwarden
|
||||||
libreoffice
|
libreoffice
|
||||||
|
etcher
|
||||||
|
mangohud
|
||||||
|
minecraft
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.steam.enable = true;
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
enableDefaultFonts = true;
|
enableDefaultFonts = true;
|
||||||
fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
@ -63,8 +69,6 @@
|
|||||||
|
|
||||||
programs.dconf.enable = true;
|
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";
|
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 = {
|
programs.chromium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -35,6 +35,10 @@
|
|||||||
hostname = "192.168.122.33";
|
hostname = "192.168.122.33";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
matchBlocks."mini" = {
|
||||||
|
hostname = "192.168.0.87";
|
||||||
|
};
|
||||||
|
|
||||||
matchBlocks."router" = {
|
matchBlocks."router" = {
|
||||||
hostname = "192.168.1.1";
|
hostname = "192.168.1.1";
|
||||||
user = "root";
|
user = "root";
|
||||||
|
@ -7,5 +7,6 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
qemuPackage = pkgs.qemu_kvm;
|
qemuPackage = pkgs.qemu_kvm;
|
||||||
};
|
};
|
||||||
|
spiceUSBRedirection.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
39
machine/mini.nix
Normal file
39
machine/mini.nix
Normal 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. It‘s 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?
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user