Modularise firefox and rofi
This commit is contained in:
15
modules/app/firefox.nix
Normal file
15
modules/app/firefox.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.samfelag.modules.app.firefox;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.app.firefox = {
|
||||
enable = lib.mkEnableOption "firefox";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
firefox
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -28,8 +28,6 @@ in
|
||||
brightnessctl
|
||||
playerctl
|
||||
feh
|
||||
rofi
|
||||
firefox
|
||||
] ++ optionals cfg.laptop laptopPkgs;
|
||||
|
||||
# - Audio ------------------------------------
|
||||
@@ -51,8 +49,12 @@ in
|
||||
# - Modules ----------------------------------
|
||||
|
||||
samfelag.modules = {
|
||||
|
||||
# Basic
|
||||
app.alacritty.enable = true;
|
||||
desktop.polybar.enable = true;
|
||||
desktop.rofi.enable = true;
|
||||
|
||||
desktop.i3 = {
|
||||
enable = true;
|
||||
laptop = cfg.laptop;
|
||||
@@ -60,6 +62,7 @@ in
|
||||
terminal.command = "${pkgs.alacritty}/bin/alacritty";
|
||||
browser.command = "${pkgs.firefox}/bin/firefox";
|
||||
locker.command = "${pkgs.i3lock-blur}/bin/i3lock-color -c 808F85 && sleep 1";
|
||||
app.firefox.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@ in {
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "Iosevka" ]; })
|
||||
playerctl
|
||||
];
|
||||
|
||||
hm.xdg.dataFile."wallpapers".source = paths.wallpapers;
|
||||
|
||||
15
modules/desktop/rofi.nix
Normal file
15
modules/desktop/rofi.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.samfelag.modules.desktop.rofi;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.desktop.rofi = {
|
||||
enable = lib.mkEnableOption "rofi";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
rofi
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user