Reformat, refactor
This commit is contained in:
		| @ -1,17 +1,20 @@ | ||||
| { config, lib, pkgs, ... }: | ||||
| { | ||||
|   imports = [ | ||||
|       ./hardware-configuration.nix | ||||
|   ]; | ||||
| { config, lib, pkgs, ... }: { | ||||
|   imports = [ ./hardware-configuration.nix ]; | ||||
|  | ||||
|   boot.loader.systemd-boot.enable      = true; | ||||
|   boot.loader.efi.canTouchEfiVariables = true; | ||||
|   boot = { | ||||
|     loader.systemd-boot.enable = true; | ||||
|     loader.efi.canTouchEfiVariables = true; | ||||
|   }; | ||||
|  | ||||
|   nix.settings.experimental-features = [ "nix-command" "flakes" ]; | ||||
|   nix = { | ||||
|     buildMachines = [ ]; | ||||
|     distributedBuilds = false; | ||||
|     settings.experimental-features = [ "nix-command" "flakes" ]; | ||||
|   }; | ||||
|  | ||||
|   networking = { | ||||
|     hostName = "eve-psr-nix0"; | ||||
|     firewall = {  | ||||
|     firewall = { | ||||
|       allowedTCPPorts = [ 22 80 443 ]; | ||||
|       allowedUDPPorts = [ 22 80 443 ]; | ||||
|     }; | ||||
| @ -20,63 +23,30 @@ | ||||
|   time.timeZone = "America/Chicago"; | ||||
|  | ||||
|   services.openssh.enable = true; | ||||
|   virtualisation.docker   = { | ||||
|   virtualisation.docker = { | ||||
|     enable = true; | ||||
|     liveRestore = false; | ||||
|   }; | ||||
|  | ||||
|   environment.systemPackages = with pkgs; [ | ||||
|     git | ||||
|     pciutils | ||||
|     vim | ||||
|     wget | ||||
|   ]; | ||||
|   environment.systemPackages = with pkgs; [ git pciutils vim wget ]; | ||||
|  | ||||
|  | ||||
|   programs.zsh.enable    = true; | ||||
|   users.defaultUserShell = pkgs.zsh; | ||||
|   users.users 	         = { | ||||
|     sezycei = { | ||||
|       isNormalUser         = true; | ||||
|       initialPassword      = "bootMaster"; | ||||
|       extraGroups          = [ "wheel" "docker" ]; | ||||
|       packages             = with pkgs; [ | ||||
|         byobu | ||||
|         tmux | ||||
| 	stack | ||||
|       ]; | ||||
|     }; | ||||
|     torrent = { | ||||
|       isNormalUser         = true; | ||||
|       initialPassword      = "torrentUserTemp"; | ||||
|   programs.zsh.enable = true; | ||||
|   users = { | ||||
|     defaultUserShell = pkgs.zsh; | ||||
|     users = { | ||||
|       sezycei = { | ||||
|         isNormalUser = true; | ||||
|         initialPassword = "bootMaster"; | ||||
|         extraGroups = [ "wheel" "docker" ]; | ||||
|         packages = with pkgs; [ byobu tmux stack ]; | ||||
|       }; | ||||
|       torrent = { | ||||
|         isNormalUser = true; | ||||
|         initialPassword = "torrentUserTemp"; | ||||
|       }; | ||||
|     }; | ||||
|  | ||||
|   }; | ||||
|  | ||||
|   # NixBuild.net Configuration | ||||
|   programs.ssh.extraConfig = '' | ||||
|     Host eu.nixbuild.net | ||||
|       PubkeyAcceptedKeyTypes ssh-ed25519 | ||||
|       IdentityFile /home/sezycei/.ssh/nixbuilds | ||||
|   ''; | ||||
|    | ||||
|   programs.ssh.knownHosts = { | ||||
|     nixbuild = { | ||||
|       hostNames = [ "eu.nixbuild.net" ]; | ||||
|       publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPIQCZc54poJ8vqawd8TraNryQeJnvH1eLpIDgbiqymM"; | ||||
|     }; | ||||
|   }; | ||||
|    | ||||
|   nix = { | ||||
|     distributedBuilds = false; | ||||
|     buildMachines = [ | ||||
|       { hostName = "eu.nixbuild.net"; | ||||
|         system = "x86_64-linux"; | ||||
|         maxJobs = 100; | ||||
|         supportedFeatures = [ "benchmark" "big-parallel" ]; | ||||
|       } | ||||
|     ]; | ||||
|   }; | ||||
|  | ||||
|   system.stateVersion = "22.11"; | ||||
| } | ||||
|  | ||||
| @ -1,15 +1,11 @@ | ||||
| { | ||||
|   inputs = { | ||||
|     nixpkgs.url = "nixpkgs/nixos-unstable"; | ||||
|   }; | ||||
|   inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; }; | ||||
|  | ||||
|   outputs = { self, nixpkgs }: { | ||||
|     nixosConfigurations = { | ||||
|       eve-psr-nix0 = nixpkgs.lib.nixosSystem { | ||||
|         system = "x86_64-linux"; | ||||
|         modules = [  | ||||
|           ./configuration.nix | ||||
|         ]; | ||||
|         modules = [ ./configuration.nix ]; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
|  | ||||
| @ -4,24 +4,23 @@ | ||||
| { config, lib, pkgs, modulesPath, ... }: | ||||
|  | ||||
| { | ||||
|   imports = | ||||
|     [ (modulesPath + "/installer/scan/not-detected.nix") | ||||
|     ]; | ||||
|   imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; | ||||
|  | ||||
|   boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; | ||||
|   boot.initrd.availableKernelModules = | ||||
|     [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; | ||||
|   boot.initrd.kernelModules = [ ]; | ||||
|   boot.kernelModules = [ "kvm-intel" ]; | ||||
|   boot.extraModulePackages = [ ]; | ||||
|  | ||||
|   fileSystems."/" = | ||||
|     { device = "/dev/disk/by-label/NIXROOT"; | ||||
|       fsType = "ext4"; | ||||
|     }; | ||||
|   fileSystems."/" = { | ||||
|     device = "/dev/disk/by-label/NIXROOT"; | ||||
|     fsType = "ext4"; | ||||
|   }; | ||||
|  | ||||
|   fileSystems."/boot" = | ||||
|     { device = "/dev/disk/by-label/NIXBOOT"; | ||||
|       fsType = "vfat"; | ||||
|     }; | ||||
|   fileSystems."/boot" = { | ||||
|     device = "/dev/disk/by-label/NIXBOOT"; | ||||
|     fsType = "vfat"; | ||||
|   }; | ||||
|  | ||||
|   swapDevices = [ ]; | ||||
|  | ||||
| @ -35,5 +34,6 @@ | ||||
|  | ||||
|   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; | ||||
|   powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; | ||||
|   hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; | ||||
|   hardware.cpu.intel.updateMicrocode = | ||||
|     lib.mkDefault config.hardware.enableRedistributableFirmware; | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user