mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
Configures Hyprland basics
This commit is contained in:
parent
729ccef4d2
commit
103f56ebd3
6 changed files with 67 additions and 1 deletions
|
@ -31,6 +31,7 @@
|
|||
imports = [
|
||||
self.homeManagerModules.user-willem
|
||||
self.homeManagerModules.linux
|
||||
inputs.hyprland.homeManagerModules.default
|
||||
];
|
||||
|
||||
programs.emacs.enableOrgTex = false;
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
||||
|
|
2
home-manager/profiles/willem/linux/hyprland.conf
Normal file
2
home-manager/profiles/willem/linux/hyprland.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
$mainMod = SUPER
|
||||
bind = $mainMod, Q, exec, kitty
|
38
home-manager/profiles/willem/linux/hyprland.nix
Normal file
38
home-manager/profiles/willem/linux/hyprland.nix
Normal 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
|
||||
}
|
||||
'';
|
||||
}
|
12
nixos/modules/hyprland.nix
Normal file
12
nixos/modules/hyprland.nix
Normal 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="];
|
||||
};
|
||||
}
|
12
nixos/profiles/linux/hyprland.nix
Normal file
12
nixos/profiles/linux/hyprland.nix
Normal 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="];
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue