module: add wm
This module sets up window managers, and the common xorg configuration between them.
This commit is contained in:
parent
336ffb949b
commit
48e0ba19c2
8 changed files with 54 additions and 37 deletions
|
@ -136,7 +136,6 @@
|
||||||
base = [
|
base = [
|
||||||
(with users; [ root infinidoge ])
|
(with users; [ root infinidoge ])
|
||||||
];
|
];
|
||||||
graphic = base ++ [ graphical.qtile ];
|
|
||||||
|
|
||||||
develop = [
|
develop = [
|
||||||
(with profiles.develop.programming; [
|
(with profiles.develop.programming; [
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ suites, profiles, pkgs, lib, ... }: {
|
{ suites, profiles, pkgs, lib, ... }: {
|
||||||
imports = lib.lists.flatten [
|
imports = lib.lists.flatten [
|
||||||
(with suites; [
|
(with suites; [
|
||||||
graphic
|
base
|
||||||
develop
|
develop
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@ -56,6 +56,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
desktop = {
|
desktop = {
|
||||||
|
wm.enable = true;
|
||||||
gaming.enableAll = true;
|
gaming.enableAll = true;
|
||||||
};
|
};
|
||||||
virtualization.enable = true;
|
virtualization.enable = true;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ suites, profiles, pkgs, lib, ... }: {
|
{ suites, profiles, pkgs, lib, ... }: {
|
||||||
imports = lib.lists.flatten [
|
imports = lib.lists.flatten [
|
||||||
(with suites; [ graphic ])
|
(with suites; [ base ])
|
||||||
|
|
||||||
(with profiles; [
|
(with profiles; [
|
||||||
networking.wireless
|
networking.wireless
|
||||||
|
@ -44,6 +44,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
desktop = {
|
desktop = {
|
||||||
|
wm.enable = true;
|
||||||
gaming = {
|
gaming = {
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
polymc.enable = true;
|
polymc.enable = true;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ suites, profiles, pkgs, lib, ... }: {
|
{ suites, profiles, pkgs, lib, ... }: {
|
||||||
imports = lib.our.flattenListSet {
|
imports = lib.our.flattenListSet {
|
||||||
suites = with suites; [ graphic develop ];
|
suites = with suites; [ base develop ];
|
||||||
imports = [ ./hardware-configuration.nix ];
|
imports = [ ./hardware-configuration.nix ];
|
||||||
profiles = with profiles;
|
profiles = with profiles;
|
||||||
[
|
[
|
||||||
|
@ -26,6 +26,7 @@
|
||||||
services = {
|
services = {
|
||||||
proxy.enable = true;
|
proxy.enable = true;
|
||||||
};
|
};
|
||||||
|
desktop.wm.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.interfaces.wlan0.useDHCP = true;
|
networking.interfaces.wlan0.useDHCP = true;
|
||||||
|
|
46
modules/modules/desktop/wm.nix
Normal file
46
modules/modules/desktop/wm.nix
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
with lib;
|
||||||
|
with lib.hlissner;
|
||||||
|
let
|
||||||
|
cfg = config.modules.desktop.wm;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.desktop.wm = {
|
||||||
|
enable = mkBoolOpt false;
|
||||||
|
qtile.enable = mkBoolOpt false;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable (mkMerge [
|
||||||
|
{
|
||||||
|
info = {
|
||||||
|
graphical = mkDefault true;
|
||||||
|
monitors = mkDefault 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
displayManager.lightdm.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; flatten [
|
||||||
|
(with xorg; [
|
||||||
|
xwininfo
|
||||||
|
xprop
|
||||||
|
])
|
||||||
|
|
||||||
|
xsecurelock
|
||||||
|
blugon
|
||||||
|
];
|
||||||
|
}
|
||||||
|
(mkIf cfg.qtile.enable {
|
||||||
|
services.xserver.windowManager.qtile.enable = true;
|
||||||
|
|
||||||
|
info.env.wm = "qtile";
|
||||||
|
|
||||||
|
fonts.fonts = with pkgs; [
|
||||||
|
powerline-fonts
|
||||||
|
ubuntu_font_family
|
||||||
|
];
|
||||||
|
})
|
||||||
|
]);
|
||||||
|
}
|
|
@ -1,16 +0,0 @@
|
||||||
{ pkgs, ... }: {
|
|
||||||
imports = [ ./xserver.nix ];
|
|
||||||
|
|
||||||
services.xserver.windowManager.qtile.enable = true;
|
|
||||||
|
|
||||||
info.env.wm = "qtile";
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
xsecurelock
|
|
||||||
];
|
|
||||||
|
|
||||||
fonts.fonts = with pkgs; [
|
|
||||||
powerline-fonts
|
|
||||||
ubuntu_font_family
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
{ pkgs, lib, ... }: {
|
|
||||||
services.xserver = {
|
|
||||||
enable = true;
|
|
||||||
displayManager.lightdm.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; lib.flatten [
|
|
||||||
(with xorg; [
|
|
||||||
xwininfo
|
|
||||||
xprop
|
|
||||||
])
|
|
||||||
|
|
||||||
blugon
|
|
||||||
];
|
|
||||||
|
|
||||||
info.monitors = lib.mkDefault 1;
|
|
||||||
}
|
|
|
@ -86,6 +86,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
desktop.wm.qtile.enable = true;
|
||||||
|
|
||||||
software.minipro.enable = true;
|
software.minipro.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue