cleanup + reenabled nvidia
This commit is contained in:
parent
081bfa7fff
commit
b161ac589c
@ -49,11 +49,11 @@ let
|
|||||||
version = "23.05";
|
version = "23.05";
|
||||||
myEmail = "CaptainJawZ@outlook.com";
|
myEmail = "CaptainJawZ@outlook.com";
|
||||||
myName = "Danilo Reyes";
|
myName = "Danilo Reyes";
|
||||||
|
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-${version}.tar.gz";
|
||||||
unstable = import
|
unstable = import
|
||||||
(builtins.fetchTarball "https://github.com/nixos/nixpkgs/tarball/master") {
|
(builtins.fetchTarball "https://github.com/nixos/nixpkgs/tarball/master") {
|
||||||
config = config.nixpkgs.config;
|
config = config.nixpkgs.config;
|
||||||
};
|
};
|
||||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-${version}.tar.gz";
|
|
||||||
nixGaming = import
|
nixGaming = import
|
||||||
(builtins.fetchTarball "https://github.com/fufexan/nix-gaming/archive/master.tar.gz");
|
(builtins.fetchTarball "https://github.com/fufexan/nix-gaming/archive/master.tar.gz");
|
||||||
jawzManageLibrary = pkgs.writeScriptBin
|
jawzManageLibrary = pkgs.writeScriptBin
|
||||||
@ -72,11 +72,11 @@ cluttered, for example, I may create a module for systemd units.
|
|||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./servers.nix
|
# ./servers.nix
|
||||||
# ./openldap.nix
|
# ./openldap.nix
|
||||||
(import "${home-manager}/nixos")
|
|
||||||
# <agenix/modules/age.nix>
|
# <agenix/modules/age.nix>
|
||||||
"${nixGaming}/modules/pipewireLowLatency.nix"
|
(import "${home-manager}/nixos")
|
||||||
|
nixGaming.nixosModules.pipewireLowLatency
|
||||||
];
|
];
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -172,13 +172,6 @@ latency will require expanding these settings.
|
|||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
sound.enable = false;
|
sound.enable = false;
|
||||||
security = {
|
|
||||||
rtkit.enable = true;
|
|
||||||
acme = {
|
|
||||||
acceptTerms = true;
|
|
||||||
defaults.email = "${myEmail}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
@ -193,11 +186,20 @@ services.pipewire = {
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* SECURITY
|
* 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
|
#+begin_src nix
|
||||||
security.sudo = {
|
security = {
|
||||||
enable = true;
|
rtkit.enable = true;
|
||||||
wheelNeedsPassword = false;
|
sudo = {
|
||||||
|
enable = true;
|
||||||
|
wheelNeedsPassword = false;
|
||||||
|
};
|
||||||
|
acme = {
|
||||||
|
acceptTerms = true;
|
||||||
|
defaults.email = "${myEmail}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -209,10 +211,6 @@ packages.
|
|||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
permittedInsecurePackages = [
|
|
||||||
"nodejs-14.21.3"
|
|
||||||
"openssl-1.1.1v"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -627,16 +625,20 @@ nixos-reload () {
|
|||||||
|
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
programs = {
|
programs = {
|
||||||
|
emacs = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
direnv = {
|
direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableBashIntegration = true;
|
enableBashIntegration = true;
|
||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
};
|
};
|
||||||
bat = {
|
bat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
pager = "less -FR";
|
pager = "less -FR";
|
||||||
theme = "base16"; };
|
theme = "base16";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@ -163,13 +163,14 @@ in {
|
|||||||
# vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
# vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
||||||
# };
|
# };
|
||||||
|
|
||||||
# virtualisation.docker.enableNvidia = true;
|
nixpkgs.config = { allowUnfree = true; };
|
||||||
# services.xserver.videoDrivers = [ "nvidia" ];
|
virtualisation.docker.enableNvidia = true;
|
||||||
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
hardware = {
|
hardware = {
|
||||||
# nvidia = {
|
nvidia = {
|
||||||
# modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
# powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
# };
|
};
|
||||||
sane = {
|
sane = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraBackends = [ pkgs.hplip pkgs.hplipWithPlugin ];
|
extraBackends = [ pkgs.hplip pkgs.hplipWithPlugin ];
|
||||||
|
|||||||
@ -7,7 +7,11 @@ let
|
|||||||
config = config.nixpkgs.config;
|
config = config.nixpkgs.config;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
||||||
imports = [ ./nginx.nix ];
|
imports = [ ./nginx.nix ];
|
||||||
|
nixpkgs.config = {
|
||||||
|
permittedInsecurePackages = [ "nodejs-14.21.3" "openssl-1.1.1v" ];
|
||||||
|
};
|
||||||
users.groups = { piracy.gid = 985; };
|
users.groups = { piracy.gid = 985; };
|
||||||
users.users = let base = { isSystemUser = true; };
|
users.users = let base = { isSystemUser = true; };
|
||||||
in {
|
in {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user