common/packages: split off file from default.nix

This commit is contained in:
2025-11-05 08:49:47 +09:00
parent f2ce070f0b
commit 664be83949
2 changed files with 48 additions and 45 deletions

View File

@@ -5,6 +5,7 @@ in {
imports = [
./fonts.nix
./nix.nix
./packages.nix
./programs/dconf.nix
./programs/gnupg.nix
@@ -74,12 +75,6 @@ in {
VISUAL = "nvim";
};
systemPackages = with pkgs; ([
wget
] ++ (lib.optionals (!config.machineVars.headless) [
haskellPackages.xmobar
]));
shells = with pkgs; [
bashInteractive
zsh
@@ -166,45 +161,6 @@ in {
hyprlock = { };
};
system.extraDependencies =
lib.optionals (config.machineVars.development) (with pkgs; [
asciidoc
asciidoctor
cabal2nix
clang
dart
dotnet-sdk
# dotnet-sdk_3
# dotnet-sdk_5
dotnetPackages.Nuget
elm2nix
elmPackages.elm
flutter
gcc
ghc
ghcid
# haskellPackages.Cabal_3_6_3_0
maven
nixfmt-rfc-style
nixpkgs-fmt
# nixpkgs-hammering
nodePackages.node2nix
nodePackages.npm
nodePackages.sass
nodePackages.typescript
nodePackages.yarn
nodejs
plantuml
python3
rustc
rustc
rustup
sqlcheck
sqlint
sqlite
sqlite-web
]);
# Realtime scheduling for pipewire and mpd
security.rtkit.enable = !config.machineVars.headless;

47
hosts/common/packages.nix Normal file
View File

@@ -0,0 +1,47 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; ([
wget
] ++ (lib.optionals (!config.machineVars.headless) [
haskellPackages.xmobar
]));
system.extraDependencies =
lib.optionals (config.machineVars.development) (with pkgs; [
asciidoc
asciidoctor
cabal2nix
clang
dart
dotnet-sdk
# dotnet-sdk_3
# dotnet-sdk_5
dotnetPackages.Nuget
elm2nix
elmPackages.elm
flutter
gcc
ghc
ghcid
# haskellPackages.Cabal_3_6_3_0
maven
nixfmt-rfc-style
nixpkgs-fmt
# nixpkgs-hammering
nodePackages.node2nix
nodePackages.npm
nodePackages.sass
nodePackages.typescript
nodePackages.yarn
nodejs
plantuml
python3
rustc
rustc
rustup
sqlcheck
sqlint
sqlite
sqlite-web
]);
}