added wm installations
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
{ ... }:
|
||||
{
|
||||
hardware.pulseaudio.enable = true;
|
||||
#hardware.pulseaudio.enable = true;
|
||||
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
12
system/hardware/nvidia.nix
Normal file
12
system/hardware/nvidia.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
};
|
||||
}
|
||||
4
system/services/polkit.nix
Normal file
4
system/services/polkit.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
security.polkit.enable = true;
|
||||
}
|
||||
9
system/wm/dbus.nix
Normal file
9
system/wm/dbus.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.dbus = {
|
||||
enable = true;
|
||||
packages = [ pkgs.dconf ];
|
||||
};
|
||||
|
||||
programs.dconf.enable = true;
|
||||
}
|
||||
8
system/wm/fonts.nix
Normal file
8
system/wm/fonts.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
fonts.packages = with pkgs; [
|
||||
_0xproto
|
||||
ipafont
|
||||
takao
|
||||
];
|
||||
}
|
||||
4
system/wm/gnome-keyring.nix
Normal file
4
system/wm/gnome-keyring.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
}
|
||||
30
system/wm/sddm.nix
Normal file
30
system/wm/sddm.nix
Normal 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
12
system/wm/sway.nix
Normal 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
21
system/wm/x11.nix
Normal 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
7
system/wm/xmonad.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ ... }:
|
||||
{
|
||||
services.xserver.windowManager.xmonad = {
|
||||
enable = true;
|
||||
enableContribAndExtras = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user