added wm installations

This commit is contained in:
2024-08-13 19:42:30 +09:00
parent ae59ef84f8
commit 043c527b64
15 changed files with 142 additions and 43 deletions

9
system/wm/dbus.nix Normal file
View File

@@ -0,0 +1,9 @@
{ pkgs, ... }:
{
services.dbus = {
enable = true;
packages = [ pkgs.dconf ];
};
programs.dconf.enable = true;
}

8
system/wm/fonts.nix Normal file
View File

@@ -0,0 +1,8 @@
{ pkgs, ... }:
{
fonts.packages = with pkgs; [
_0xproto
ipafont
takao
];
}

View File

@@ -0,0 +1,4 @@
{ ... }:
{
services.gnome.gnome-keyring.enable = true;
}

30
system/wm/sddm.nix Normal file
View File

@@ -0,0 +1,30 @@
{ config, pkgs, ... }:
{
imports = [
./fonts.nix
./dbus.nix
./gnome-keyring.nix
./xmonad.nix
./sway.nix
];
environment.systemPackages = with pkgs; [
wayland
];
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
package = pkgs.sddm;
};
services.xserver = {
enable = true;
xkb = {
layout = "us";
variant = "";
options = "";
};
excludePackages = [ pkgs.xterm ];
};
}

12
system/wm/sway.nix Normal file
View File

@@ -0,0 +1,12 @@
{ pkgs, lib, config, ... }:
{
imports = [
./gnome-keyring.nix
./dbus.nix
];
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
}

21
system/wm/x11.nix Normal file
View File

@@ -0,0 +1,21 @@
{ pkgs, ... }:
{
imports = [
./fonts.nix
./dbus.nix
./gnome-keyring.nix
];
services.xserver = {
enable = true;
layout = "us";
xkbVariant = "";
xkbOptions = "";
excludePackages = [ pkgs.xterm ];
displayManager.sddm = {
enable = true;
wayland.enable = false;
package = pkgs.sddm;
};
};
}

7
system/wm/xmonad.nix Normal file
View File

@@ -0,0 +1,7 @@
{ ... }:
{
services.xserver.windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
};
}