Split desktop config into plasma and hyprland
Change Ronin to use plasma wayland instead of hyprland
This commit is contained in:
parent
fe53ce185c
commit
eed323b3e7
|
@ -15,8 +15,8 @@ config.set_environment_variables = {
|
||||||
}
|
}
|
||||||
config.audible_bell = "Disabled"
|
config.audible_bell = "Disabled"
|
||||||
config.font_size = 14
|
config.font_size = 14
|
||||||
config.window_background_opacity = 0.80
|
-- config.window_background_opacity = 0.80
|
||||||
config.macos_window_background_blur = 20
|
-- config.macos_window_background_blur = 20
|
||||||
config.color_scheme = "tokyonight_night"
|
config.color_scheme = "tokyonight_night"
|
||||||
config.hide_tab_bar_if_only_one_tab = true
|
config.hide_tab_bar_if_only_one_tab = true
|
||||||
config.hide_mouse_cursor_when_typing = true
|
config.hide_mouse_cursor_when_typing = true
|
||||||
|
|
|
@ -8,7 +8,7 @@ in {
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../desktop.nix
|
../plasma.nix
|
||||||
../../services/${hostName}.nix
|
../../services/${hostName}.nix
|
||||||
];
|
];
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
|
@ -31,10 +31,7 @@ in {
|
||||||
'';
|
'';
|
||||||
programs.light.enable = true;
|
programs.light.enable = true;
|
||||||
users.users.${user} = userConfig;
|
users.users.${user} = userConfig;
|
||||||
services.greetd.settings = {
|
services.xserver.displayManager.defaultSession = "plasmawayland";
|
||||||
initial_session.user = user;
|
|
||||||
default_session.user = user;
|
|
||||||
};
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
|
|
|
@ -2,12 +2,6 @@
|
||||||
let
|
let
|
||||||
username = "elitherl";
|
username = "elitherl";
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
monitors = {
|
|
||||||
eDP-1 = "preferred,auto,1.25";
|
|
||||||
Iiyama = "preferred,0x185,1";
|
|
||||||
Dell = "preferred,1920x0,1,transform,1";
|
|
||||||
Acer = "highrr,auto,1";
|
|
||||||
};
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
shellConfig
|
shellConfig
|
||||||
|
@ -15,7 +9,6 @@ in {
|
||||||
../../home/git/work.nix
|
../../home/git/work.nix
|
||||||
../../home/ssh/work.nix
|
../../home/ssh/work.nix
|
||||||
../../home/tui
|
../../home/tui
|
||||||
../../home/hyprland
|
|
||||||
../../home/wezterm
|
../../home/wezterm
|
||||||
];
|
];
|
||||||
home = {
|
home = {
|
||||||
|
@ -25,48 +18,4 @@ in {
|
||||||
};
|
};
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
programs.chromium.enable = true;
|
programs.chromium.enable = true;
|
||||||
services.kanshi = {
|
|
||||||
enable = true;
|
|
||||||
systemdTarget = "hyprland-session.target";
|
|
||||||
profiles = {
|
|
||||||
default.outputs = [{
|
|
||||||
criteria = "eDP-1";
|
|
||||||
status = "enable";
|
|
||||||
}];
|
|
||||||
workDock.outputs = [
|
|
||||||
{
|
|
||||||
criteria = "eDP-1";
|
|
||||||
status = "disable";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
criteria = "Iiyama North America PLB2403WS 0574281251316";
|
|
||||||
status = "enable";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
criteria = "Dell Inc. DELL U2417H 5K9YD872FY1L";
|
|
||||||
status = "enable";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
homeDock.outputs = [
|
|
||||||
{
|
|
||||||
criteria = "eDP-1";
|
|
||||||
status = "disable";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
criteria = "Acer Technologies ED270R TJMEE0043W01";
|
|
||||||
status = "enable";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
xdg.configFile."hypr/display.conf".text = ''
|
|
||||||
monitor=eDP-1,${monitors.eDP-1}
|
|
||||||
monitor=desc:Iiyama North America PLB2403WS 0574281251316,${monitors.Iiyama}
|
|
||||||
monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,${monitors.Dell}
|
|
||||||
monitor=desc:Acer Technologies ED270R TJMEE0043W01,${monitors.Acer}
|
|
||||||
|
|
||||||
bindl=,switch:Lid Switch,exec,rfkill unblock wlan
|
|
||||||
bindl=,switch:Lid Switch,exec,pkill -9 kanshi
|
|
||||||
bindl=,switch:Lid Switch,exec,pkill -9 hyprpaper && hyprctl dispatch exec hyprpaper
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,27 +1,17 @@
|
||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
let
|
||||||
hyprland,
|
sddm-catppuccin-macchiato =
|
||||||
...
|
pkgs.callPackage ../pkgs/sddm-catppuccin-macchiato { };
|
||||||
}: {
|
in {
|
||||||
imports = [
|
imports = [ ./common.nix ];
|
||||||
hyprland.nixosModules.default
|
|
||||||
./common.nix
|
|
||||||
];
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
xdg-utils
|
sddm-catppuccin-macchiato
|
||||||
gsettings-desktop-schemas
|
|
||||||
pavucontrol
|
|
||||||
grim
|
|
||||||
slurp
|
|
||||||
bitwarden
|
bitwarden
|
||||||
signal-desktop
|
signal-desktop
|
||||||
libreoffice
|
libreoffice
|
||||||
zotero
|
zotero
|
||||||
];
|
];
|
||||||
security = {
|
security.rtkit.enable = true;
|
||||||
pam.services.swaylock = {};
|
|
||||||
rtkit.enable = true;
|
|
||||||
};
|
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
services = {
|
services = {
|
||||||
|
@ -31,20 +21,18 @@
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
blueman.enable = true;
|
xserver = {
|
||||||
gvfs.enable = true;
|
|
||||||
tumbler.enable = true;
|
|
||||||
greetd = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
layout = "gb";
|
||||||
default_session.command = "Hyprland";
|
xkbVariant = "";
|
||||||
initial_session.command = "Hyprland";
|
displayManager.sddm = {
|
||||||
|
enable = true;
|
||||||
|
theme = "catppuccin-macchiato";
|
||||||
|
settings = { General = { InputMethod = ""; }; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
xdg.portal = {
|
console.keyMap = "uk";
|
||||||
enable = true;
|
programs.dconf.enable = true;
|
||||||
extraPortals = with pkgs; [xdg-desktop-portal-gtk];
|
xdg.portal.enable = true;
|
||||||
};
|
|
||||||
programs.hyprland.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
22
hosts/hyprland.nix
Normal file
22
hosts/hyprland.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ pkgs, hyprland, ... }: {
|
||||||
|
imports = [ ./desktop.nix hyprland.nixosModules.default ];
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
xdg-utils
|
||||||
|
gsettings-desktop-schemas
|
||||||
|
pavucontrol
|
||||||
|
grim
|
||||||
|
slurp
|
||||||
|
];
|
||||||
|
security.pam.services.swaylock = { };
|
||||||
|
services = {
|
||||||
|
blueman.enable = true;
|
||||||
|
gvfs.enable = true;
|
||||||
|
tumbler.enable = true;
|
||||||
|
greetd.settings = {
|
||||||
|
default_session.command = "Hyprland";
|
||||||
|
initial_session.command = "Hyprland";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
|
||||||
|
programs.hyprland.enable = true;
|
||||||
|
}
|
11
hosts/plasma.nix
Normal file
11
hosts/plasma.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
imports = [ ./desktop.nix ];
|
||||||
|
services.xserver.desktopManager.plasma5.enable = true;
|
||||||
|
# programs.kdeconnect.enable = true;
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.libsForQt5.lightly
|
||||||
|
pkgs.libsForQt5.kwindowsystem
|
||||||
|
# pkgs.libsForQt5.ktorrent
|
||||||
|
pkgs.libsForQt5.krdc
|
||||||
|
];
|
||||||
|
}
|
23
pkgs/sddm-catppuccin-macchiato/default.nix
Normal file
23
pkgs/sddm-catppuccin-macchiato/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
stdenvNoCC,
|
||||||
|
fetchFromGitHub,
|
||||||
|
}:
|
||||||
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
pname = "sddm-catppuccin-macchiato-theme";
|
||||||
|
version = "1.0";
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "sddm";
|
||||||
|
rev = "bde6932e1ae0f8fdda76eff5c81ea8d3b7d653c0";
|
||||||
|
sha256 = "ceaK/I5lhFz6c+UafQyQVJIzzPxjmsscBgj8130D4dE=";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
mkdir -p $out/share/sddm/themes
|
||||||
|
cp -aR $src/src/catppuccin-macchiato $out/share/sddm/themes/catppuccin-macchiato
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue