qenya/packages: rename from cli, include common graphical packages

This commit is contained in:
Katherina Walshe-Grey 2024-10-08 10:46:05 +01:00
parent ecd98229ff
commit 84fb7727da
8 changed files with 40 additions and 48 deletions

View file

@ -2,6 +2,7 @@
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
btop
git git
lshw lshw
parted parted

View file

@ -1,15 +0,0 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
tree # like `ls -R` but nicer
units
# Extremely important
fortune
cowsay
lolcat
];
programs.btop.enable = true;
}

View file

@ -2,9 +2,9 @@
imports = [ imports = [
./dconf ./dconf
./plasma ./plasma
./cli.nix
./firefox.nix ./firefox.nix
./git.nix ./git.nix
./packages.nix
./tmux.nix ./tmux.nix
./vscode.nix ./vscode.nix
./xdg-mime-apps.nix ./xdg-mime-apps.nix

View file

@ -1,7 +1,12 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, osConfig, ... }:
let
inherit (lib) mkIf;
in
{ {
programs.firefox = { programs.firefox = lib.mkIf osConfig.qenya.base-graphical.enable {
enable = true;
# coming in 24.11 # coming in 24.11
# languagePacks = [ "en-GB" ]; # languagePacks = [ "en-GB" ];

29
home/qenya/packages.nix Normal file
View file

@ -0,0 +1,29 @@
{ config, lib, pkgs, osConfig, ... }:
let
inherit (lib) optionals;
in
{
home.packages = with pkgs; [
tree # like `ls -R` but nicer
units
# Extremely important
fortune
cowsay
lolcat
] ++ optionals osConfig.qenya.base-graphical.enable [
bitwarden
discord
feishin
gimp-with-plugins
jellyfin-media-player
tor-browser-bundle-bin
zoom-us
# libreoffice
libreoffice
hunspell
hunspellDicts.en_GB-ise
];
}

View file

@ -4,7 +4,8 @@ let
inherit (lib) mkIf; inherit (lib) mkIf;
in in
{ {
programs.vscode = { programs.vscode = mkIf osConfig.qenya.base-graphical.enable {
enable = true;
enableExtensionUpdateCheck = false; enableExtensionUpdateCheck = false;
enableUpdateCheck = false; enableUpdateCheck = false;
package = pkgs.vscodium; package = pkgs.vscodium;

View file

@ -29,19 +29,6 @@
users.users.qenya.hashedPasswordFile = config.age.secrets.user-password-kilgharrah-qenya.path; users.users.qenya.hashedPasswordFile = config.age.secrets.user-password-kilgharrah-qenya.path;
users.users.qenya.extraGroups = [ "wheel" ]; users.users.qenya.extraGroups = [ "wheel" ];
home-manager.users.qenya = { home-manager.users.qenya = {
programs.firefox.enable = true;
programs.vscode.enable = true;
home.packages = with pkgs; [
bitwarden
discord
feishin
gimp-with-plugins
jellyfin-media-player
tor-browser-bundle-bin
zoom-us
];
# For the moment, this hosts some network-accessible services, so we want it on 24/7 # For the moment, this hosts some network-accessible services, so we want it on 24/7
programs.plasma.powerdevil.AC.autoSuspend.action = "nothing"; programs.plasma.powerdevil.AC.autoSuspend.action = "nothing";
}; };

View file

@ -1,28 +1,12 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
programs.firefox.enable = true;
programs.vscode.enable = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
bitwarden
discord
feishin
gimp-with-plugins
jellyfin-media-player
keepassxc keepassxc
tor-browser-bundle-bin
zoom-us
amberol amberol
foliate foliate
nicotine-plus nicotine-plus
# libreoffice
libreoffice
hunspell
hunspellDicts.en_GB-ise
# games # games
openttd openttd
prismlauncher prismlauncher