Configures Hyprland basics

This commit is contained in:
willemml 2023-11-08 18:12:28 -08:00
parent 729ccef4d2
commit 103f56ebd3
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
6 changed files with 67 additions and 1 deletions

View file

@ -31,6 +31,7 @@
imports = [
self.homeManagerModules.user-willem
self.homeManagerModules.linux
inputs.hyprland.homeManagerModules.default
];
programs.emacs.enableOrgTex = false;

View file

@ -40,11 +40,12 @@
nixpkgs.config.allowUnfree = true;
};
nixosConfigurations.winbox = inputs.nixpkgs.lib.nixosSystem {
nixosConfigurations.nixbox = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
self.nixosModules.base
self.nixosModules.willem-home
self.nixosModules.hyprland
../../nixos/hosts/nixbox.nix
];

View file

@ -0,0 +1,2 @@
$mainMod = SUPER
bind = $mainMod, Q, exec, kitty

View file

@ -0,0 +1,38 @@
{
config,
pkgs,
lib,
...
}: {
home.packages = with pkgs; [
alacritty
discord
firefox
lxappearance
pipewire
polkit-kde-agent
qt6.qtwayland
qt6ct
xdg-desktop-portal-hyprland
xdg-desktop-portal
];
gtk = {
enable = true;
theme = {
name = "FlatColor";
};
};
wayland.windowManager.hyprland.enable = true;
services.mako.enable = true;
wayland.windowManager.hyprland.extraConfig = ''
bind = SUPER, SPACE, exec, alacritty
input {
kb_layout=us
kb_variant=colemak
}
'';
}

View file

@ -0,0 +1,12 @@
{
inputs,
pkgs,
...
}: {
programs.hyprland.enable = true;
programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland;
nix.settings = {
substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
};
}

View file

@ -0,0 +1,12 @@
{
inputs,
pkgs,
...
}: {
programs.hyprland.enable = true;
programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland;
nix.settings = {
substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
};
}