cleanup + reenabled nvidia

This commit is contained in:
Danilo Reyes 2023-09-06 13:52:40 -06:00
parent 081bfa7fff
commit b161ac589c
3 changed files with 36 additions and 29 deletions

View File

@ -49,11 +49,11 @@ let
version = "23.05";
myEmail = "CaptainJawZ@outlook.com";
myName = "Danilo Reyes";
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-${version}.tar.gz";
unstable = import
(builtins.fetchTarball "https://github.com/nixos/nixpkgs/tarball/master") {
config = config.nixpkgs.config;
};
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-${version}.tar.gz";
nixGaming = import
(builtins.fetchTarball "https://github.com/fufexan/nix-gaming/archive/master.tar.gz");
jawzManageLibrary = pkgs.writeScriptBin
@ -72,11 +72,11 @@ cluttered, for example, I may create a module for systemd units.
#+begin_src nix
imports = [
./hardware-configuration.nix
./servers.nix
# ./servers.nix
# ./openldap.nix
(import "${home-manager}/nixos")
# <agenix/modules/age.nix>
"${nixGaming}/modules/pipewireLowLatency.nix"
(import "${home-manager}/nixos")
nixGaming.nixosModules.pipewireLowLatency
];
#+end_src
@ -172,13 +172,6 @@ latency will require expanding these settings.
#+begin_src nix
hardware.pulseaudio.enable = false;
sound.enable = false;
security = {
rtkit.enable = true;
acme = {
acceptTerms = true;
defaults.email = "${myEmail}";
};
};
services.pipewire = {
enable = true;
alsa.enable = true;
@ -193,12 +186,21 @@ services.pipewire = {
#+end_src
* SECURITY
Disabled password for commodity, but this is obviously not recommended.
Disabled password in sudo for commodity, but this is obviously not recommended,
regarding rkit, that setting enables pipewire to run with real-time
capabilities. And lastly, the acme settings are for signing certificates.
#+begin_src nix
security.sudo = {
security = {
rtkit.enable = true;
sudo = {
enable = true;
wheelNeedsPassword = false;
};
acme = {
acceptTerms = true;
defaults.email = "${myEmail}";
};
};
#+end_src
* NIXPKGS
@ -209,10 +211,6 @@ packages.
#+begin_src nix
nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [
"nodejs-14.21.3"
"openssl-1.1.1v"
];
};
#+end_src
@ -627,6 +625,9 @@ nixos-reload () {
#+begin_src nix
programs = {
emacs = {
enable = true;
};
direnv = {
enable = true;
enableBashIntegration = true;
@ -636,7 +637,8 @@ programs = {
enable = true;
config = {
pager = "less -FR";
theme = "base16"; };
theme = "base16";
};
};
git = {
enable = true;

View File

@ -163,13 +163,14 @@ in {
# vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
# };
# virtualisation.docker.enableNvidia = true;
# services.xserver.videoDrivers = [ "nvidia" ];
nixpkgs.config = { allowUnfree = true; };
virtualisation.docker.enableNvidia = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware = {
# nvidia = {
# modesetting.enable = true;
# powerManagement.enable = true;
# };
nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
};
sane = {
enable = true;
extraBackends = [ pkgs.hplip pkgs.hplipWithPlugin ];

View File

@ -7,7 +7,11 @@ let
config = config.nixpkgs.config;
};
in {
imports = [ ./nginx.nix ];
nixpkgs.config = {
permittedInsecurePackages = [ "nodejs-14.21.3" "openssl-1.1.1v" ];
};
users.groups = { piracy.gid = 985; };
users.users = let base = { isSystemUser = true; };
in {