tidying up
This commit is contained in:
parent
49dda93335
commit
30fb6ac0bf
@ -39,7 +39,6 @@ other functions.
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
VERSION = "23.05";
|
VERSION = "23.05";
|
||||||
# "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
|
||||||
unstable_tarball = builtins.fetchTarball
|
unstable_tarball = builtins.fetchTarball
|
||||||
https://github.com/nixos/nixpkgs/tarball/master;
|
https://github.com/nixos/nixpkgs/tarball/master;
|
||||||
unstable = import unstable_tarball {
|
unstable = import unstable_tarball {
|
||||||
@ -77,7 +76,6 @@ cluttered, for example, I may create a module for systemd units.
|
|||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
/etc/nixos/cachix.nix
|
|
||||||
<home-manager/nixos>
|
<home-manager/nixos>
|
||||||
<agenix/modules/age.nix>
|
<agenix/modules/age.nix>
|
||||||
"${nix-gaming}/modules/pipewireLowLatency.nix"
|
"${nix-gaming}/modules/pipewireLowLatency.nix"
|
||||||
@ -94,9 +92,10 @@ Pick *ONLY ONE* of the below networking options.
|
|||||||
- *NetworkManager* it's the default of GNOME, and easiest to use and integrate.
|
- *NetworkManager* it's the default of GNOME, and easiest to use and integrate.
|
||||||
|
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
networking.hostName = "workstation";
|
networking = {
|
||||||
# networking.wireless.enable = true;
|
hostName = "workstation";
|
||||||
networking.networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
|
};
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** TIMEZONE & LOCALE
|
** TIMEZONE & LOCALE
|
||||||
@ -208,24 +207,6 @@ security.sudo = {
|
|||||||
};
|
};
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** OPENDOAS
|
|
||||||
It's mayor advantage over Sudo, is that is being a smaller package, being lessen
|
|
||||||
known means that there is less security risks associated with it, overall a less
|
|
||||||
bloated more secure package. Which comes with the caveat that due to it's age,
|
|
||||||
there is little support for it. Constantly having to resort to hack solutions
|
|
||||||
such as patches or symlinks.
|
|
||||||
|
|
||||||
#+begin_src nix
|
|
||||||
# security.sudo.enable = false;
|
|
||||||
# security.doas.enable = true;
|
|
||||||
# security.doas.extraRules = [{
|
|
||||||
# users = [ "jawz" ];
|
|
||||||
# keepEnv = true;
|
|
||||||
# #persist = true;
|
|
||||||
# noPass = true;
|
|
||||||
# }];
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
* USER PACKAGES
|
* USER PACKAGES
|
||||||
Being part of the "wheel" group, means that the user has root privileges.
|
Being part of the "wheel" group, means that the user has root privileges.
|
||||||
|
|
||||||
@ -267,13 +248,7 @@ users.users.nextcloud = {
|
|||||||
packages = (with pkgs; [
|
packages = (with pkgs; [
|
||||||
nodejs_14
|
nodejs_14
|
||||||
perl
|
perl
|
||||||
exiftool
|
unstable.exiftool
|
||||||
### Currently incompatible with newer versions, and compiling
|
|
||||||
### an older version takes 7 hours.
|
|
||||||
# cudatoolkit
|
|
||||||
# python3Packages.tensorflowWithCuda
|
|
||||||
# cudaPackages.cudatoolkit
|
|
||||||
# cudaPackages.cudnn
|
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
users.users.jawz = {
|
users.users.jawz = {
|
||||||
@ -322,7 +297,7 @@ vulkan-tools
|
|||||||
winetricks
|
winetricks
|
||||||
# nix-gaming.packages.${pkgs.hostPlatform.system}.wine-discord-ipc-bridge
|
# nix-gaming.packages.${pkgs.hostPlatform.system}.wine-discord-ipc-bridge
|
||||||
# grapejuice # roblox manager
|
# grapejuice # roblox manager
|
||||||
# minecraft # minecraft official launcher
|
minecraft # minecraft official launcher
|
||||||
parsec-bin # remote gaming with friends
|
parsec-bin # remote gaming with friends
|
||||||
protonup-qt # update proton-ge
|
protonup-qt # update proton-ge
|
||||||
renpy
|
renpy
|
||||||
@ -674,8 +649,6 @@ nixos-reload () {
|
|||||||
local hardware_file="$HOME/Development/NixOS/hardware-configuration.nix"
|
local hardware_file="$HOME/Development/NixOS/hardware-configuration.nix"
|
||||||
nixfmt "$nix_file" && nixfmt "$hardware_file"
|
nixfmt "$nix_file" && nixfmt "$hardware_file"
|
||||||
sudo nixos-rebuild switch -I nixos-config="$nix_file"
|
sudo nixos-rebuild switch -I nixos-config="$nix_file"
|
||||||
# sudo systemctl restart docker
|
|
||||||
# sudo systemctl restart docker-compose
|
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
@ -766,8 +739,6 @@ environment.systemPackages = with pkgs; [
|
|||||||
docker-compose # easy way to migrate my docker anywhere!
|
docker-compose # easy way to migrate my docker anywhere!
|
||||||
jellyfin-ffmpeg # coolest video converter!
|
jellyfin-ffmpeg # coolest video converter!
|
||||||
dlib
|
dlib
|
||||||
# nv-codec-headers-11
|
|
||||||
# cudatoolkit
|
|
||||||
];
|
];
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -1159,8 +1130,6 @@ Open ports in the firewall.
|
|||||||
|
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
networking = {
|
networking = {
|
||||||
# useDHCP = false;
|
|
||||||
# interfaces.enp0s31f6.useDHCP = true;
|
|
||||||
firewall = let
|
firewall = let
|
||||||
open_firewall_ports = [
|
open_firewall_ports = [
|
||||||
80 # http
|
80 # http
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user