feat(hyprland): init hyprland as nixos and home-manager modules
This commit is contained in:
parent
f51b21889c
commit
ee0aa7c4a3
6 changed files with 40 additions and 1 deletions
11
systems/modules/hyprland.nix
Normal file
11
systems/modules/hyprland.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ inputs, pkgs, ... }: {
|
||||
programs.uwsm = {
|
||||
enable = false;
|
||||
};
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
#withUWSN = true;
|
||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
./modules/systemd-boot.nix
|
||||
./modules/locale.nix
|
||||
./modules/networking.nix
|
||||
./modules/hyprland.nix
|
||||
];
|
||||
|
||||
networking.hostName = "nemesis";
|
||||
|
|
10
users/rafiq/.config/hypr/hyprland.conf
Normal file
10
users/rafiq/.config/hypr/hyprland.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
monitor = , preferred, auto, 1
|
||||
|
||||
$mainMod = SUPER
|
||||
$terminal = kitty
|
||||
$browser = firefox
|
||||
|
||||
bind = $mainMod, Q, exec, $terminal
|
||||
bind = $mainMod, W, killactive
|
||||
bind = $mainMod, E, exec, $browser
|
||||
bind = $mainMod, M, exit
|
|
@ -2,9 +2,10 @@ _: {
|
|||
imports = [
|
||||
./modules/git.nix # git specific configs
|
||||
./modules/sh.nix # bash and other shell specific configs
|
||||
./modules/wm.nix # window manager configs
|
||||
./modules/nvim.nix # nvim specific configs
|
||||
./modules/terminal.nix # terminal emulator configs
|
||||
./modules/firefox.nix # firefox configs
|
||||
./modules/hyprland.nix # hyprland settings
|
||||
./modules/utils.nix # miscellaneous utilities
|
||||
];
|
||||
|
||||
|
|
7
users/rafiq/modules/firefox.nix
Normal file
7
users/rafiq/modules/firefox.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
firefox
|
||||
];
|
||||
}
|
9
users/rafiq/modules/hyprland.nix
Normal file
9
users/rafiq/modules/hyprland.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, lib, ... }: {
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = null;
|
||||
portalPackage = null;
|
||||
};
|
||||
xdg.configFile."hypr".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/repos/dotfiles/users/rafiq/.config/hypr";
|
||||
xdg.configFile."hypr/hyprland.conf".enable = false; # Needed so home-manager won't create the config file
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue