add hyprland module, add more base configuration
This commit is contained in:
parent
022e09af05
commit
d0dc70b011
9 changed files with 74 additions and 31 deletions
|
@ -3,7 +3,7 @@ _:
|
|||
imports = [
|
||||
./git.nix
|
||||
./gnupg.nix
|
||||
# ./wezterm.nix
|
||||
./wezterm.nix
|
||||
./nixvim
|
||||
./browsers.nix
|
||||
./miscellaneous.nix
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./waybar.nix
|
||||
];
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
settings = {
|
||||
"$mod" = "SUPER";
|
||||
"$terminal" = "wezterm";
|
||||
"$terminal" = "kitty";
|
||||
"$menu" = "fuzzel";
|
||||
"monitor" = "eDP-1, 2256x1504@60, 0x0, 1.5";
|
||||
"monitor" = "eDP-1, 2256x1504@60, 0x0, 1.6";
|
||||
input.touchpad.natural_scroll = true;
|
||||
gestures.workspace_swipe = true;
|
||||
xwayland.force_zero_scaling = true;
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
# set the flake package
|
||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
# make sure to also set the portal package, so that they are in sync
|
||||
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
}
|
41
hosts/common/stylix.nix
Normal file
41
hosts/common/stylix.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
stylix.enable = true;
|
||||
stylix.polarity = "dark";
|
||||
stylix.image = lib.mkDefault ../../wallpapers/nix-wallpaper-nineish-catppuccin-frappe.svg;
|
||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-frappe.yaml";
|
||||
stylix.autoEnable = true;
|
||||
|
||||
stylix.cursor = {
|
||||
name = "Adwaita";
|
||||
package = pkgs.adwaita-icon-theme;
|
||||
size = 24;
|
||||
};
|
||||
stylix.fonts = {
|
||||
serif = {
|
||||
package = pkgs.noto-fonts;
|
||||
name = "Noto Serif";
|
||||
};
|
||||
sansSerif = {
|
||||
package = pkgs.noto-fonts;
|
||||
name = "Noto Sans";
|
||||
};
|
||||
monospace = {
|
||||
package = pkgs.intel-one-mono;
|
||||
name = "Intel One Mono";
|
||||
};
|
||||
emoji = {
|
||||
package = pkgs.noto-fonts-color-emoji;
|
||||
name = "Noto Color Emoji";
|
||||
};
|
||||
sizes = {
|
||||
terminal = 13;
|
||||
applications = 11;
|
||||
desktop = 13;
|
||||
};
|
||||
};
|
||||
fonts.packages = [
|
||||
pkgs.material-design-icons
|
||||
];
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
nix.settings = {
|
||||
substituters = ["https://hyprland.cachix.org"];
|
||||
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
||||
};
|
||||
}
|
|
@ -8,7 +8,6 @@ _:
|
|||
./packages.nix
|
||||
./printing.nix
|
||||
./misc.nix
|
||||
./cachix.nix
|
||||
./nh.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{ inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
@ -21,12 +21,6 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
# set the flake package
|
||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
# make sure to also set the portal package, so that they are in sync
|
||||
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
modules.hyprland.enable = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -7,5 +7,6 @@ _:
|
|||
./gnome.nix
|
||||
./gaming.nix
|
||||
./stylix.nix
|
||||
./hyprland.nix
|
||||
];
|
||||
}
|
||||
|
|
23
modules/hyprland.nix
Normal file
23
modules/hyprland.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ config, inputs, pkgs, lib, ... }:
|
||||
let
|
||||
cfg = config.modules.hyprland;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
modules.hyprland = {
|
||||
enable = lib.mkEnableOption "Enable the hyprland module";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
nix.settings = {
|
||||
substituters = ["https://hyprland.cachix.org"];
|
||||
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
||||
};
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue