modular packages

This commit is contained in:
Mohamed Chrayed 2024-08-03 13:43:50 +02:00
parent f470dc13eb
commit 12e31b005a
10 changed files with 84 additions and 25 deletions

View File

@ -2,6 +2,15 @@
{
imports =
[
# Packages
./packages/customizationpkgs.nix
./packages/devpkgs.nix
./packages/firefoxpkgs.nix
./packages/gamingpkgs.nix
./packages/hardwarepkgs.nix
./packages/plasmapkgs.nix
./packages/steampkgs.nix
# Settings
./system/boot.nix
./system/controller.nix
./system/desktop.nix

View File

@ -145,11 +145,11 @@
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1722678071,
"narHash": "sha256-jfbdSg4YgdkBCfMfUZCbepB8EoBFfvpLnKJgDoL0EqI=",
"lastModified": 1722684766,
"narHash": "sha256-SJjvsTdCqAb3WJG7ZTKKQNoZyfISkRz/OQO7qFBi3k8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "704b2f6673ab7e8b4bfa001b665b69cbb26dc9f0",
"rev": "afad34c2df3e9ca7695745de1cd6dc5a6193daff",
"type": "github"
},
"original": {

View File

@ -0,0 +1,15 @@
{ config, pkgs, pkgs-stable, ... }:
{
environment.systemPackages =
(with pkgs; [
kde-rounded-corners
neofetch
ibm-plex
])
++
(with pkgs-stable; [
]);
}

14
packages/devpkgs.nix Normal file
View File

@ -0,0 +1,14 @@
{ config, pkgs, pkgs-stable, ... }:
{
environment.systemPackages =
(with pkgs; [
git
nixd
])
++
(with pkgs-stable; [
]);
}

7
packages/firefoxpkgs.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, pkgs, pkgs-stable, ... }:
{
programs.firefox = {
enable = true;
languagePacks = ["de"];
};
}

16
packages/gamingpkgs.nix Normal file
View File

@ -0,0 +1,16 @@
{ config, pkgs, pkgs-stable, ... }:
{
environment.systemPackages =
(with pkgs; [
mangohud
unigine-valley
unigine-heaven
unigine-tropics
])
++
(with pkgs-stable; [
]);
}

14
packages/hardwarepkgs.nix Normal file
View File

@ -0,0 +1,14 @@
{ config, pkgs, pkgs-stable, ... }:
{
environment.systemPackages =
(with pkgs; [
pciutils
aha
])
++
(with pkgs-stable; [
]);
}

0
packages/miscpkgs.nix Normal file
View File

View File

@ -1,21 +1,7 @@
{ config, pkgs, pkgs-stable, ... }:
{
programs.firefox = {
enable = true;
languagePacks = ["de"];
};
environment.systemPackages =
(with pkgs; [
mangohud
unigine-valley
unigine-heaven
unigine-tropics
])
++
(with pkgs-stable; [
kdePackages.kate
kdePackages.gwenview
kdePackages.okular
@ -31,13 +17,11 @@
xwaylandvideobridge
krita
haruna
vesktop
bitwarden-desktop
git
pciutils
aha
neofetch
ibm-plex
nixd
])
++
(with pkgs-stable; [
]);
}