diff options
-rw-r--r-- | home-manager/stvnliu/hyprland.nix | 2 | ||||
-rw-r--r-- | nixos/configuration.nix | 2 | ||||
-rw-r--r-- | nixos/services/laptop.preset.nix | 8 | ||||
-rw-r--r-- | nixos/services/pipewire.service.nix | 21 | ||||
-rw-r--r-- | nixos/services/syncthing.service.nix | 19 |
5 files changed, 46 insertions, 6 deletions
diff --git a/home-manager/stvnliu/hyprland.nix b/home-manager/stvnliu/hyprland.nix index f6ebda3..f16320a 100644 --- a/home-manager/stvnliu/hyprland.nix +++ b/home-manager/stvnliu/hyprland.nix @@ -18,7 +18,7 @@ settings = { "$mod" = "SUPER"; bind = [ - "$mod, D, exec, dmenu" + "$mod, D, exec, ${pkgs.fuzzel}/bin/fuzzel" # firefox quickstart "$mod, F, exec, ${pkgs.firefox}/bin/firefox" # foot terminal diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 90c1564..cbb8bc4 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -13,7 +13,7 @@ #./greetd-sway.nix ./nvidia.nix ./fonts.nix - ./services/nginx.service.nix + ./services/laptop.preset.nix ./hardware-configuration.nix ]; boot.loader = { diff --git a/nixos/services/laptop.preset.nix b/nixos/services/laptop.preset.nix new file mode 100644 index 0000000..74a4b2d --- /dev/null +++ b/nixos/services/laptop.preset.nix @@ -0,0 +1,8 @@ +{...}: +{ + imports = [ + ./nginx.service.nix + ./pipewire.service.nix + ./syncthing.service.nix + ]; +} diff --git a/nixos/services/pipewire.service.nix b/nixos/services/pipewire.service.nix new file mode 100644 index 0000000..83af653 --- /dev/null +++ b/nixos/services/pipewire.service.nix @@ -0,0 +1,21 @@ +{pkgs, ...}: { + services.pipewire = { + enable = true; + alsa = { + enable = true; + support32Bit = true; + }; + pulse.enable = true; + jack.enable = true; + wireplumber.configPackages = [ + (pkgs.writeTextDir "share/wireplumber/bluetooth.lua.d/51-bluez-config.lua" '' + bluez_monitor.properties = { + ["bluez5.enable-sbc-xq"] = true, + ["bluez5.enable-msbc"] = true, + ["bluez5.enable-hw-volume"] = true, + ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]" + } + '') + ]; + }; +} diff --git a/nixos/services/syncthing.service.nix b/nixos/services/syncthing.service.nix index 24dbd28..b1b34af 100644 --- a/nixos/services/syncthing.service.nix +++ b/nixos/services/syncthing.service.nix @@ -1,6 +1,17 @@ -{pkgs, lib, ...}: { - enable = true; - user = "${config.myUserName}"; - + pkgs, + config, + lib, + ... +}: { + services = { + syncthing = { + enable = true; + user = "${config.myUserName}"; + dataDir = "/home/${config.myUserName}/Documents"; + configDir = "/home/${config.myUserName}/Documents/.config/syncthing"; + }; + }; + networking.firewall.allowedTCPPorts = [8384 22000]; + networking.firewall.allowedUDPPorts = [22000 21027]; } |