X11 is broken for games with plasma6.1 so I am commiting to wayland

This commit is contained in:
Christoph Hollizeck 2024-06-24 23:47:31 +02:00
parent 32c1e29f42
commit 903a214e1e
Signed by: Daholli
GPG key ID: 1763BB530F50279E
12 changed files with 35 additions and 41 deletions

View file

@ -2,12 +2,13 @@
description = "NixOs Config";
inputs = {
# nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
# nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
# url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};

View file

@ -16,8 +16,7 @@ in
enable = mkBoolOpt true "Enable Git (Default true)";
userName = mkOpt types.str user.fullName "The name to configure git with.";
userEmail = mkOpt types.str user.email "The email to configure git with.";
signingKey =
mkOpt types.str "6995A5FF33791B7B" "The pub key to sign commits with.";
signingKey = mkOpt types.str "6995A5FF33791B7B" "The pub key to sign commits with.";
signByDefault = mkOpt types.bool true "Whether to sign commits by default.";
};

View file

@ -1,8 +1,4 @@
{
lib,
config,
...
}:
{ lib, config, ... }:
with lib;
with lib.wyrdgard;
let

View file

@ -15,7 +15,11 @@ in
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ polkit xdg-desktop-portal-hyprland dconf ];
environment.systemPackages = with pkgs; [
polkit
xdg-desktop-portal-hyprland
dconf
];
services.xserver = enabled;

View file

@ -15,7 +15,11 @@ let
tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --remember --remember-session";
command = if hyperland.enable then "${tuigreet} --sessions ${hyprland-session}" else "${tuigreet} --sessions ${kde-session}";
command =
if hyperland.enable then
"${tuigreet} --sessions ${hyprland-session}"
else
"${tuigreet} --sessions ${kde-session}";
in
{
options.wyrdgard.graphical-interface.display-manager.greetd = with types; {

View file

@ -1,8 +1,4 @@
{
config,
lib,
...
}:
{ config, lib, ... }:
with lib;
with lib.wyrdgard;
let

View file

@ -20,7 +20,7 @@ let
pinentry-program ${pkgs.pinentry-qt}/bin/pinentry-qt
'';
reload-yubikey = pkgs.writeShellScriptBin "reload-yubikey" ''
reload-yubikey = pkgs.writeShellScriptBin "reload-yubikey" ''
${pkgs.gnupg}/bin/gpg-connect-agent "scd serialno" "learn --force" /bye
'';
in

View file

@ -1,5 +1,4 @@
{
options,
config,
lib,
pkgs,
@ -18,18 +17,12 @@ in
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ xdg-utils ];
services = {
xserver = {
enable = true;
wyrdgard.graphical-interface = {
display-manager.sddm = enabled;
desktop-manager = {
hyprland = enabled;
kde = enabled;
};
displayManager = {
defaultSession = "plasmax11";
sddm = {
enable = true;
wayland.enable = true;
};
};
desktopManager.plasma6 = enabled;
};
};
}

View file

@ -1,5 +1,4 @@
{
options,
config,
pkgs,
lib,
@ -16,6 +15,7 @@ in
};
config = mkIf cfg.enable {
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_8;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

View file

@ -1,8 +1,4 @@
{
lib,
config,
...
}:
{ lib, config, ... }:
with lib;
with lib.wyrdgard;
let
@ -14,14 +10,16 @@ in
};
config = mkIf cfg.enable {
hardware.graphics = enabled;
hardware.graphics = {
enable = true;
enable32Bit = true;
};
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
powerManagement.enable = true;
open = false;
nvidiaSettings = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.beta; # stable, beta
};

View file

@ -16,8 +16,7 @@ in
enable = mkBoolOpt true "Wether or not to enable git (Default enabled)";
userName = mkOpt types.str user.fullName "The name to use git with";
userEmail = mkOpt types.str user.email "The email to use git with";
signingKey =
mkOpt types.str "6995A5FF33791B7B" "The key ID to sign commits with.";
signingKey = mkOpt types.str "6995A5FF33791B7B" "The key ID to sign commits with.";
};
config = mkIf cfg.enable {

View file

@ -9,7 +9,11 @@ with lib.wyrdgard;
{
imports = [ ./hardware.nix ];
environment.systemPackages = with pkgs; [ jetbrains.rust-rover inputs.pyfa teamspeak_client ];
environment.systemPackages = with pkgs; [
jetbrains.rust-rover
inputs.pyfa
teamspeak_client
];
environment.pathsToLink = [ "/libexec" ];