summaryrefslogtreecommitdiff
path: root/configuration/core/services.nix
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2025-02-06 22:03:10 +0000
committerJasper Ras <jaspert.ras@gmail.com>2025-02-06 22:19:49 +0000
commitf71051f47158f57091306e269352d7579522e426 (patch)
tree3b112ddd10797c8669e9b68d483b205d49c3035b /configuration/core/services.nix
parent463f0d40c6ee02e5512269d2e370506a8ca8f965 (diff)
bluurb
Diffstat (limited to 'configuration/core/services.nix')
-rw-r--r--configuration/core/services.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/configuration/core/services.nix b/configuration/core/services.nix
new file mode 100644
index 0000000..9997d71
--- /dev/null
+++ b/configuration/core/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'';
+ };
+ };
+}