Changed: Qemu conf
This commit is contained in:
parent
54a1629e97
commit
3fca95cdab
@ -94,7 +94,7 @@
|
|||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/m920q
|
./hosts/qemu
|
||||||
./users/${username}/nixos.nix
|
./users/${username}/nixos.nix
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
@ -6,41 +6,22 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[ # Include the results of the hardware scan.
|
||||||
../../modules/system.nix
|
../../modules/system.nix
|
||||||
../../modules/nix-settings.nix
|
../../modules/nix-settings.nix
|
||||||
../../modules/vpn.nix
|
|
||||||
../../modules/fonts.nix
|
|
||||||
../../modules/firewall.nix
|
|
||||||
../../modules/localisation.nix
|
|
||||||
../../modules/openssh.nix
|
../../modules/openssh.nix
|
||||||
../../modules/pipewire.nix
|
|
||||||
../../modules/podman.nix
|
|
||||||
../../modules/services.nix
|
../../modules/services.nix
|
||||||
../../modules/regreet/regreet.nix
|
|
||||||
../../modules/plymouth.nix
|
../../modules/plymouth.nix
|
||||||
../../modules/file_managers/spacefm.nix
|
|
||||||
|
|
||||||
# Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader = {
|
boot.loader.grub.enable = true;
|
||||||
grub = {
|
boot.loader.grub.device = "/dev/sda";
|
||||||
enable = true;
|
boot.loader.grub.useOSProber = true;
|
||||||
device = "nodev";
|
|
||||||
useOSProber = true;
|
|
||||||
efiSupport = true;
|
|
||||||
};
|
|
||||||
efi = {
|
|
||||||
canTouchEfiVariables = true;
|
|
||||||
efiSysMountPoint = "/boot/efi"; # ← use the same mount point here.
|
|
||||||
};
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hostName = "nix-virtual"; # Define your hostname.
|
networking.hostName = "nixos"; # Define your hostname.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
# Configure network proxy if necessary
|
||||||
@ -49,23 +30,73 @@
|
|||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
networking.defaultGateway = "192.168.2.1";
|
|
||||||
networking.useDHCP = false;
|
# Set your time zone.
|
||||||
networking.dhcpcd.enable = false;
|
time.timeZone = "Europe/Berlin";
|
||||||
networking.nameservers = [
|
|
||||||
"1.1.1.1"
|
# Select internationalisation properties.
|
||||||
"1.0.0.1"
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
"8.8.8.8"
|
|
||||||
"8.8.4.4"
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "de_DE.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "de_DE.UTF-8";
|
||||||
|
LC_MEASUREMENT = "de_DE.UTF-8";
|
||||||
|
LC_MONETARY = "de_DE.UTF-8";
|
||||||
|
LC_NAME = "de_DE.UTF-8";
|
||||||
|
LC_NUMERIC = "de_DE.UTF-8";
|
||||||
|
LC_PAPER = "de_DE.UTF-8";
|
||||||
|
LC_TELEPHONE = "de_DE.UTF-8";
|
||||||
|
LC_TIME = "de_DE.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Configure keymap in X11
|
||||||
|
services.xserver.xkb = {
|
||||||
|
layout = "de";
|
||||||
|
variant = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Configure console keymap
|
||||||
|
console.keyMap = "de";
|
||||||
|
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.users.phil = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "phil";
|
||||||
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
|
packages = with pkgs; [];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable automatic login for the user.
|
||||||
|
services.getty.autologinUser = "phil";
|
||||||
|
|
||||||
|
# Allow unfree packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
# List packages installed in system profile. To search, run:
|
||||||
|
# $ nix search wget
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
|
# wget
|
||||||
];
|
];
|
||||||
|
|
||||||
# for Nvidia GPU
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
#services.xserver.videoDrivers = ["nvidia"];
|
# started in user sessions.
|
||||||
hardware.opengl.enable = true;
|
# programs.mtr.enable = true;
|
||||||
#hardware.nvidia = {
|
# programs.gnupg.agent = {
|
||||||
# package = config.boot.kernelPackages.nvidiaPackages.stable;
|
# enable = true;
|
||||||
# modesetting.enable = true;
|
# enableSSHSupport = true;
|
||||||
#};
|
# };
|
||||||
|
|
||||||
|
# List services that you want to enable:
|
||||||
|
|
||||||
|
# Enable the OpenSSH daemon.
|
||||||
|
# services.openssh.enable = true;
|
||||||
|
|
||||||
|
# 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
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
@ -73,8 +104,6 @@
|
|||||||
# this value at the release version of the first install of this system.
|
# this value at the release version of the first install of this system.
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "25.05"; # Did you read the comment?
|
system.stateVersion = "24.11"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,17 +14,13 @@
|
|||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
{ device = "/dev/disk/by-uuid/8ace4659-e212-489e-8577-c71eb54ebf57";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
swapDevices =
|
||||||
{ device = "/dev/disk/by-label/NIXBOOT";
|
[ { device = "/dev/disk/by-uuid/7bd0e706-f339-485b-95b8-a1bfbfb6a756"; }
|
||||||
fsType = "vfat";
|
];
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
Loading…
Reference in New Issue
Block a user