2022-07-25 13:31:09 +02:00
|
|
|
{ pkgs, lib, config, ... }:
|
|
|
|
|
|
|
|
let gui = config.custom.gui;
|
|
|
|
|
|
|
|
# Clipboard wrapper scripts
|
|
|
|
clip = (import ../../scripts/clip.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
});
|
|
|
|
|
|
|
|
in
|
2022-01-12 00:20:57 +01:00
|
|
|
|
2022-01-23 17:03:10 +01:00
|
|
|
with lib; {
|
2022-01-12 00:20:57 +01:00
|
|
|
|
|
|
|
imports = [
|
2022-01-23 17:03:10 +01:00
|
|
|
|
|
|
|
./wm
|
|
|
|
|
2022-01-12 00:20:57 +01:00
|
|
|
./pulseaudio.nix
|
2022-05-23 14:04:21 +02:00
|
|
|
./statusbar.nix
|
2022-05-15 18:35:31 +02:00
|
|
|
./terminal.nix
|
2022-01-12 00:20:57 +01:00
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
./theme.nix
|
|
|
|
|
2022-01-12 00:20:57 +01:00
|
|
|
];
|
2022-01-23 17:03:10 +01:00
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
options.custom.gui = {
|
|
|
|
|
|
|
|
# Use a nested enable option, to allow extension of this option
|
|
|
|
# namespace later on.
|
|
|
|
enable = mkEnableOption "gui applications and window manager";
|
|
|
|
|
|
|
|
};
|
2022-01-12 00:20:57 +01:00
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
config = mkIf (gui.enable) {
|
|
|
|
|
|
|
|
# Import some applications I use on all my graphical systems
|
|
|
|
users.users."riley".packages = (with pkgs; [
|
2022-01-23 17:03:10 +01:00
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
# My browser
|
2022-01-23 17:03:10 +01:00
|
|
|
google-chrome
|
2022-07-25 13:31:09 +02:00
|
|
|
|
|
|
|
# Telegram client
|
2022-01-23 17:03:10 +01:00
|
|
|
tdesktop
|
2022-07-25 13:31:09 +02:00
|
|
|
|
|
|
|
]) ++ (with clip; [ c p ]); # Add clipboard scripts
|
2022-01-23 17:03:10 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|