renamed configuration.nix to common.nix

moved sudo configuration to shells.nix
switched to kmscon
reorganized all packages removed a few
switched from scripts to shell aliases
set keep-outputs and keep-derivations to false
removed picom from laptop
This commit is contained in:
ISnortPennies 2023-02-04 14:49:48 -05:00
parent 4b3e928482
commit b3cb8940d4
11 changed files with 119 additions and 115 deletions

View file

@ -1,86 +0,0 @@
{
pkgs,
settings,
lib,
...
}: {
system.stateVersion = settings.version;
security.sudo = {
enable = true;
execWheelOnly = true;
extraConfig = ''
Defaults env_keep += "EDITOR VISUAL PAGER SYSTEMD_PAGERSECURE TERMINAL"
'';
};
#hardware stuff
hardware = {
enableRedistributableFirmware = true;
opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
};
#sound settings
security.rtkit.enable = true;
sound.enable = lib.mkForce false; #disable alsa
hardware.pulseaudio.enable = lib.mkForce false; #disable pulseAudio
services.pipewire = {
enable = true;
wireplumber.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
networking = {
firewall = {
enable = true;
allowPing = true;
};
networkmanager.enable = true;
};
#enable ssh
programs = {
mtr.enable = true; #ping and traceroute
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "yes";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
#themeing
qt = {
enable = true;
style = "gtk2";
platformTheme = "gtk2";
};
#time settings
time.timeZone = "America/New_York";
services = {
timesyncd = {
enable = true;
servers = [
"time.google.com"
"time2.google.com"
];
};
};
#terminal stuff
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
useXkbConfig = true;
};
programs.dconf.enable = true;
services.gvfs.enable = true; #gvfs for pcmanfm
}