Refactor codebase to use nix modules

This commit is contained in:
Julia Lange 2024-04-14 05:40:02 -07:00
parent a4735423b4
commit ffada2703c
114 changed files with 1018 additions and 744 deletions

View file

@ -0,0 +1,13 @@
{ config, pkgs, lib, ... }:
{
options.beeper = {
enable = lib.mkEnableOption "Enables beeper";
};
config = lib.mkIf config.beeper.enable {
home.packages = with pkgs; [
beeper
];
};
}

View file

@ -0,0 +1,8 @@
{ config, pkgs, ... }:
{
imports = [
./discord
./beeper
];
}

View file

@ -0,0 +1,12 @@
{ config, pkgs, lib, ... }:
{
options.discord = {
enable = lib.mkEnableOption "Enables discord";
};
config = lib.mkIf config.discord.enable {
home.packages = with pkgs; [
vesktop # Base app
];
};
}