From 1125aaa49aec6a220fd3b9d03076fec398b35a14 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 9 Apr 2022 09:42:03 -0700 Subject: add a few more modules to home/ and delete stuff --- profiles/default.nix | 2 +- profiles/desktop/default.nix | 25 +++++++++++++++---------- profiles/multimedia/default.nix | 12 ++++++++++++ 3 files changed, 28 insertions(+), 11 deletions(-) create mode 100644 profiles/multimedia/default.nix (limited to 'profiles') diff --git a/profiles/default.nix b/profiles/default.nix index 8cf62de..9c0d2f9 100644 --- a/profiles/default.nix +++ b/profiles/default.nix @@ -1 +1 @@ -{ ... }: { imports = [ ./laptop ./gtk ./trusted ./wm ./desktop ]; } +{ ... }: { imports = [ ./laptop ./gtk ./trusted ./wm ./desktop ./multimedia ]; } diff --git a/profiles/desktop/default.nix b/profiles/desktop/default.nix index 0ad6e12..8ebe0da 100644 --- a/profiles/desktop/default.nix +++ b/profiles/desktop/default.nix @@ -5,15 +5,20 @@ in { enable = mkEnableOption "desktop profile"; }; config = lib.mkIf cfg.enable { - my.systems.fonts.enable = true; - my.services.gnome.enable = true; - my.programs.sway.enable = true; - my.home.emacs.enable = true; - my.home.firefox.enable = true; - my.home.terminal.program = "alacritty"; - my.home.xdg.enable = true; - my.profiles.gtk.enable = true; - my.profiles.trusted.enable = true; - my.profiles.wm.windowManager = "sway"; + my = { + systems = { fonts.enable = true; }; + services = { gnome.enable = true; }; + home = { + emacs.enable = true; + firefox.enable = true; + terminal.program = "alacritty"; + xdg.enable = true; + }; + profiles = { + gtk.enable = true; + wm.windowManager = "sway"; + }; + programs = { sway.enable = true; }; + }; }; } diff --git a/profiles/multimedia/default.nix b/profiles/multimedia/default.nix new file mode 100644 index 0000000..4c1d3fe --- /dev/null +++ b/profiles/multimedia/default.nix @@ -0,0 +1,12 @@ +{ config, lib, ... }: +let cfg = config.my.profiles.multimedia; +in { + options.my.profiles.multimedia = with lib; { + enable = mkEnableOption "multimedia profile"; + }; + config = lib.mkIf cfg.enable { + my.home.vlc.enable = true; + my.home.mpv.enable = true; + my.home.sublime-music.enable = true; + }; +} -- cgit 1.4.1