summaryrefslogtreecommitdiff
path: root/configuration/services.nix
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-02-04 19:13:28 +0100
committerJasper Ras <jras@hostnet.nl>2025-02-04 19:13:28 +0100
commit5a062ed4329468249ac3be240aeb65080816f764 (patch)
treecafdaffd9c6d310a1c1ff0401c4b58a6a818b90b /configuration/services.nix
parent98c8c5ded88e4836f590db298cf53a5ec30eb353 (diff)
stuff
Diffstat (limited to 'configuration/services.nix')
-rw-r--r--configuration/services.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/configuration/services.nix b/configuration/services.nix
new file mode 100644
index 0000000..9997d71
--- /dev/null
+++ b/configuration/services.nix
@@ -0,0 +1,47 @@
+{ pkgs, ... }:
+{
+ services = {
+ pipewire = {
+ enable = true;
+ alsa.enable = true;
+ alsa.support32Bit = true;
+ pulse.enable = true;
+ };
+ keyd = {
+ enable = true;
+ keyboards = {
+ default = {
+ ids = [ "*" ];
+ settings.main.capslock = "overload(meta, esc)";
+ };
+ };
+ };
+ greetd = {
+ enable = true;
+ settings = {
+ default_session = {
+ command = "${pkgs.hyprland}/bin/Hyprland";
+ user = "jras";
+ };
+ };
+ };
+ gnome.gnome-keyring.enable = true;
+ openssh = {
+ enable = true;
+ openFirewall = false;
+ settings.AllowUsers = [ "jras" ];
+ };
+ };
+
+ systemd.user.services.kanshi = {
+ description = "kanshi daemon";
+ environment = {
+ WAYLAND_DISPLAY="wayland-1";
+ DISPLAY=":0";
+ };
+ serviceConfig = {
+ Type = "simple";
+ ExecStart = ''${pkgs.kanshi}/bin/kanshi -c kanshi_config_file'';
+ };
+ };
+}