mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-18 18:36:05 -07:00
add base-plus construct
This commit is contained in:
parent
cb14ec7287
commit
f5d2dbcbf2
@ -10,7 +10,7 @@
|
||||
|
||||
# Modules
|
||||
modules = {
|
||||
extra.enable = true;
|
||||
base-plus.enable = true;
|
||||
desktop = {
|
||||
enable = true;
|
||||
gnome.enable = true;
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
# Modules
|
||||
modules = {
|
||||
extra.enable = true;
|
||||
base-plus.enable = true;
|
||||
desktop = {
|
||||
enable = true;
|
||||
gnome.enable = true;
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
# Modules
|
||||
modules = {
|
||||
extra.enable = true;
|
||||
base-plus.enable = true;
|
||||
desktop = {
|
||||
enable = true;
|
||||
gnome.enable = true;
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
# Modules
|
||||
modules = {
|
||||
extra.enable = true;
|
||||
base-plus.enable = true;
|
||||
desktop = {
|
||||
enable = true;
|
||||
gnome.enable = true;
|
||||
|
@ -92,7 +92,7 @@
|
||||
|
||||
# Modules
|
||||
modules = {
|
||||
extra.enable = true;
|
||||
base-plus.enable = true;
|
||||
services = {
|
||||
ssh.enable = true;
|
||||
syncthing = {
|
||||
|
@ -2,6 +2,7 @@
|
||||
{
|
||||
imports = [
|
||||
./terminal.nix
|
||||
./plus
|
||||
../programs/chezmoi.nix
|
||||
../programs/git.nix
|
||||
../programs/nvim.nix
|
||||
|
9
provision/modules/base/plus/default.nix
Normal file
9
provision/modules/base/plus/default.nix
Normal file
@ -0,0 +1,9 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../programs/beancount.nix
|
||||
../../programs/borg.nix
|
||||
../../programs/yt-dlp.nix
|
||||
];
|
||||
options.modules.base-plus.enable = lib.mkEnableOption "base-plus";
|
||||
}
|
@ -4,7 +4,6 @@
|
||||
./base
|
||||
./desktop
|
||||
./devel
|
||||
./extra
|
||||
./gaming
|
||||
./programs
|
||||
./services
|
||||
|
@ -1,9 +0,0 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
../programs/beancount.nix
|
||||
../programs/borg.nix
|
||||
../programs/yt-dlp.nix
|
||||
];
|
||||
options.modules.extra.enable = lib.mkEnableOption "extra";
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{ config, lib, pkgs, user, ... }:
|
||||
|
||||
let cfg = config.modules.extra;
|
||||
let cfg = config.modules.base-plus;
|
||||
in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ config, pkgs, user, lib, ... }:
|
||||
|
||||
let cfg = config.modules.extra;
|
||||
let cfg = config.modules.base-plus;
|
||||
in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
@ -1,12 +1,16 @@
|
||||
{ config, lib, pkgs, user, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
yt-dlp # Command-line tool to download videos
|
||||
(pkgs.writeScriptBin "ytd_audio" ''
|
||||
#!/usr/bin/env bash
|
||||
yt-dlp -x \
|
||||
-ciw -o "%(title)s.%(ext)s" \
|
||||
--embed-thumbnail -S acodec:m4a "$1"
|
||||
'')
|
||||
];
|
||||
|
||||
let cfg = config.modules.base-plus;
|
||||
in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
yt-dlp # Command-line tool to download videos
|
||||
(pkgs.writeScriptBin "ytd_audio" ''
|
||||
#!/usr/bin/env bash
|
||||
yt-dlp -x \
|
||||
-ciw -o "%(title)s.%(ext)s" \
|
||||
--embed-thumbnail -S acodec:m4a "$1"
|
||||
'')
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user