about summary refs log tree commit diff
path: root/profiles/desktop/default.nix
blob: c0c4a9f95ed2140c42ae557545c20b76e2ba278b (plain) (blame)
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
{ config, lib, ... }:
let cfg = config.my.profiles.desktop;
in {
  options.my.profiles.desktop = with lib; {
    enable = mkEnableOption "desktop profile";
  };
  config = lib.mkIf cfg.enable {
    my = {
      systems = { fonts.enable = true; };
      services = {
        gnome.enable = true;
        # we need avahi in order to use the printer/scanner
        avahi.enable = true;
      };
      home = {
        emacs.enable = true;
        direnv.enable = true;
        drone-cli.enable = true;
        firefox.enable = true;
        pcmanfm.enable = true;
        terminal.program = "alacritty";
        xdg.enable = true;
        eog.enable = true;
        evince.enable = true;
        transmission-remote.enable = true;
      };
      profiles = {
        gtk.enable = true;
        wm.windowManager = "sway";
      };
      programs = { sway.enable = true; };
    };
  };
}