blob: 1266b652fd64857ad341a7d75f0d6861927195ea (
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
|
/**
* 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, ... }:
let
cfg = config.libkookie.ui.i3;
libkookie = config.libkookie;
in
with lib;
{
options.libkookie.ui.i3 = {
enable = mkEnableOption "i3 + xfce display manager";
wallpaper = mkOption {
type = types.path;
description = ''
Specify the wallpaper to set. Default to the default
NixOS login screen wallpaper.
'';
};
compton = mkEnableOption "windown composition with compton";
screenshotHandling = mkOption {
type = types.bool;
default = false;
description = ''
Install the gnome-screenshot tool and create a binding to it.
'';
};
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.
'';
};
};
config = mkIf cfg.enable {
home-manager.users = listToAttrs (map (user: lib.nameValuePair "${user}" ({ ... }: {
imports = [
./core.nix
];
})) config.libkookie.activeUsers);
};
}
|