blob: 1967558f18840b43c2fc766a018f32993b629523 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/**
* A custom module to configure i3. Provides a simple interface to
* set a wallpaper and certain keybinding overrides.
*
* The special thing about this configuration is the way workspaces
* are handled. Instead of numerical workspaces, this configuration
* sets up scripts to manage named workspaces
*/
{ config, lib, pkgs, home-manager, ... } @ args:
let
cfg = config.libkookie.ui.i3;
libkookie = config.libkookie;
in
with lib;
{
options.libkookie.ui.i3 = {
enable = mkEnableOption "i3 + xfce display manager";
compton = mkEnableOption "window composition with compton";
defaultSession = mkEnableOption "i3 as the default login session";
wallpaper = mkOption {
type = types.path;
description = ''
Specify the wallpaper to set. Default to the default
NixOS login screen wallpaper.
'';
};
fonts = mkOption {
type = with types; listOf str;
default = ["monospace"];
description = ''
A set of fonts to use by the i3 module for rendering text
'';
};
modifier = mkOption {
type = types.string;
default = "Mod4";
description = ''
The modifier key used by i3.
By default this is Meta (Mod4).
To see which modifier keys you can use alternatively,
check the i3 documentation.
'';
};
videoDrivers = with lib; mkOption {
type = with types; listOf str;
default = [];
description = ''
The set of video drivers to instantiate on a given system
'';
};
};
config = mkIf cfg.enable (import ./core.nix args);
}
|