about summary refs log tree commit diff
path: root/profiles/desktop/default.nix
blob: 6b9f54b3629fbb5b1c80030b9c6cf0505c502a99 (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
{ 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; };
      home = {
        emacs.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; };
    };
  };
}