hyprland on nixos default
This commit is contained in:
+10
-7
@@ -9,16 +9,19 @@
|
||||
[ # Include the results of the hardware scan.
|
||||
inputs.home-manager.nixosModules.default
|
||||
./modules/git
|
||||
# ./modules/hyprland
|
||||
./modules/hyprland
|
||||
# ./modules/tor
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
# set the flake package
|
||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
# wayland.windowManager.hyprland = {
|
||||
# enable = true;
|
||||
# # set the flake package
|
||||
# package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
# portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
# };
|
||||
|
||||
|
||||
|
||||
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
|
||||
|
||||
@@ -26,5 +26,22 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# homeConfigurations = {
|
||||
# "marc@laptop" = inputs.home-manager.lib.homeManagerConfiguration {
|
||||
# pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
# specialArgs = { inherit inputs; };
|
||||
# modules = [
|
||||
# {
|
||||
# wayland.windowManager.hyprland = {
|
||||
# enable = true;
|
||||
# # set the flake package
|
||||
# package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
# portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
||||
@@ -15,34 +15,42 @@
|
||||
# }
|
||||
|
||||
{inputs, pkgs, ...}: {
|
||||
# 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;
|
||||
# };
|
||||
# home.file.".config/hypr/hyprland.conf".source = ./hyprland.conf;
|
||||
|
||||
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
"$mod" = "SUPER";
|
||||
bind =
|
||||
[
|
||||
"$mod, D, exec, wofi --show drun"
|
||||
", Print, exec, grimblast copy area"
|
||||
]
|
||||
++ (
|
||||
# workspaces
|
||||
# binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
|
||||
builtins.concatLists (builtins.genList (i:
|
||||
let ws = i + 1;
|
||||
in [
|
||||
"$mod, code:1${toString i}, workspace, ${toString ws}"
|
||||
"ALT, code:1${toString i}, movetoworkspace, ${toString ws}"
|
||||
]
|
||||
)
|
||||
9)
|
||||
);
|
||||
|
||||
# wayland.windowManager.hyprland.settings = {
|
||||
# "$mod" = "SUPER";
|
||||
# bind =
|
||||
# [
|
||||
# "$mod, D, exec, wofi --show drun"
|
||||
# ", Print, exec, grimblast copy area"
|
||||
# ]
|
||||
# ++ (
|
||||
# # workspaces
|
||||
# # binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
|
||||
# builtins.concatLists (builtins.genList (i:
|
||||
# let ws = i + 1;
|
||||
# in [
|
||||
# "$mod, code:1${toString i}, workspace, ${toString ws}"
|
||||
# "ALT, code:1${toString i}, movetoworkspace, ${toString ws}"
|
||||
# ]
|
||||
# )
|
||||
# 9)
|
||||
# );
|
||||
# };
|
||||
|
||||
nix.settings = {
|
||||
substituters = ["https://hyprland.cachix.org"];
|
||||
trusted-substituters = ["https://hyprland.cachix.org"];
|
||||
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
imports =
|
||||
[
|
||||
../../modules/git
|
||||
../../modules/hyprland
|
||||
# ../../modules/hyprland
|
||||
];
|
||||
|
||||
|
||||
|
||||
home-manager.users.marc = { pkgs, ... }: {
|
||||
home.packages = with pkgs; [
|
||||
# cli
|
||||
|
||||
Reference in New Issue
Block a user