Unified home and system modules!
This commit is contained in:
@@ -1,21 +1,18 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.samfelag.modules.app.alacritty;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.app.alacritty = {
|
||||
enable = mkEnableOption "alacritty";
|
||||
enable = lib.mkEnableOption "alacritty";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
fonts.fontconfig.enable = true;
|
||||
home.packages = with pkgs; [
|
||||
hm.home.packages = with pkgs; [
|
||||
alacritty
|
||||
(nerdfonts.override { fonts = [ "Iosevka" ]; })
|
||||
];
|
||||
|
||||
home.configFile."alacritty".source = ../../config/.config/alacritty;
|
||||
hm.xdg.configFile."alacritty".source = ../../config/.config/alacritty;
|
||||
};
|
||||
}
|
||||
|
||||
17
modules/app/discord.nix
Normal file
17
modules/app/discord.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.samfelag.modules.app.discord;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.app.discord = {
|
||||
enable = mkEnableOption "discord";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hm.home.packages = with pkgs; [
|
||||
discord
|
||||
];
|
||||
};
|
||||
}
|
||||
15
modules/app/spotify.nix
Normal file
15
modules/app/spotify.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.samfelag.modules.app.spotify;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.app.spotify = {
|
||||
enable = lib.mkEnableOption "spotify";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
hm.home.packages = with pkgs; [
|
||||
spotify
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user