Compare commits

...

7 commits

Author SHA1 Message Date
Fabian Montero edae8a4dea restructure apps config 2024-11-21 02:09:06 -06:00
Fabian Montero 2818223d9b remove vlc 2024-11-21 01:48:20 -06:00
Fabian Montero 50943bb142 modularize browsers 2024-11-21 01:47:28 -06:00
Fabian Montero f5cfd50183 modularize yubikey 2024-11-21 01:42:04 -06:00
Fabian Montero f577fd237d add basic cli packages to baseline 2024-11-21 00:38:11 -06:00
Fabian Montero 8b8aa68811
modularize steam 2024-11-20 23:36:53 -06:00
Fabian Montero a09e88cf3e
fix typo 2024-11-20 23:26:48 -06:00
9 changed files with 88 additions and 38 deletions

View file

@ -12,5 +12,19 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
xdg.enable = true; xdg.enable = true;
home.packages = with pkgs; [
calc
file
git
htop
killall
man-pages
man-pages-posix
tree
units
unzip
zip
];
}; };
} }

19
home/modules/browsers.nix Normal file
View file

@ -0,0 +1,19 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.apps.browsers;
in {
options.local.apps.browsers = {
enable = mkEnableOption "Browser home settings";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
chromium
firefox
];
};
}

View file

@ -8,5 +8,8 @@
./terminal ./terminal
./neovim.nix ./neovim.nix
./baseline.nix ./baseline.nix
./steam
./yubikey.nix
./browsers.nix
]; ];
} }

View file

@ -0,0 +1,21 @@
{
pkgs,
lib,
config,
...
}:
with lib; let
cfg = config.local.apps.steam;
in {
options.local.apps.steam = {
enable = mkEnableOption "Steam settings";
};
config = mkIf cfg.enable {
home.packages = [
(pkgs.callPackage ./package.nix {})
pkgs.protonup
pkgs.winetricks
pkgs.protontricks
];
};
}

20
home/modules/yubikey.nix Normal file
View file

@ -0,0 +1,20 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.apps.yubikey;
in {
options.local.apps.yubikey = {
enable = mkEnableOption "Yubikey home settings";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
yubikey-manager
yubico-pam
yubikey-personalization
];
};
}

View file

@ -4,28 +4,27 @@
pkgs, pkgs,
... ...
}: { }: {
imports = [ local = {
./steam baseline.enable = true;
]; apps = {
terminal.enable = true;
neovim.enable = true;
steam.enable = true;
yubikey.enable = true;
browsers.enable = true;
};
};
home.packages = with pkgs; [ home.packages = with pkgs; [
calc
calibre calibre
chromium
darktable darktable
deluge deluge
discord discord
file
firefox
gcc gcc
gwenview gwenview
htop
killall
kdenlive kdenlive
libreoffice-fresh libreoffice-fresh
lutris lutris
man-pages
man-pages-posix
mpv mpv
obs-studio obs-studio
openrct2 openrct2
@ -36,18 +35,10 @@
runelite runelite
spotify spotify
tdesktop tdesktop
tree
units
unzip
usbutils usbutils
virt-manager virt-manager
vlc
vpsfree-client vpsfree-client
vscodium-fhs vscodium-fhs
yubikey-manager
yubico-pam
yubikey-personalization
zip
zola zola
zoom-us zoom-us
]; ];

View file

@ -1,14 +0,0 @@
{
pkgs,
lib,
config,
...
}:
with lib; {
home.packages = [
(pkgs.callPackage ./package.nix {})
pkgs.protonup
pkgs.winetricks
pkgs.protontricks
];
}

View file

@ -6,16 +6,12 @@
... ...
}: { }: {
imports = [ imports = [
./apps ./apps.nix
./systemd ./systemd
./gui ./gui
./isolation.nix ./isolation.nix
]; ];
local.baseline = true;
local.apps.terminal.enable = true;
local.apps.neovim.enable = true;
nix.registry = { nix.registry = {
"system".to = { "system".to = {
type = "path"; type = "path";