Added plasma6 specialisation for when other people use my devices
This commit is contained in:
parent
f2e0efe82b
commit
91b087f668
5 changed files with 62 additions and 3 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
osConfig,
|
osConfig,
|
||||||
config,
|
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = osConfig.niksos.desktop;
|
enable = osConfig.niksos.desktop;
|
||||||
|
autoEnable = lib.mkDefault true;
|
||||||
|
|
||||||
image = ./background.png;
|
image = ./background.png;
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,12 @@
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
uwsm = lib.getExe pkgs.uwsm;
|
||||||
|
foot = lib.getExe pkgs.foot;
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./virt.nix
|
./virt.nix
|
||||||
|
|
@ -11,9 +19,25 @@
|
||||||
desktop = true;
|
desktop = true;
|
||||||
portable = true;
|
portable = true;
|
||||||
neovim = true;
|
neovim = true;
|
||||||
|
|
||||||
|
kde = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.logind.extraConfig = ''
|
||||||
|
# don’t shutdown when power button is short-pressed
|
||||||
|
HandlePowerKey=ignore
|
||||||
|
'';
|
||||||
|
home-manager.users.jsw.wayland.windowManager.hyprland.settings = {
|
||||||
|
monitor = ["eDP-1,2880x1920@120,0x0,1.5,vrr,1"];
|
||||||
|
bind = [
|
||||||
|
", XF86PowerOff, exec, ${uwsm} app -- pgrep fprintd-verify && exit 0 || ${foot} -a 'foot-fprintd' sh -c 'fprintd-verify && systemctl sleep'"
|
||||||
|
];
|
||||||
|
windowrulev2 = [
|
||||||
|
# FIXME: change to `windowrule` after hyprland update.
|
||||||
|
"float, class:foot-fprintd"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.jsw.wayland.windowManager.hyprland.settings.monitor = ["eDP-1,2880x1920@120,0x0,1.5,vrr,1"];
|
|
||||||
services = {
|
services = {
|
||||||
fprintd.enable = true;
|
fprintd.enable = true;
|
||||||
udev.extraRules = ''
|
udev.extraRules = ''
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
./home-manager.nix
|
./home-manager.nix
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
|
./plasma6.nix
|
||||||
./polkit.nix
|
./polkit.nix
|
||||||
./xdg.nix
|
./xdg.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
33
system/programs/plasma6.nix
Normal file
33
system/programs/plasma6.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options.niksos.kde = lib.mkEnableOption "a kde specialisation. Will enable desktop settings.";
|
||||||
|
|
||||||
|
config.specialisation.de.configuration = lib.mkIf config.niksos.kde {
|
||||||
|
niksos.desktop = lib.mkForce true;
|
||||||
|
|
||||||
|
services = {
|
||||||
|
greetd = let
|
||||||
|
session = {
|
||||||
|
command = "${pkgs.kdePackages.plasma-workspace}/bin/startplasma-wayland";
|
||||||
|
user = "jsw";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
settings = lib.mkForce {
|
||||||
|
terminal.vt = 1;
|
||||||
|
default_session = session;
|
||||||
|
initial_session = session;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
desktopManager.plasma6.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home-manager.users.jsw = {
|
||||||
|
stylix.autoEnable = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
in {
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = lib.mkDefault {
|
||||||
terminal.vt = 1;
|
terminal.vt = 1;
|
||||||
default_session = session;
|
default_session = session;
|
||||||
initial_session = session;
|
initial_session = session;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue