From 3d052255b167f7393c57d8276354027c78e6b9f7 Mon Sep 17 00:00:00 2001 From: danny Date: Mon, 11 Aug 2025 01:31:15 +0800 Subject: [PATCH] feat: new device --- system/dev/ahlap/default.nix | 113 +++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 system/dev/ahlap/default.nix diff --git a/system/dev/ahlap/default.nix b/system/dev/ahlap/default.nix new file mode 100644 index 0000000..f41f46b --- /dev/null +++ b/system/dev/ahlap/default.nix @@ -0,0 +1,113 @@ +{ + username, + config, + lib, + pkgs, + ... +}: +let + faceIcon = pkgs.fetchurl { + url = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRwExkFtlGxRWflUTcPCfneHSC8E0WuIWNbvkQ4-5_R8x4BXCYx"; + hash = "sha256-OXP3iv7JOz/uhw4P90m54yY5j79gDBBVdoySFZmYAZY="; + }; + + monitors = [ + ]; +in +{ + imports = [ + ./hardware-configuration.nix + ../../modules/presets/basic.nix + + # Nvidia GPU Driver + (import ../../modules/nvidia.nix { + nvidia-mode = "offload"; + intel-bus-id = "PCI:0:2:0"; + nvidia-bus-id = "PCI:59:0:0"; + }) + + ./boot.nix # Extra Boot Options + ../../modules/gaming.nix + ../../modules/wine.nix + ../../modules/localsend.nix + (import ../../modules/airplay.nix { hostname = config.networking.hostName; }) + # (import ../../modules/virtualization.nix { inherit username; }) + # ../../modules/wireguard.nix + ]; + + home-manager = { + users."${username}" = { + imports = [ + ../../../home/presets/basic.nix + + { + home.file.".face" = { + source = lib.mkForce faceIcon; + }; + } + + # Hyprland + (import ../../../home/user/hyprland.nix { inherit monitors; }) + { + wayland.windowManager.hyprland = { + settings = { + input = { + kb_options = lib.mkForce [ ]; + }; + }; + }; + } + + (import ../../../home/user/waybar.nix { + settings = [ + # monitor 1 + { + output = "eDP-1"; + modules-left = [ + "custom/os" + "hyprland/workspaces" + "clock" + "custom/cava" + "mpris" + ]; + modules-right = ( + [ + "wlr/taskbar" + ] + ++ ( + if config.programs.gamemode.enable then + [ + "custom/gamemode" + ] + else + [ ] + ) + ++ [ + # "custom/bitwarden" + "custom/airplay" + "custom/wallRand" + "custom/recording" + "idle_inhibitor" + "network" + "cpu" + "memory" + "pulseaudio" + "custom/swaync" + ] + ); + } + ]; + }) + + # Git + (import ../../../home/user/git.nix { + inherit username; + email = "skyblocksians@gmail.com"; + }) + ]; + }; + }; + + users.users."${username}".openssh.authorizedKeys.keys = [ + ]; +}