summaryrefslogtreecommitdiff
path: root/modules/hyprland.nix
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-02-12 08:19:04 +0100
committerJasper Ras <jras@hostnet.nl>2025-02-12 08:19:04 +0100
commit07f84bb581e369ff79100f0417e9d277f3c1fb61 (patch)
tree64ec899f185a3d794791df191f53939dbc67be41 /modules/hyprland.nix
parent8fe481c0858702231335ad6c5eb850b293781b61 (diff)
alot of stuff
Diffstat (limited to 'modules/hyprland.nix')
-rw-r--r--modules/hyprland.nix63
1 files changed, 63 insertions, 0 deletions
diff --git a/modules/hyprland.nix b/modules/hyprland.nix
new file mode 100644
index 0000000..92d5ee2
--- /dev/null
+++ b/modules/hyprland.nix
@@ -0,0 +1,63 @@
+{ inputs, pkgs, ... }:
+{
+ # find a better home:
+ environment.systemPackages = with pkgs; [
+ kitty
+ alacritty
+ firefox
+ whatsapp-for-linux
+ obsidian
+ ];
+
+ nix.settings = {
+ substituters = ["https://hyprland.cachix.org"];
+ trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
+ };
+
+ programs.hyprland = {
+ enable = true;
+ xwayland.enable = true;
+ package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
+ portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
+ };
+
+ # Some of these do not belong here
+ 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;
+ };
+ 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'';
+ };
+ };
+}