clean up move fast break shit comments

This commit is contained in:
Steven 2023-03-26 21:05:02 -04:00
parent cc8abdbd3c
commit 1a749c0278
7 changed files with 13 additions and 94 deletions

View file

@ -46,7 +46,6 @@
allowedUDPPorts = []; allowedUDPPorts = [];
checkReversePath = "loose"; checkReversePath = "loose";
}; };
# networkmanager.enable = true;
}; };
services.tailscale.enable = true; services.tailscale.enable = true;

View file

@ -1,9 +1,7 @@
{ modulesPath, config, pkgs, lib, ... }: { modulesPath, config, pkgs, lib, ... }:
{ {
imports = imports = [
[ # Include the results of the hardware scan.
# ../modules/base/hardware.nix
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
../modules/services/docker.nix ../modules/services/docker.nix
../modules/users/arouzing.nix ../modules/users/arouzing.nix
@ -20,27 +18,25 @@
]; ];
networking = { networking = {
firewall.checkReversePath = "loose";
hostName = "openldap"; # Define your hostname. hostName = "openldap"; # Define your hostname.
firewall = {
enable = true;
allowedTCPPorts = [];
allowedUDPPorts = [];
checkReversePath = "loose";
};
# networkmanager.enable = true; # networkmanager.enable = true;
}; };
services.tailscale.enable = true; services.tailscale.enable = true;
time.timeZone = "America/New_York"; time.timeZone = "America/Detroit";
# Open ports in the firewall.
networking.firewall = {
enable = true;
allowedTCPPorts = [];
allowedUDPPorts = [];
};
## main services ## main services
system.stateVersion = "22.11"; system.stateVersion = "22.11";
### testing ### ### testing ###
boot.initrd.availableKernelModules = boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
[ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
} }

View file

@ -31,10 +31,6 @@
disko.devices = import ../modules/disko/luks-lvm.nix { disko.devices = import ../modules/disko/luks-lvm.nix {
disks = [ "/dev/nvme0n1" ]; disks = [ "/dev/nvme0n1" ];
}; };
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";

View file

@ -19,14 +19,7 @@
swapDevices = [ ]; swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp6s18.useDHCP = lib.mkDefault true;
# networking.interfaces.tailscale0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
@ -40,24 +33,11 @@
}; };
extraModulePackages = [ ]; extraModulePackages = [ ];
loader = { loader = {
# systemd-boot.enable = true;
grub = { grub = {
# Even if there is a separate no-fs partition ("/dev/disk/by-partlabel/no-fs" i.e. "/dev/vda2"),
# which will be used the bootloader, do not set it as loader.grub.device.
# GRUB installation fails, unless the whole disk is selected.
device = "/dev/vda"; device = "/dev/vda";
}; };
timeout = 0; timeout = 0;
}; };
}; };
# fileSystems."/" = {
# device = "/dev/disk/by-label/nixos";
# autoResize = true;
# fsType = "ext4";
# };
# fileSystems."/boot" = lib.mkIf hasBootPartition {
# device = "/dev/disk/by-label/ESP";
# fsType = "vfat";
# };
services.qemuGuest.enable = lib.mkDefault true; services.qemuGuest.enable = lib.mkDefault true;
} }

View file

@ -4,11 +4,9 @@
services.openssh = lib.mkDefault { services.openssh = lib.mkDefault {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
#settings = lib.mkDefault {
passwordAuthentication = false; passwordAuthentication = false;
permitRootLogin = "no"; permitRootLogin = "no";
kbdInteractiveAuthentication = false; kbdInteractiveAuthentication = false;
#};
startWhenNeeded = true; startWhenNeeded = true;
kexAlgorithms = [ "curve25519-sha256@libssh.org" ]; kexAlgorithms = [ "curve25519-sha256@libssh.org" ];
}; };

View file

@ -1,8 +1,6 @@
# https://nixos.wiki/wiki/PipeWire # https://nixos.wiki/wiki/PipeWire
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
# Remove sound.enable or turn it off if you had it set previously, it seems to cause conflicts with pipewire
#sound.enable = false;
# rtkit is optional but recommended # rtkit is optional but recommended
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {

View file

@ -1,7 +1,4 @@
{ pkgs, config, lib, ... }: { { pkgs, config, lib, ... }: {
#Home manager configuration
#imports = [ ./../../home ./../../home/nixos ];
home = { home = {
username = "speccon18"; username = "speccon18";
homeDirectory = "/home/speccon18"; homeDirectory = "/home/speccon18";
@ -29,7 +26,6 @@
]; ];
}; };
programs = { programs = {
nushell = { nushell = {
enable = true; enable = true;
@ -50,7 +46,6 @@
direnv = { direnv = {
enable = true; enable = true;
enableZshIntegration = lib.mkDefault true; enableZshIntegration = lib.mkDefault true;
#enableNushellIntegration = true;
}; };
home-manager = { home-manager = {
enable = true; enable = true;
@ -60,54 +55,11 @@
package = pkgs.vscode.fhs; package = pkgs.vscode.fhs;
enableExtensionUpdateCheck = true; enableExtensionUpdateCheck = true;
enableUpdateCheck = false; enableUpdateCheck = false;
extensions = [
# "tlahmann.alex-linter"
# "astro-build.astro-vscode"
# "aaron-bond.better-comments"
# "bungcip.better-toml"
# "antfu.browse-lite"
# "firefox-devtools.vscode-firefox-debug"
# "ms-vscode-remote.remote-containers"
# "ms-azuretools.vscode-docker"
# "editorconfig.editorconfig"
# "dbaeumer.vscode-eslint"
# "donjayamanne.githistory"
# "felipecaputo.git-project-manager"
# "github.copilot"
# "eamodio.gitlens"
# "graphql.vscode-graphql"
# "graphql.vscode-graphql-syntax"
# "oderwat.indent-rainbow"
# "skellock.just"
# "monokai.theme-monokai-pro-vscode"
# "bbenoist.nix"
# "jnoortheen.nix-ide"
# "christian-kohler.path-intellisense"
# "csstools.postcss"
# "esbenp.prettier-vscode"
# "ms-vscode-remote.remote-ssh"
# "ms-vscode-remote.remote-ssh-edit"
# "ms-vscode.remote-server"
# "ms-vscode-remote.vscode-remote-extensionpack"
# "ms-vscode.remote-explorer"
# "rust-lang.rust-analyzer"
# "rhalaly.scope-to-this"
# "svelte.svelte-vscode"
# "bradlc.vscode-tailwindcss"
# "tauri-apps.tauri-vscode"
# "antfu.vite"
# "zixuanchen.vitest-explorer"
# "vscode-icons-team.vscode-icons"
# "thenuprojectcontributors.vscode-nushell-lang"
# "ms-vscode-remote.remote-wsl"
# "redhat.vscode-yaml"
];
}; };
git = { git = {
enable = true; enable = true;
userName = "specCon18"; userName = "specCon18";
userEmail = "steven.carpenter@skdevstudios.com"; userEmail = "steven.carpenter@skdevstudios.com";
# delta.enable = true;
extraConfig = { extraConfig = {
init = { init = {
defaultBranch = "main"; defaultBranch = "main";