Files
nixos-config/modules/host.nix
T

58 lines
1.4 KiB
Nix
Raw Normal View History

2026-11-01 13:19:03 +03:00
{ pkgs, inputs, lib, config, ... }: {
2025-02-02 14:57:36 +03:00
imports = [
./host/bluetooth.nix
./host/bootloader.nix
./host/console.nix
2025-03-21 00:12:27 +03:00
./host/db.nix
2025-02-02 14:57:36 +03:00
./host/env.nix
./host/gamemode.nix
./host/gpg.nix
./host/laptop.nix
2025-12-13 03:08:13 +03:00
./host/network.nix
2025-02-02 14:57:36 +03:00
./host/printing.nix
./host/shutdown-on-lan.nix
./host/sound.nix
./host/virtmanager.nix
./host/vpn.nix
2025-04-08 16:48:13 +03:00
./host/yggdrasil.nix
2026-08-16 22:32:58 +03:00
./host/mtp.nix
2025-02-02 14:57:36 +03:00
];
2026-05-31 19:52:51 +03:00
programs = {
dconf.enable = true;
hyprland.enable = true;
2026-10-30 03:42:29 +03:00
hyprland.package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
2026-05-31 19:52:51 +03:00
};
2026-11-01 13:19:03 +03:00
security.wrappers.Hyprland.source = lib.mkForce
"${config.programs.hyprland.package}/bin/.Hyprland-wrapped";
2026-05-31 19:52:51 +03:00
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-termfilechooser
];
config = {
common = {
default = [ "hyprland" "gtk" ];
"org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" "gtk" ];
"org.freedesktop.impl.portal.Settings" = [ "gtk" ];
};
hyprland = {
default = [ "hyprland" "gtk" ];
"org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" "gtk" ];
"org.freedesktop.impl.portal.Settings" = [ "gtk" ];
};
};
};
2025-02-02 14:57:36 +03:00
services = {
fstrim.enable = true;
2025-03-21 00:12:52 +03:00
upower.enable = true;
2025-02-02 14:57:36 +03:00
};
}