default.nix: move useless packages to somewhere else
This commit is contained in:
parent
9ec8e5c8bb
commit
fba57e8ad9
2 changed files with 16 additions and 33 deletions
32
default.nix
32
default.nix
|
@ -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
|
||||||
|
@ -27,7 +19,7 @@
|
||||||
# nix settings that should 100% be global
|
# nix settings that should 100% be global
|
||||||
#nix.settings.experimental-features = ["nix-command" "flakes"];
|
#nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
experimental-features = ["nix-command" "flakes"];
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
substituters = [
|
substituters = [
|
||||||
# garnix
|
# garnix
|
||||||
"https://cache.garnix.io"
|
"https://cache.garnix.io"
|
||||||
|
@ -66,7 +58,7 @@
|
||||||
efiSysMountPoint = "/boot/efi";
|
efiSysMountPoint = "/boot/efi";
|
||||||
};
|
};
|
||||||
grub = {
|
grub = {
|
||||||
devices = ["nodev"];
|
devices = [ "nodev" ];
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
enable = true;
|
enable = true;
|
||||||
useOSProber = true;
|
useOSProber = true;
|
||||||
|
@ -98,13 +90,13 @@
|
||||||
|
|
||||||
users.users.sako = {
|
users.users.sako = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = ["wheel" "networkmanager" "audio"];
|
extraGroups = [ "wheel" "networkmanager" "audio" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.sako = {pkgs, ...}: {
|
home-manager.users.sako = { pkgs, ... }: {
|
||||||
# CHANGE THIS WHEN THE SYSTEM VERSION CHANGES TOO!!!
|
# CHANGE THIS WHEN THE SYSTEM VERSION CHANGES TOO!!!
|
||||||
home.packages = [];
|
home.packages = [ ];
|
||||||
home.username = "sako";
|
home.username = "sako";
|
||||||
home.homeDirectory = "/home/sako";
|
home.homeDirectory = "/home/sako";
|
||||||
programs.bash.enable = true;
|
programs.bash.enable = true;
|
||||||
|
@ -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";
|
||||||
|
@ -133,12 +121,8 @@
|
||||||
# bare minimum
|
# bare minimum
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
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
|
||||||
|
|
|
@ -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
|
||||||
|
@ -26,7 +22,10 @@ in
|
||||||
jack.enable = true;
|
jack.enable = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# unsupported apps that use these
|
||||||
|
environment.systemPackages = with pkgs; [ pulseaudio alsa-utils pamixer ];
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue