bins: only install rage on systems with gui enabled

This commit is contained in:
Aaron Bieber 2022-10-13 21:32:47 -06:00
parent c3cb8c54ed
commit 27b953275c
No known key found for this signature in database
2 changed files with 11 additions and 6 deletions

View File

@ -1,11 +1,8 @@
{ pkgs, lib, isUnstable, ... }:
let
ix = pkgs.writeScriptBin "ix" (import ./ix.nix { inherit (pkgs) perl; });
rage = pkgs.writeScriptBin "rage" (import ./rage.nix { inherit pkgs; });
sfetch = pkgs.writeScriptBin "sfetch"
(import ./sfetch.nix { inherit (pkgs) minisign curl; });
checkRestart = pkgs.writeScriptBin "check-restart"
(import ./check-restart.nix { inherit (pkgs) perl; });
in {
environment.systemPackages = with pkgs; [ rage ix sfetch xclip checkRestart ];
}
in { environment.systemPackages = with pkgs; [ ix sfetch xclip checkRestart ]; }

View File

@ -1,5 +1,7 @@
{ config, lib, pkgs, ... }:
with lib; {
let
rage = pkgs.writeScriptBin "rage" (import ../bins/rage.nix { inherit pkgs; });
in with lib; {
imports = [ ./gnome.nix ./kde.nix ./xfce.nix ./arcan.nix ];
options = {
@ -40,7 +42,13 @@ with lib; {
sound.enable = true;
security.rtkit.enable = true;
environment.systemPackages = with pkgs; [ brave go-font vlc pcsctools ];
environment.systemPackages = with pkgs; [
brave
go-font
vlc
pcsctools
rage
];
programs = {
firejail = {