set up kde for enoko

This commit is contained in:
insects 2024-08-18 22:41:55 +02:00
parent a0be378e79
commit 50ae1f3d3f
10 changed files with 52 additions and 33 deletions

View file

@ -4,38 +4,14 @@
./firefox.nix ./firefox.nix
./alacritty.nix ./alacritty.nix
./gtk.nix ./gtk.nix
./mako.nix
./wofi.nix
./waybar.nix
./vscode.nix ./vscode.nix
]; ];
home.packages = with pkgs; [
wf-recorder
wl-clipboard
vesktop
xdg-utils
nautilus
adwaita-icon-theme
];
home.sessionVariables = { home.sessionVariables = {
MOZ_ENABLE_WAYLAND = 1; MOZ_ENABLE_WAYLAND = 1;
QT_QPA_PLATFORM = "wayland"; QT_QPA_PLATFORM = "wayland";
LIBSEAT_BACKEND = "logind"; LIBSEAT_BACKEND = "logind";
}; };
programs.imv.enable = true;
xdg.mimeApps.enable = true; xdg.mimeApps.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-wlr ];
config = {
common = {
default = [
"wlr"
];
};
};
};
} }

View file

@ -0,0 +1,30 @@
{ pkgs, ... }: {
imports = [
./mako.nix
./wofi.nix
./waybar.nix
];
home.packages = with pkgs; [
wf-recorder
wl-clipboard
vesktop
xdg-utils
nautilus
adwaita-icon-theme
];
programs.imv.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-wlr ];
config = {
common = {
default = [
"wlr"
];
};
};
};
}

View file

@ -2,6 +2,7 @@
{ {
imports = [ imports = [
../../common/desktop ../../common/desktop
../../common/desktop/wlr
./swaylock.nix ./swaylock.nix
./swayidle.nix ./swayidle.nix
]; ];

View file

@ -2,7 +2,7 @@
{ inputs, lib, pkgs, ... }: { { inputs, lib, pkgs, ... }: {
imports = [ imports = [
./global.nix ./global.nix
./desktop/hyprland ./common/desktop
]; ];
config.monitors = [ config.monitors = [
@ -16,9 +16,10 @@
scale = "1.175000"; scale = "1.175000";
} }
]; ];
# Fix HiDPI scaling # Fix HiDPI scaling
config.wayland.windowManager.hyprland = { # config.wayland.windowManager.hyprland = {
settings.xwayland.force_zero_scaling = true; # settings.xwayland.force_zero_scaling = true;
settings.env = "GDK_SCALE,2"; # settings.env = "GDK_SCALE,2";
}; # };
} }

View file

@ -58,6 +58,7 @@
}; };
}; };
targets.wofi.enable = false; targets.wofi.enable = false;
targets.kde.enable = false;
}; };
xdg.mime.enable = true; xdg.mime.enable = true;

5
nixos/desktop/plasma.nix Normal file
View file

@ -0,0 +1,5 @@
{ ... }: {
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
services.desktopManager.plasma6.enable = true;
}

View file

@ -9,7 +9,7 @@
../common ../common
./hardware-configuration.nix ./hardware-configuration.nix
../services/postgres.nix ../services/postgres.nix
../desktop/hyprland.nix ../desktop/plasma.nix
]; ];
nixpkgs = { nixpkgs = {
@ -84,9 +84,14 @@
}; };
# hyprland stuff # hyprland stuff
programs.hyprland = { # programs.hyprland = {
enable = true; # enable = true;
}; # };
# enable ppd specifically for the framework
services.power-profiles-daemon.enable = true;
boot.kernelParams = lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8") ["rtc_cmos.use_acpi_alarm=1"] ;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "24.05"; system.stateVersion = "24.05";