mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
Code refactor
This commit is contained in:
@@ -9,8 +9,10 @@
|
||||
|
||||
networking.hostName = "workstation"; # Define your hostname.
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "24.11"; # Did you read the comment?
|
||||
}
|
||||
|
||||
@@ -1,16 +1,9 @@
|
||||
{ ... }:
|
||||
{
|
||||
networking.networkmanager.enable = true;
|
||||
networking.firewall.allowedUDPPorts = [ 8000 23 ];
|
||||
networking.firewall.allowedTCPPorts = [ 8000 23 ];
|
||||
# networking.bridges = {
|
||||
# "br0" = {
|
||||
# interfaces = [ "eno1" ];
|
||||
# };
|
||||
# };
|
||||
# networking.interfaces.br0.ipv4.addresses = [{
|
||||
# address = "192.168.1.235";
|
||||
# prefixLength = 24;
|
||||
# }];
|
||||
networking.nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
firewall.allowedUDPPorts = [ 8000 ];
|
||||
firewall.allowedTCPPorts = [ 8000 ];
|
||||
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
{ ... }:
|
||||
{
|
||||
services.flatpak.enable = true;
|
||||
services = {
|
||||
flatpak.enable = true;
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ 22 ];
|
||||
settings = {
|
||||
PasswordAuthentication = true;
|
||||
PermitRootLogin = "no";
|
||||
# Enable CUPS to print documents.
|
||||
printing.enable = true;
|
||||
openssh = {
|
||||
enable = true;
|
||||
ports = [ 22 ];
|
||||
settings = {
|
||||
PasswordAuthentication = true;
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
{ currentSystemUser, ... }:
|
||||
{
|
||||
# virtualisation.podman.enable = true;
|
||||
# virtualisation.podman.dockerCompat = true;
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
programs.virt-manager.enable = true;
|
||||
users.groups.libvirtd.members = ["${currentSystemUser}"];
|
||||
virtualisation.libvirtd.enable = true;
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
virtualisation = {
|
||||
docker.enable = true;
|
||||
libvirtd.enable = true;
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user