module fixup, xserver, graphics etc
This commit is contained in:
@@ -27,9 +27,7 @@
|
||||
"${systemModules}/sysd/security/gnome-keyring"
|
||||
"${systemModules}/sysd/session/dbus"
|
||||
"${systemModules}/sysd/session/dconf"
|
||||
"${systemModules}/sysd/session/xserver/amd"
|
||||
"${systemModules}/sysd/session/xserver/amd/hhkbse"
|
||||
"${systemModules}/sysd/session/xserver/nvidia"
|
||||
"${systemModules}/sysd/session/xserver"
|
||||
"${systemModules}/sysd/system/fwupd"
|
||||
"${systemModules}/sysd/system/greetd"
|
||||
"${systemModules}/sysd/system/gvfs"
|
||||
|
||||
@@ -11,7 +11,6 @@ in {
|
||||
modules.hardware.graphics.amd.enable = mkEnableOption "Enables AMD graphics";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver.videoDrivers = ["amdgpu"];
|
||||
hardware = {
|
||||
graphics = {
|
||||
enable = true;
|
||||
|
||||
@@ -29,10 +29,6 @@ in {
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
videoDrivers = ["nvidia"];
|
||||
xkb.layout = "se";
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
egl-wayland
|
||||
];
|
||||
|
||||
@@ -32,15 +32,11 @@ in {
|
||||
description = "Network interface configurations.";
|
||||
};
|
||||
nm-applet = {
|
||||
enable = mkEnableOption {
|
||||
enable = mkEnableOption "Enables the nm-applet service.";
|
||||
indicator = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Enables the nm-applet service.";
|
||||
};
|
||||
indicator = mkEnableOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Enables the nm-applet indicator";
|
||||
description = "Enables the nm-applet indicator.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.sysd.session.xserver.amd;
|
||||
in {
|
||||
options = {
|
||||
modules.sysd.session.xserver.amd.enable = mkEnableOption "Enables xserver with amdgpu";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
videoDrivers = ["amdgpu"];
|
||||
# xkb = {
|
||||
# extraLayouts.hhkbse = {
|
||||
# description = "HHKBse by cnst";
|
||||
# languages = ["se"];
|
||||
# symbolsFile = /home/cnst/.nix-config/nixos/hosts/cnix/xkb/symbols/hhkbse;
|
||||
# };
|
||||
# layout = "hhkbse";
|
||||
# # dir = "/home/cnst/.nix-config/nixos/xkb";
|
||||
# variant = "";
|
||||
# options = "lv3:rwin_switch";
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
```
|
||||
┌─────┐
|
||||
│ 2 4 │ 2 = SHIFT, 4 = LV3 + SHIFT
|
||||
│ 1 3 │ 1 = NORMAL, 3 = LV3
|
||||
└─────┘
|
||||
╭─────────────────────────────────────────────────────────────────────────────────────────────╮
|
||||
│ HHKB Professional HYBRID • Type-S │
|
||||
│ ┏━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┳━━━━━┓ │▒▒
|
||||
│ ┃ ┃ ! ½ ┃ " ┃ # ˝ ┃ $ ¼ ┃ % ˇ ┃ & √ ┃ / ┃ ( ┃ ) ┃ = ┃ ? ¯ ┃ { ˛ ┃ } ┃ * ¦ ┃ │▒▒
|
||||
│ ┃Esc ┃ 1 ¶ ┃ 2 @ ┃ 3 £ ┃ 4 § ┃ 5 € ┃ 6 ¥ ┃ 7 ┃ 8 [ ┃ 9 ] ┃ 0 \ ┃ + – ┃ ↓ ← ┃ ↑ → ┃ ⌦ | ┃ │▒▒
|
||||
│ ┣━━━━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━┳━━┻━━━━━┫ │▒▒
|
||||
│ ┃ ┃ Q ┃ W ┃ E ┃ R ┃ T ┃ Y ┃ U ┃ I ┃ O ┃ P ┃ Å ┃ ^ ┃ ┃ │▒▒
|
||||
│ ┃Tab ↹ ┃ q ┃ w ┃ e € ┃ r ┃ t ┃ y ┃ u ┃ i ┃ o ┃ p ↑ ┃ å ┃ ' ~ ┃BKSP ⌫ ┃ │▒▒
|
||||
│ ┣━━━━━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻┳━━━━┻━━━━━━━━┫ │▒▒
|
||||
│ ┃ ┃ A ┃ S ┃ D ┃ F ┃ G ┃ H ┃ J ┃ K ┃ L ┃ Ö ┃ Ä ┃ ┃ │▒▒
|
||||
│ ┃Control ┃ a ┃ s ┃ d ┃ f ┃ g ┃ h ┃ j ┃ k ┃ l ← ┃ ö ↓ ┃ ä → ┃Enter ⏎ ┃ │▒▒
|
||||
│ ┣━━━━━━━━━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━┳━┻━━━━━━━┳━━━━━┫ │▒▒
|
||||
│ ┃ ┃ Z ┃ X ┃ C ┃ V ┃ B ┃ N ┃ M ┃ ; „ ┃ : … ┃ _ ┃ ┃ ┃ │▒▒
|
||||
│ ┃Shift ⇧ ┃ z < ┃ x > ┃ c ┃ v ┃ b ┃ n ┃ m ┃ , ‚ ┃ . · ┃ - – ┃Shift ⇧ ┃Fn ┃ │▒▒
|
||||
│ ┗━━━━━━━━┳━━━━┻┳━━━━┻━━━┳━┻━━━━━┻━━━━━┻━━━━━┻━━━━━┻━━━━━┻━━━┳━┻━━━━━┻┳━━━━┻┳━━━━━━━━┻━━━━━┛ │▒▒
|
||||
│ ┃ ┃ ┃ ␣ ⍽ ┃ ┃ ┃ │▒▒
|
||||
│ ┃Alt ┃ <> ┃ ␣ Space ⍽ ┃ <> ┃Alt ┃ │▒▒
|
||||
│ ┗━━━━━┻━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━┻━━━━━┛ │▒▒
|
||||
╰─────────────────────────────────────────────────────────────────────────────────────────────╯▒▒
|
||||
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
|
||||
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
|
||||
```
|
||||
@@ -1,30 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
hostConfig,
|
||||
...
|
||||
}: let
|
||||
path = "${hostConfig}/cnix/xkb/symbols";
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.sysd.session.xserver.amd.hhkbse;
|
||||
in {
|
||||
options = {
|
||||
modules.sysd.session.xserver.amd.hhkbse.enable = mkEnableOption "Enables xserver for amdgpu with HHKBSE";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
videoDrivers = ["amdgpu"];
|
||||
xkb = {
|
||||
extraLayouts.hhkbse = {
|
||||
description = "HHKBse by cnst";
|
||||
languages = ["se"];
|
||||
symbolsFile = "${path}/hhkbse";
|
||||
};
|
||||
layout = "hhkbse";
|
||||
variant = "";
|
||||
options = "lv3:rwin_switch";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
29
system/modules/sysd/session/xserver/default.nix
Normal file
29
system/modules/sysd/session/xserver/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkOption types;
|
||||
cfg = config.modules.sysd.session.xserver;
|
||||
in {
|
||||
options = {
|
||||
modules.sysd.session.xserver = {
|
||||
videoDrivers = mkOption {
|
||||
type = types.listOf (types.enum ["amdgpu" "nvidia"]);
|
||||
default = ["amdgpu"];
|
||||
description = "The names of the video drivers the configuration supports";
|
||||
};
|
||||
xkbLayout = mkOption {
|
||||
type = types.str;
|
||||
default = "se";
|
||||
description = "X keyboard layout, or multiple keyboard layouts separated by commas.";
|
||||
};
|
||||
};
|
||||
};
|
||||
config = {
|
||||
services.xserver = {
|
||||
videoDrivers = cfg.videoDrivers;
|
||||
xkb.layout = cfg.xkbLayout;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.sysd.session.xserver.nvidia;
|
||||
in {
|
||||
options = {
|
||||
modules.sysd.session.xserver.nvidia.enable = mkEnableOption "Enables xserver with nvidia";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
videoDrivers = ["nvidia"];
|
||||
xkb.layout = "se";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user