Add hyprland + test config

This commit is contained in:
Florian RICHER 2023-08-20 13:12:48 +02:00
parent 3784b4a6fe
commit daadeccc45
4 changed files with 27 additions and 11 deletions

View file

@ -2,6 +2,7 @@
{
imports = [
./hyprland
./programs
];

View file

@ -1,13 +1,12 @@
{
pkgs,
inputs,
...
} @ args: {
home.packages = [];
{ pkgs, ... }: {
xdg.configFile."hypr/set-bg" = {
executable = true;
text = ''
#!/usr/bin/env bash
wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.default;
# settings = import ./settings.nix args;
echo "Salut"
'';
};
}

View file

@ -9,7 +9,8 @@
[
../../modules/system.nix
../../modules/pipewire.nix
../../modules/hyprland.nix
# Include the results of the hardware scan.
./hardware-configuration.nix
];

15
modules/hyprland.nix Normal file
View file

@ -0,0 +1,15 @@
{ pkgs, ... }:
{
programs.hyprland.enable = true;
services.udisks2 = {
enable = true;
mountOnMedia = true;
};
services.xserver = {
enable = true;
excludePackages = [ pkgs.xterm ];
};
}