mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
local.packages convenience option
This commit is contained in:
parent
4ecebe8210
commit
99f42f5841
5 changed files with 109 additions and 106 deletions
|
|
@ -25,6 +25,37 @@
|
||||||
"steam-unwrapped"
|
"steam-unwrapped"
|
||||||
"steam-run"
|
"steam-run"
|
||||||
];
|
];
|
||||||
|
packages = {
|
||||||
|
inherit (pkgs)
|
||||||
|
bitwarden-desktop # store stuff
|
||||||
|
qbittorrent # steal stuff
|
||||||
|
pavucontrol # gui volume control
|
||||||
|
pcmanfm # file manager
|
||||||
|
vlc # play stuff
|
||||||
|
ripgrep
|
||||||
|
fd
|
||||||
|
jq
|
||||||
|
wget
|
||||||
|
xautoclick
|
||||||
|
prismlauncher
|
||||||
|
deadnix
|
||||||
|
statix
|
||||||
|
#element-desktop
|
||||||
|
vesktop
|
||||||
|
gh
|
||||||
|
nixfmt-rfc-style
|
||||||
|
prusa-slicer # 3D printer slicer
|
||||||
|
# QMK configuration
|
||||||
|
#via
|
||||||
|
#qmk
|
||||||
|
|
||||||
|
;
|
||||||
|
inherit (nvim-flake.packages) neovim;
|
||||||
|
inherit (self'.packages) lint;
|
||||||
|
|
||||||
|
librewolf = pkgs.librewolf.override { cfg.speechSynthesisSupport = false; };
|
||||||
|
nixpkgs-review = pkgs.nixpkgs-review.override { nix = config.nix.package; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
|
|
||||||
|
|
@ -88,43 +119,10 @@
|
||||||
};
|
};
|
||||||
sops.secrets.github_token = { };
|
sops.secrets.github_token = { };
|
||||||
|
|
||||||
environment = {
|
environment.etc = {
|
||||||
systemPackages = builtins.attrValues {
|
|
||||||
inherit (pkgs)
|
|
||||||
bitwarden-desktop # store stuff
|
|
||||||
qbittorrent # steal stuff
|
|
||||||
pavucontrol # gui volume control
|
|
||||||
pcmanfm # file manager
|
|
||||||
vlc # play stuff
|
|
||||||
ripgrep
|
|
||||||
fd
|
|
||||||
jq
|
|
||||||
wget
|
|
||||||
xautoclick
|
|
||||||
prismlauncher
|
|
||||||
deadnix
|
|
||||||
statix
|
|
||||||
#element-desktop
|
|
||||||
vesktop
|
|
||||||
gh
|
|
||||||
nixfmt-rfc-style
|
|
||||||
prusa-slicer # 3D printer slicer
|
|
||||||
# QMK configuration
|
|
||||||
#via
|
|
||||||
#qmk
|
|
||||||
|
|
||||||
;
|
|
||||||
inherit (nvim-flake.packages) neovim;
|
|
||||||
inherit (self'.packages) lint;
|
|
||||||
|
|
||||||
librewolf = pkgs.librewolf.override { cfg.speechSynthesisSupport = false; };
|
|
||||||
nixpkgs-review = pkgs.nixpkgs-review.override { nix = config.nix.package; };
|
|
||||||
};
|
|
||||||
etc = {
|
|
||||||
"jdks/17".source = "${pkgs.openjdk17}/bin";
|
"jdks/17".source = "${pkgs.openjdk17}/bin";
|
||||||
"jdks/8".source = "${pkgs.openjdk8}/bin";
|
"jdks/8".source = "${pkgs.openjdk8}/bin";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
services.udev.packages = [
|
services.udev.packages = [
|
||||||
pkgs.android-udev-rules
|
pkgs.android-udev-rules
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
kmscon.enable = true;
|
kmscon.enable = true;
|
||||||
};
|
};
|
||||||
};
|
packages = {
|
||||||
|
|
||||||
environment.systemPackages = builtins.attrValues {
|
|
||||||
inherit (pkgs)
|
inherit (pkgs)
|
||||||
vlc
|
vlc
|
||||||
pavucontrol # gui volume control
|
pavucontrol # gui volume control
|
||||||
|
|
@ -27,6 +25,8 @@
|
||||||
;
|
;
|
||||||
inherit (nvim-flake.packages) neovim;
|
inherit (nvim-flake.packages) neovim;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.xserver.videoDrivers = [ "modesetting" ];
|
services.xserver.videoDrivers = [ "modesetting" ];
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,31 @@
|
||||||
options.local.DE.dwm.enable = lib.mkEnableOption "";
|
options.local.DE.dwm.enable = lib.mkEnableOption "";
|
||||||
|
|
||||||
config = lib.mkIf config.local.DE.dwm.enable {
|
config = lib.mkIf config.local.DE.dwm.enable {
|
||||||
|
local.packages = {
|
||||||
|
inherit (suckless.packages) dmenu dwm st;
|
||||||
|
inherit (pkgs)
|
||||||
|
maim
|
||||||
|
playerctl
|
||||||
|
xclip
|
||||||
|
feh
|
||||||
|
numlockx
|
||||||
|
picom
|
||||||
|
sxhkd
|
||||||
|
xscreensaver
|
||||||
|
;
|
||||||
|
|
||||||
|
xsecurelock = pkgs.writeShellScriptBin "xsecurelock" ''
|
||||||
|
export XSECURELOCK_BLANK_TIMEOUT="30"
|
||||||
|
export XSECURELOCK_AUTH_TIMEOUT="30"
|
||||||
|
export XSECURELOCK_BLANK_DPMS_STATE="off"
|
||||||
|
export XSECURELOCK_BACKGROUND_COLOR="#000000"
|
||||||
|
export XSECURELOCK_AUTH_BACKGROUND_COLOR="#080808"
|
||||||
|
export XSECURELOCK_AUTH_FOREGROUND_COLOR="#bdbdbd"
|
||||||
|
export XSECURELOCK_FONT="Overpass"
|
||||||
|
export XSECURELOCK_SHOW_DATETIME="1"
|
||||||
|
${lib.getExe pkgs.xsecurelock}
|
||||||
|
'';
|
||||||
|
};
|
||||||
systemd.user.services = {
|
systemd.user.services = {
|
||||||
sxhkd = {
|
sxhkd = {
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
|
|
@ -67,34 +92,8 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment = {
|
|
||||||
systemPackages = builtins.attrValues {
|
|
||||||
inherit (suckless.packages) dmenu dwm st;
|
|
||||||
inherit (pkgs)
|
|
||||||
maim
|
|
||||||
playerctl
|
|
||||||
xclip
|
|
||||||
feh
|
|
||||||
numlockx
|
|
||||||
picom
|
|
||||||
sxhkd
|
|
||||||
xscreensaver
|
|
||||||
;
|
|
||||||
|
|
||||||
xsecurelock = pkgs.writeShellScriptBin "xsecurelock" ''
|
environment.etc."sxhkd/sxhkdrc".text = ''
|
||||||
export XSECURELOCK_BLANK_TIMEOUT="30"
|
|
||||||
export XSECURELOCK_AUTH_TIMEOUT="30"
|
|
||||||
export XSECURELOCK_BLANK_DPMS_STATE="off"
|
|
||||||
export XSECURELOCK_BACKGROUND_COLOR="#000000"
|
|
||||||
export XSECURELOCK_AUTH_BACKGROUND_COLOR="#080808"
|
|
||||||
export XSECURELOCK_AUTH_FOREGROUND_COLOR="#bdbdbd"
|
|
||||||
export XSECURELOCK_FONT="Overpass"
|
|
||||||
export XSECURELOCK_SHOW_DATETIME="1"
|
|
||||||
${lib.getExe pkgs.xsecurelock}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
etc = {
|
|
||||||
"sxhkd/sxhkdrc".text = ''
|
|
||||||
XF86AudioPlay
|
XF86AudioPlay
|
||||||
playerctl play-pause
|
playerctl play-pause
|
||||||
XF86AudioPause
|
XF86AudioPause
|
||||||
|
|
@ -125,6 +124,4 @@
|
||||||
xsecurelock
|
xsecurelock
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
8
modules/packages.nix
Normal file
8
modules/packages.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ lib, config }:
|
||||||
|
{
|
||||||
|
options.local.packages = lib.mkOption {
|
||||||
|
type = lib.types.attrsOf lib.types.package;
|
||||||
|
default = { };
|
||||||
|
};
|
||||||
|
config.environment.systemPackages = builtins.attrValues config.local.packages;
|
||||||
|
}
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
environment = {
|
local.packages = {
|
||||||
systemPackages = builtins.attrValues {
|
|
||||||
inherit (pkgs) eza fzf;
|
inherit (pkgs) eza fzf;
|
||||||
inherit (fetch-rs.packages) fetch-rs;
|
inherit (fetch-rs.packages) fetch-rs;
|
||||||
};
|
};
|
||||||
|
environment = {
|
||||||
variables = {
|
variables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
VISUAL = "nvim";
|
VISUAL = "nvim";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue