nixos-vm-2024-11-26-19-48-23
This commit is contained in:
55
machine/nixos-vm/configuration.nix
Executable file
55
machine/nixos-vm/configuration.nix
Executable file
@ -0,0 +1,55 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
outputs,
|
||||
...
|
||||
}: {
|
||||
nixpkgs = {
|
||||
overlays = [
|
||||
outputs.overlays.additions
|
||||
outputs.overlays.modifications
|
||||
outputs.overlays.unstable-packages
|
||||
];
|
||||
config = {allowUnfree = true;};
|
||||
};
|
||||
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../configs/common.nix
|
||||
../../configs/docker.nix
|
||||
../../configs/plasma.nix
|
||||
../../configs/user.nix
|
||||
../../configs/user-gui.nix
|
||||
];
|
||||
|
||||
networking.hostName = "nixos-vm"; # Define your hostname.
|
||||
time.timeZone = "Europe/Berlin";
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
};
|
||||
|
||||
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
||||
# Per-interface useDHCP will be mandatory in the future, so this generated config
|
||||
# replicates the default behaviour.
|
||||
networking.useDHCP = false;
|
||||
|
||||
# hardware.parallels = {
|
||||
# enable = true;
|
||||
# autoMountShares = true;
|
||||
# };
|
||||
|
||||
services = {
|
||||
k3s = {
|
||||
enable = false;
|
||||
role = "server";
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
firewall.enable = false;
|
||||
networkmanager = {enable = true;};
|
||||
};
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
Reference in New Issue
Block a user