feat: add tailscale support and update timeZone

This commit is contained in:
Zhongheng Liu 2024-08-31 11:50:24 +03:00
commit 7db7922cd3
No known key found for this signature in database
5 changed files with 275 additions and 3 deletions

View file

@ -46,7 +46,15 @@
};
};
};
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
];
config = {
common.default = ["gtk"];
};
};
systemd.user.services.mpris-proxy = {
description = "Mpris proxy";
after = ["network.target" "sound.target"];
@ -74,13 +82,14 @@
];
# turned off because timedatectl doesn't like it
time.hardwareClockInLocalTime = false;
time.timeZone = "Europe/Athens";
services = {
#displayManager.sddm = {
# enable = true;
# wayland.enable = true;
# theme = "${import ./sddm-theme.nix {inherit pkgs;}}";
#};
automatic-timezoned.enable = true;
#automatic-timezoned.enable = true;
openssh = {
enable = true;
settings = {

View file

@ -12,7 +12,7 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usb_storage" "usbhid" "sd_mod"];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usbhid"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
@ -28,6 +28,11 @@
options = ["fmask=0022" "dmask=0022"];
};
fileSystems."/games" = {
device = "/dev/disk/by-uuid/492b4058-0507-456d-b694-a340222d35af";
fsType = "ext4";
};
swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking

View file

@ -6,5 +6,6 @@
./misc.service.nix
./avahi.service.nix
./printing.service.nix
./tailscale.service.nix
];
}

View file

@ -0,0 +1,9 @@
{
pkgs,
config,
...
}: {
services.tailscale = {
enable = true;
};
}