From cd7759358516f09be7dd2e9680ca45ef4f57823a Mon Sep 17 00:00:00 2001 From: Matthew Bessette Date: Fri, 10 Jan 2025 00:15:52 -0500 Subject: [PATCH] updates including openssl --- _hosts/caesium/GAMES.md | 10 ++++ _hosts/caesium/configuration.nix | 71 +++++++++++------------ _hosts/caesium/hardware-configuration.nix | 48 ++++++++------- 3 files changed, 72 insertions(+), 57 deletions(-) create mode 100644 _hosts/caesium/GAMES.md diff --git a/_hosts/caesium/GAMES.md b/_hosts/caesium/GAMES.md new file mode 100644 index 0000000..f67a391 --- /dev/null +++ b/_hosts/caesium/GAMES.md @@ -0,0 +1,10 @@ +# World of Warcraft +- Bottles via Flatpak +``` +flatpak override --user --filesystem="/data/bravo" com.usebottles.bottles +``` +- C:\Program Files\World of Warcraft\_retail\WTF\Config.wtf +``` +SET rawMouseAccelerationEnable "0" +SET MouseNoRepositioning "1" +``` diff --git a/_hosts/caesium/configuration.nix b/_hosts/caesium/configuration.nix index 3231ef0..44650a4 100644 --- a/_hosts/caesium/configuration.nix +++ b/_hosts/caesium/configuration.nix @@ -101,30 +101,27 @@ #media-session.enable = true; }; - # Enable touchpad support (enabled default in most desktopManager). - # services.xserver.libinput.enable = true; - - # Define a user account. Don't forget to set a password with ‘passwd’. - users.defaultUserShell = pkgs.zsh; - users.users.mbessette = { - isNormalUser = true; - description = "Matthew Bessette"; - extraGroups = [ "networkmanager" "wheel" ]; - packages = with pkgs; [ - kdePackages.kate - vscode - bottles - _1password-gui - discord - ]; - }; - - # Install firefox. - programs.firefox.enable = true; + nixpkgs.config.allowUnfree = true; ## https://www.reddit.com/r/NixOS/comments/1dl61a8/firefox_crashing_frequently_after_updating_flake/ environment.sessionVariables.MOZ_ENABLE_WAYLAND = 0; + environment.systemPackages = with pkgs; [ + vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. + git + gparted + openssl + ]; + + programs.firefox.enable = true; + + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + localNetworkGameTransfers.openFirewall = true; + }; + programs.zsh = { enable = true; enableCompletion = true; @@ -133,6 +130,7 @@ shellAliases = { ll = "ls -l"; update = "sudo nixos-rebuild switch --flake ~/nixos#caesium"; + laws = "aws --endpoint=http://localhost:8081"; }; histSize = 10000; ohMyZsh = { @@ -142,25 +140,26 @@ }; }; - # Allow unfree packages - nixpkgs.config.allowUnfree = true; + users.defaultUserShell = pkgs.zsh; + users.users.mbessette = { + isNormalUser = true; + description = "Matthew Bessette"; + extraGroups = [ "networkmanager" "wheel" ]; + packages = with pkgs; [ + kdePackages.kate + vscode + _1password-gui + discord - # List packages installed in system profile. To search, run: - # $ nix search wget - environment.systemPackages = with pkgs; [ - vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. - git - gparted - # wget - ]; - - programs.steam = { - enable = true; - remotePlay.openFirewall = true; - dedicatedServer.openFirewall = true; - localNetworkGameTransfers.openFirewall = true; + # Development + nodejs_22 + awscli2 + ]; }; + # Future - Flatpak + # https://github.com/gmodena/nix-flatpak + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; diff --git a/_hosts/caesium/hardware-configuration.nix b/_hosts/caesium/hardware-configuration.nix index 2b50610..58f67c3 100644 --- a/_hosts/caesium/hardware-configuration.nix +++ b/_hosts/caesium/hardware-configuration.nix @@ -8,7 +8,7 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "nvme" "ahci" "xhci_pci" "thunderbolt" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = [ "nvme" "ahci" "xhci_pci" "thunderbolt" "usbhid" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; @@ -18,6 +18,31 @@ fsType = "ext4"; }; + fileSystems."/nix/store" = + { device = "/dev/disk/by-uuid/77fb07a2-68f7-4f4f-a4a0-d3bcdc83b98a"; + fsType = "btrfs"; + }; + + fileSystems."/var/lib" = + { device = "/dev/disk/by-uuid/05ccb595-f73e-4a00-a3f6-1fb537c9b2a3"; + fsType = "btrfs"; + }; + + fileSystems."/data/charlie" = + { device = "/dev/disk/by-uuid/cb29be2a-a6e8-4581-98fd-1648de77e9c1"; + fsType = "ext4"; + }; + + fileSystems."/data/bravo" = + { device = "/dev/disk/by-uuid/1259b0aa-3b6d-43c3-a45a-1073e82fb554"; + fsType = "ext4"; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/23e4cffe-4f57-486b-9a9f-24e715838a4d"; + fsType = "ext4"; + }; + fileSystems."/boot" = { device = "/dev/disk/by-uuid/EC54-3580"; fsType = "vfat"; @@ -29,26 +54,6 @@ fsType = "ext4"; }; - fileSystems."/data/bravo" = - { device = "/dev/disk/by-uuid/1259b0aa-3b6d-43c3-a45a-1073e82fb554"; - fsType = "ext4"; - }; - - fileSystems."/data/charlie" = - { device = "/dev/disk/by-uuid/cb29be2a-a6e8-4581-98fd-1648de77e9c1"; - fsType = "ext4"; - }; - - fileSystems."/home" = - { device = "/dev/disk/by-uuid/23e4cffe-4f57-486b-9a9f-24e715838a4d"; - fsType = "ext4"; - }; - - fileSystems."/nix/store" = - { device = "/dev/disk/by-uuid/77fb07a2-68f7-4f4f-a4a0-d3bcdc83b98a"; - fsType = "btrfs"; - }; - swapDevices = [ { device = "/dev/disk/by-uuid/25377ac7-4a7a-4648-abe1-f65990145c54"; } ]; @@ -59,6 +64,7 @@ # with explicit per-interface declarations with `networking.interfaces..useDHCP`. networking.useDHCP = lib.mkDefault true; # networking.interfaces.enp15s0u1.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp8s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;