Switch to hyprland flake

This commit is contained in:
2024-05-23 23:26:02 +02:00
parent d0fa636f97
commit 1dbc476b8c
6 changed files with 45 additions and 28 deletions

6
hosts/common/cachix.nix Normal file
View File

@@ -0,0 +1,6 @@
{ pkgs, ... }: {
nix.settings = {
substituters = [ "https://hyprland.cachix.org" ];
trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
};
}

5
hosts/common/default.nix Normal file
View File

@@ -0,0 +1,5 @@
{ inputs, self, pks, ... }: {
imports = [
./cachix.nix
];
}

View File

@@ -4,6 +4,7 @@
imports = [
./hardware-configuration.nix
../../system/monitoring.nix
../common
];
# Sops stuff
@@ -93,6 +94,7 @@
services.xserver.windowManager.i3.enable = true;
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
xwayland.enable = true;
portalPackage = pkgs.xdg-desktop-portal-hyprland;
};

View File

@@ -1,7 +1,10 @@
{ config, lib, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
imports = [
./hardware-configuration.nix
../common
];
# Bootloader stuff
boot.kernelParams = [