default.nix: move useless packages to somewhere else

This commit is contained in:
Sakooooo 2024-10-01 09:23:36 +04:00
parent 9ec8e5c8bb
commit fba57e8ad9
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 16 additions and 33 deletions

View file

@ -1,12 +1,4 @@
{ { config, inputs, outputs, pkgs, lib, home-manager, ... }: {
config,
inputs,
outputs,
pkgs,
lib,
home-manager,
...
}: {
imports = [ imports = [
# home manager # home manager
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
@ -117,11 +109,7 @@
enable = true; enable = true;
userName = "Sakooooo"; userName = "Sakooooo";
userEmail = "78461130+Sakooooo@users.noreply.github.com"; userEmail = "78461130+Sakooooo@users.noreply.github.com";
includes = [ includes = [{ path = "~/.config/git/config.local"; }];
{
path = "~/.config/git/config.local";
}
];
extraConfig = { extraConfig = {
color.ui = "auto"; color.ui = "auto";
init.defaultBranch = "master"; init.defaultBranch = "master";
@ -135,10 +123,6 @@
vim # backup vim # backup
wget # double u get wget # double u get
killall # die processes killall # die processes
alsa-utils # unsupported application
pulseaudio # unsupported application
pamixer # unsupported application
feh # im different
unzip # zip file unzip # zip file
gh # github gh # github
htop # htop htop # htop

View file

@ -1,11 +1,7 @@
{ outputs, options, config, lib, pkgs, ... }: { outputs, options, config, lib, pkgs, ... }:
let let cfg = config.modules.hardware.pipewire;
cfg = config.modules.hardware.pipewire; in {
in options.modules.hardware.pipewire = { enable = lib.mkEnableOption false; };
{
options.modules.hardware.pipewire = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
# resolve racial conflict between # resolve racial conflict between
@ -27,6 +23,9 @@ in
pulse.enable = true; pulse.enable = true;
}; };
# unsupported apps that use these
environment.systemPackages = with pkgs; [ pulseaudio alsa-utils pamixer ];
}; };
} }