aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/configuration.nix13
-rw-r--r--nixos/hardware-configuration.nix7
-rw-r--r--nixos/services/laptop.preset.nix1
-rw-r--r--nixos/services/misc.service.nix6
-rw-r--r--nixos/services/tailscale.service.nix10
5 files changed, 31 insertions, 6 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix
index 785228a..23387c9 100644
--- a/nixos/configuration.nix
+++ b/nixos/configuration.nix
@@ -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 = {
diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix
index 81b97e4..29eca17 100644
--- a/nixos/hardware-configuration.nix
+++ b/nixos/hardware-configuration.nix
@@ -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
diff --git a/nixos/services/laptop.preset.nix b/nixos/services/laptop.preset.nix
index 31d0137..5b61276 100644
--- a/nixos/services/laptop.preset.nix
+++ b/nixos/services/laptop.preset.nix
@@ -6,5 +6,6 @@
./misc.service.nix
./avahi.service.nix
./printing.service.nix
+ ./tailscale.service.nix
];
}
diff --git a/nixos/services/misc.service.nix b/nixos/services/misc.service.nix
index 72fcd2c..6a10eb0 100644
--- a/nixos/services/misc.service.nix
+++ b/nixos/services/misc.service.nix
@@ -1,7 +1,7 @@
{...}: {
- specialisation.powersave.configuration = {
- services.auto-cpufreq.enable = true;
- };
+ #specialisation.powersave.configuration = {
+ # services.auto-cpufreq.enable = true;
+ #};
services = {
upower.enable = true;
udisks2.enable = true;
diff --git a/nixos/services/tailscale.service.nix b/nixos/services/tailscale.service.nix
new file mode 100644
index 0000000..d0fbde1
--- /dev/null
+++ b/nixos/services/tailscale.service.nix
@@ -0,0 +1,10 @@
+{
+ pkgs,
+ config,
+ ...
+}: {
+ services.tailscale = {
+ enable = true;
+ useRoutingFeatures = "client";
+ };
+}