mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Massive rewrite, further modularized
This commit is contained in:
parent
98e2bfe511
commit
d725ffdbfa
28 changed files with 139 additions and 53 deletions
|
|
@ -6,22 +6,21 @@ let
|
|||
|
||||
in
|
||||
{ options.modules.utils = { enable = mkEnableOption "utils"; };
|
||||
imports = [ ./modules ];
|
||||
config = mkIf cfg.enable {
|
||||
modules = {
|
||||
vim.enable = false;
|
||||
email.enable = true;
|
||||
irc.enable = true;
|
||||
dev.enable = true;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
wget curl tree neofetch
|
||||
unzip fping calc qrencode
|
||||
fd pkg-config pciutils
|
||||
mdbook rsync docker exercism pandoc
|
||||
texlive.combined.scheme-tetex glibc
|
||||
pdftk zoom-us zip teams-for-linux
|
||||
aerc weechat asciidoctor
|
||||
gcc
|
||||
mdbook rsync pandoc texlive.combined.scheme-tetex
|
||||
zip asciidoctor
|
||||
];
|
||||
|
||||
home.file.".config/aerc" = {
|
||||
source = ./aerc;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
8
homeConfig/modules/utils/modules/default.nix
Normal file
8
homeConfig/modules/utils/modules/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
imports = [
|
||||
./dev
|
||||
./email
|
||||
./irc
|
||||
./vim
|
||||
];
|
||||
}
|
||||
20
homeConfig/modules/utils/modules/dev/default.nix
Normal file
20
homeConfig/modules/utils/modules/dev/default.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.dev;
|
||||
|
||||
in
|
||||
{ options.modules.dev = { enable = mkEnableOption "dev"; };
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
nix-init
|
||||
nix-prefetch-git
|
||||
|
||||
glibc
|
||||
gcc
|
||||
|
||||
docker
|
||||
];
|
||||
};
|
||||
}
|
||||
19
homeConfig/modules/utils/modules/email/default.nix
Normal file
19
homeConfig/modules/utils/modules/email/default.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.email;
|
||||
|
||||
in
|
||||
{ options.modules.email = { enable = mkEnableOption "email"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs.aerc = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
home.file.".config/aerc" = {
|
||||
source = ./config;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
14
homeConfig/modules/utils/modules/irc/default.nix
Normal file
14
homeConfig/modules/utils/modules/irc/default.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.irc;
|
||||
|
||||
in
|
||||
{ options.modules.irc = { enable = mkEnableOption "irc"; };
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
weechat
|
||||
];
|
||||
};
|
||||
}
|
||||
0
homeConfig/modules/utils/modules/vim/config/vimrc
Normal file
0
homeConfig/modules/utils/modules/vim/config/vimrc
Normal file
15
homeConfig/modules/utils/modules/vim/default.nix
Normal file
15
homeConfig/modules/utils/modules/vim/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.vim;
|
||||
|
||||
in
|
||||
{ options.modules.vim = { enable = mkEnableOption "vim"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs.vim = {
|
||||
enable = true;
|
||||
extraConfig = import ./config/vimrc;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue